You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by praveen buya <pr...@gmail.com> on 2024/07/15 06:11:52 UTC
Reduce File Size generated using ApachePDFBox
Hi Team,
We are working on a requirement to convert Zebra format to PDF using
PDFBox, we are parsing the Zebra format text and manually drawing ,
inserting text and tables,Images in PDF format using PDFBox
PDPageContentStream , PDImageXObject etc. But the issue which we have is
with the file size. Is there any way or recommendations to have a small
file size generated from PDFBox.
Thanks & Regards
Praveen
Re: Reduce File Size generated using ApachePDFBox
Posted by Tilman Hausherr <TH...@t-online.de>.
Make sure the fonts are subset, and use each font object only once i.e.
don't use several font objects for the same font in one PDF.
Same for images: don't use several image objects for the same image
(e.g. a company logo that appears on every page).
For further advice, please upload a result file to a sharehoster.
Tilman
On 15.07.2024 08:11, praveen buya wrote:
> Hi Team,
>
> We are working on a requirement to convert Zebra format to PDF using
> PDFBox, we are parsing the Zebra format text and manually drawing ,
> inserting text and tables,Images in PDF format using PDFBox
> PDPageContentStream , PDImageXObject etc. But the issue which we have is
> with the file size. Is there any way or recommendations to have a small
> file size generated from PDFBox.
>
> Thanks & Regards
> Praveen
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org