merge pdf

merge pdf

I have a webservice that returns a pdf without any letterhead. And I have different stationairy templates available, these are also pdfs containing different company logo's and addresses.
I want to allow users of my espace to choose with which stationairy template (letterhead) the webservice pdf should be merged before the end result is presented to them.
Does anyone how to execute the pdf merge with Outsystems? I can do it in a command prompt with external tools but I'm looking for a better way.

For this kind of data manipulation you'll need to create an extension using Integration Studio.

If you have a .NET or Java library which performs the operation you want, it's a relatively simple matter of creating the necessary API in Integration Studio, implementing the actions, publishing the extension, adding it as a reference to your eSpace and finally calling the actions.

If all you have is a command line, you can use .NET / Java to execute that command line in the extension, although this might prove a bit more challenging than if you have a library that does the work for you.

Hi there
The solution of Ricardo is really helpful.BTW,i want to know that whether there is a powerful program which supprots to merge multipage pdf files at one time.My present pdf merge program can only merge single pdf files.Thanks for any suggestion.

Check ITextSharp's lisence it's not free anymore. You can try to build your own extension with pdfbox (https://pdfbox.apache.org/) for the java servers. Pdfbox can also be used with c# http://www.squarepdf.net/pdfbox-in-net