You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Behrang Saeedzadeh <be...@gmail.com> on 2019/06/05 13:31:56 UTC
Preventing duplicate fonts in merged PDFs
Hi,
OpenPDF has a class named PdfSmartCopy (
https://github.com/LibrePDF/OpenPDF/blob/master/openpdf/src/main/java/com/lowagie/text/pdf/PdfSmartCopy.java)
that prevents duplicate fonts from getting added to a PDF file produced by
merging other PDF files.
Does PdfBox has a similar functionality?
Best regards,
Behrang Saeedzadeh
blog.behrang.org
Re: Preventing duplicate fonts in merged PDFs
Posted by Maruan Sahyoun <sa...@fileaffairs.de>.
Hi,
PDFMerger has some handling of resources to prevent duplicates but your milage may vary. E.g. font subsets are not merged into a
combined font. Same images from different PDFs might not be merged into a single one. Depends on the characteristics of the
resource which needs to be added.
BR
Maruan
> Hi,
>
> OpenPDF has a class named PdfSmartCopy (
> https://github.com/LibrePDF/OpenPDF/blob/master/openpdf/src/main/java/com/lowagie/text/pdf/PdfSmartCopy.java)
> that prevents duplicate fonts from getting added to a PDF file produced by
> merging other PDF files.
>
> Does PdfBox has a similar functionality?
>
> Best regards,
> Behrang Saeedzadeh
> blog.behrang.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: Preventing duplicate fonts in merged PDFs
Posted by Tilman Hausherr <TH...@t-online.de>.
There was a question on stackoverflow about finding exact duplicates.
However this won't work on subsets.
https://stackoverflow.com/questions/53420344/how-to-reduce-the-size-of-merged-pdf-a-1b-files-with-pdfbox-or-other-java-librar/53544377#53544377
Tilman
Am 05.06.2019 um 15:31 schrieb Behrang Saeedzadeh:
> Hi,
>
> OpenPDF has a class named PdfSmartCopy (
> https://github.com/LibrePDF/OpenPDF/blob/master/openpdf/src/main/java/com/lowagie/text/pdf/PdfSmartCopy.java)
> that prevents duplicate fonts from getting added to a PDF file produced by
> merging other PDF files.
>
> Does PdfBox has a similar functionality?
>
> Best regards,
> Behrang Saeedzadeh
> blog.behrang.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org