Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear friends,

You will be very much thankful if you solve the below problem.
i am developing window application to process pdf.in that i have added two Adobe PDF Reader control to display two pdf.in certain cases i want to merge the two pdf.we can't kill the acrobat.because i am using Adobe 9.so it does not showned in task manager.

can you have any idea to merge two pdf using iTextSharp?
Posted

1 solution

Hello Jai,

PLease have a look at following articles

  • Simple .NET PDF Merger[^]
  • PDF Merge[^]


Regards,
 
Share this answer
 
Comments
Maciej Los 19-Mar-13 16:18pm    
Nice links, +5!
jai_mca 20-Mar-13 1:20am    
thanks Prasad..
i solved it.but after merged the pdf it prompt the error like 'File does not begin with %PDF'.there is no error in pdf and all.
why it shows the error?
Prasad Khandekar 20-Mar-13 2:03am    
PDF file's first four bytes are always 25 50 44 46 (%PDF). Try opening the merged file in HxD and inspect the first four bytes.
jai_mca 22-Mar-13 2:51am    
thanks a lot prasad.but still i could not know how to open in HxD and how to inspect it.can you explain little bit more clear?it will be more useful to me
Prasad Khandekar 22-Mar-13 4:12am    
HxD is a hex editor, You can use to open a valid PDF and see PDF file signature. In your case however one need to find why merged PDF did not have this signature. Have you tried running this program of yours in standalone mode with files residing on disk and not opened in Acrobat. Just give it a try and check whether the signature is agin getting removed from merged file. Are you creating a seperate merged file?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900