Hello team,

I have an application which is generating pdf files. I use the boxable API
(with some modifications to fit our requirements). My problem is, as I am
creating headers and footers and I successfully add it to the document on
multiple pages, but if it has image in the header/footer the image gets
included in the pdf file for every page. So if I am putting there a large
jpg (2.1MB) the generated pdf file will be cca 21MB in 3 pages.
Is it possible to iterate over the document resources and check if there
are duplicated images and then modifiy the resources to point to that one
image.
As I understand the PDResource object is belong to the page and the
PDResource object has information about the image, so maybe share the same
image across pages not possible, but I'd give it a try.

Thanks,
Attila

Reply via email to