John Royal
John Royal

Reputation: 371

Zend PDF inflates file size

I am using ZendPdf to reorder some pages in a PDF. No other changes are taking place, yet somehow a file that starts as 400k is being inflated to 5mb after being re-ordered and saved.

Does anyone know why, or how to make it save more optimally?

Note, I need to keep the default option of embedding the font which is already in the original document.

Upvotes: 2

Views: 454

Answers (1)

John Royal
John Royal

Reputation: 371

Using the ZendPdf/Resource/Extractor clonePage method instead of the native php clone method resolved thsi issue

Upvotes: 1

Related Questions