TCPDF - 如何从PDF中提取页面?

问题描述:

我在某处读到TCPDF能够将PDF分成单个页面或图像。但是在文档中没有提到这一点或者如何做到这一点的例子。任何人都可以对此有所了解,如果它不推荐基于PHP的我可以用来实现这一目标。

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.

我正在尝试将大型PDF分成高分辨率图像。

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

AFAIK使用纯TCPDF无法做到这一点 - 您可以将它与 fpdi (V 1.2.1及以上!)来实现这一目标。

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)