Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TCPDF - How do I extract pages form a PDF?

I read somewhere that TCPDF was capable of splitting a PDF into individual pages or images. But there's no mention of this in the documentation or an example of how to do it. Can anyone shed some light on this and if it does't recommend a PHP based one I could use to achieve this.

I'm trying to split a large PDF into high res images.

like image 261
Dave Avatar asked Dec 17 '22 11:12

Dave


1 Answers

AFAIK this is not possible with pure TCPDF - you can combine it with fpdi (V 1.2.1 and up!) to achieve this.

Other option to do what you want (with explanations, sample source etc.):

  • fpdf together with fpdi
  • http://metacpan.org/pod/PDF::Reuse (perl-based)
  • http://metacpan.org/pod/PDF::Extract (perl-based)
  • http://www.pdflabs.com/docs/pdftk-man-page/ (commandline-based)
like image 53
Yahia Avatar answered Jan 04 '23 11:01

Yahia