You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2022/07/14 04:18:00 UTC
[jira] [Commented] (PDFBOX-5477) PDF file size problem
[ https://issues.apache.org/jira/browse/PDFBOX-5477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17566634#comment-17566634 ]
Tilman Hausherr commented on PDFBOX-5477:
-----------------------------------------
EmbedSubset should be true, unless you're working with form fields. You should have used the shorter method that uses a file, that uses subsetting by default.
> PDF file size problem
> ---------------------
>
> Key: PDFBOX-5477
> URL: https://issues.apache.org/jira/browse/PDFBOX-5477
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.26
> Environment: Window10
> Reporter: Dylan Yau
> Priority: Major
> Attachments: code.png, file size.png
>
>
> I use PDFBOX to generate PDF files, it's a great library, but I found that when I use PDType0Font to load Chinese fonts, the file size will become very large, it will come to 5MB, when I switch the library's PDType0Font to load font , it's only 1KB in size. how to reduce file size when using custom fonts?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org