Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2016-04

fcl-pdf: Extracting a page...

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marcos Douglas

Hi,

Is it possible read a PDF, extract a page and create a new one using the new fcl-pdf?
If yes, could you send an example how I can do that?

Regards,
Marcos Douglas

Reply by email

Graeme Geldenhuys
to Marcos Douglas
Marcos Douglas wrote
Is it possible read a PDF, extract a page and create a new one using the new fcl-pdf?

I'm sure it is possible - there are PDF-to-Text tools around. Is it possible with the current fcl-pdf code? No. The fcl-pdf was designed to work the other way.... take content (code, JSON etc) and create PDF's.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Marcos Douglas
to Graeme Geldenhuys
Graeme Geldenhuys wrote
I'm sure it is possible - there are PDF-to-Text tools around. Is it possible with the current fcl-pdf code? No. The fcl-pdf was designed to work the other way.... take content (code, JSON etc) and create PDF's.

Right.
PDF-to-text is not an option because I need to extract the page with the same appearance as the
original so I can't rewrite the page.

Thanks for answer.

Regards,
Marcos Douglas

Reply by email

José Mejuto
to Marcos Douglas
Marcos Douglas wrote 10 lines
On Mon, Apr 11, 2016 at 5:45 PM, Graeme Geldenhuys wrote: > I'm sure it is possible - there are PDF-to-Text tools around. Is it > possible with the current fcl-pdf code? No. The fcl-pdf was designed to > work the other way.... take content (code, JSON etc) and create PDF's. Right. PDF-to-text is not an option because I need to extract the page with the same appearance as the original so I can't rewrite the page.

Hello,

Use qpdf:

http://qpdf.sourceforge.net/files/qpdf-manual.html http://qpdf.sourceforge.net/files/qpdf-manual.html#ref.page-selection

Reply by email