#1 2010-09-03 09:45:44

fish
Member
Registered: 2010-08-28
Posts: 3

how to open a pdf file and append some content?

I want to append a page to an exists pdf file ,how can i do?

Offline

#2 2010-09-05 12:49:26

reddwarf
Member
Registered: 2010-06-28
Posts: 40
Website

Re: how to open a pdf file and append some content?

I doubt it's easily possible with SynPDF now, you have to write a PDF parser based on SynPDF and append the page manually...

Offline

#3 2010-09-05 14:10:55

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,718
Website

Re: how to open a pdf file and append some content?

reddwarf wrote:

I doubt it's easily possible with SynPDF now, you have to write a PDF parser based on SynPDF and append the page manually...

Exactly.
All PDF objects are available as Delphi classes in SynPDF, so you don't need to create additional classes, or change the unit structure.
But you need to write a PDF parser. This is not difficult to implement, since the format is well structured and documented, but it's not on my top list now, since I don't need it.

Another possibility should be to convert the original pdf to emf files (one per page), then use SynPdf to convert the result into a new pdf.
But you'll loose some pdf dedicated info, like outlines and jumps.

There are some tools around to append some content to a PDF file.

Offline

Board footer

Powered by FluxBB