Topic Options
#42031 - 01/22/13 06:09 PM Concatenating pdfs using pdfsharp
aspdbq Offline
OL User

Registered: 01/22/13
Posts: 57
Hi,

I am using the widely used pdfsharp library www.pdfsharp.net to concatenate multiple pdf documents into one.

My problem is that my c# program works fine for any random pdf files. But when I am trying to concatenate pdfs that came out of Planetpress, the final document is corrupt. Surprising thing is that I am able to open the individual Planetpress pdfs perfectly fine.

Just curious to know if I need to make any setting changes in the suite?

Thanks

Top
#42035 - 01/23/13 09:31 AM Re: Concatenating pdfs using pdfsharp [Re: aspdbq]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
aspdbq,

I personally have never used the pdfsharp library, and obviously, we cannot provide support for it, nor guarantee it's compatibility with our software.

That said, I would invite you to check out the "Merge PDF" action of PlanetPress that allows you to merge multiple pdf files together. Here's a link to the documentation:
http://help.objectiflune.com/en/planetpress-workflow-user-guide/Default_CSH.html#/6296.html

You could also simply use a Send to Folder output and check the "Concatenate files" option, which works with PDF files. All you have to do is make sure the file name is always the same, and instead of overwriting the file, it will concatenate them.

Should you need a more advanced solution, we have our PDF API that can be used in scripts through the Run Script action. It contains all sort of functions to handle the manipulation of PDF files, whether it's concatenation, extraction, optimization, etc... Here's a link to the documentation on it:
http://help.objectiflune.com/files/EN/alambicedit-api/AlambicEdit.html

All of these options are built-in options to do pdf concatenation, and will be much more compatible with the pdf files generated with our software. I would suggest that you give these options a try, and see if they work better.

Regards,
Raphaël Lalonde-Lefebvre

Top
#42038 - 01/23/13 11:10 AM Re: Concatenating pdfs using pdfsharp [Re: aspdbq]
aspdbq Offline
OL User

Registered: 01/22/13
Posts: 57
Thanks for your reply!

Actually we wanted to avoid hitting the Planetpress server again for this concatenation functionality.

I was able to achieve this using some other open source library.

Thanks!

Top
#42563 - 03/05/13 02:33 PM Re: Concatenating pdfs using pdfsharp [Re: aspdbq]
-nth- Offline
OL Expert

Registered: 04/01/03
Posts: 236
Loc: Lincoln, NE
aspdbq,

I'm curious what open source library you settled on? A multi-purpose rendering engine like ImageMagick/GraphicsMagick or something with just PDF functionality?

-nth-

Top