pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: Same image in multiple pages
Date Thu, 18 Jan 2018 14:50:20 GMT
You can generate the image once, and attach it to different pages. Only 
the name belongs to the page, not the object.

We don't have a tool that iterates to see if anything is double.

If boxable doesn't allow you to provide PDImageXObject objects, then 
create an issue and explain them why this is needed.


Am 18.01.2018 um 15:31 schrieb Attila Kiss:
> 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

To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org

View raw message