[
https://issues.apache.org/jira/browse/PDFBOX-4903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17149070#comment-17149070
]
Tilman Hausherr commented on PDFBOX-4903:
-----------------------------------------
Not embedding is not supported because your file might not work properly on
other computers.
If you insist on wanting this, you could first create the file with a fully
embedded font, and in a second step, remove the "FontFile2" (could also be 1 or
3, I didn't try) entry from this object:
{{Root/AcroForm/DR/Font/MeiryoUI/DescendantFonts/[0]/FontDescriptor}} by
calling
{{font.getFontDescriptor().getCOSObject().removeItem(COSName.FONT_FILE2)}}.
> Using the same font subset in plain text and PDTextField, the font name in
> PDTextField is incorrect
> ---------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-4903
> URL: https://issues.apache.org/jira/browse/PDFBOX-4903
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.19
> Reporter: bai yuan
> Priority: Major
> Attachments: Adobe.png, AdobeTest.pdf, MeiryoUI-03.ttf, Untitled.png,
> pdfbox.java
>
>
> # Run the code in the attachment(pdfbox.java).[^pdfbox.java]
> [^MeiryoUI-03.ttf]
> # Open the exported pdf file(pdfbox.pdf), you will see the font name of the
> field is "AAAHYN+MeiryoUI" !Untitled.png!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]