Many of time we have multiple files in pdf but for some certain reasons we require to merge them to single File.
Continuing from my previous post i am extending my functionality with Merging of Mulitiple pdf files to single pdf file.
In my Setup Page created in previous post i have added one more field to store the Tool Path & File Name for Merging multiple files.
Based on the dll provided by http://www.pdfsharp.net this post is written.
Visit the Site download the utility and extract the dll file and exe file from the zip and store in same Folder.
The format of command to merge the files at command prompt is similar to:
Command to merge :- pdfmerge output=.\ActionFolder\result.pdf input=.\ActionFolder\1.pdf,.\ActionFolder\2.pdf,.\ActionFolder\3.pdf
We will prepare the Function which will take as parameter the Output & Input File and run the utility to Merge these files to single file using WsShell in Navision.
Function is very simple to accept the Input & Output File Names and Prepare Single PDF file from multiple pdf files provided as input (comma seperated List of Files) to the function.
To keep it simple no additional codes for test and other routine job is not added. Now you are familiar with the functionality you can tweak the code accordingly to meet all other requirements.
Thats all for this post. Will comeup with more Information in my upcoming posts.
Till then keep exploring and learning.
1 thought on “Merging PDF Files in Navision”
Comments are closed.