Convert Excel File to PDF out of Workflow

  • 28 August 2015
  • 1 reply
  • 9 views

Badge +1

Hello,

 

I am currently looking to implement the possibility to convert an Excel File to PDF out of a Workflow.

 

The user will select at the beginning of the workflow a file, which needs to be converted to a PDF after the workflow has been started.

 

The PDF will then be attached to mails etc.

 

So far I did not find a solution within K2 for that.

 

The Excel File and the PDF will be stored in a document library on SharePoint.

 

Any expierence/suggestions how to solve this?

 

Thanks in advance.

 

FW


1 reply

Badge +10

I think you may have to write some code for this as far as I know.

 

There are some sample code's available that will convert an excel file into pdf. YOu would have to create a smartobejct that will take a excel file of excel filepath and then return a pdf. After that its quite straight forward attaching the pdf into a email.

 

Just use the out of the box GetfileFromContent() or GetfilefromLocation() methods, depending on how you decide to do the first step, in the context menu of the workflow. Its should be in the "FX" tab under the "Files" node.

 

Hope that helps.

 

 

 

Reply