[ 
https://issues.apache.org/jira/browse/PDFBOX-3649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15822001#comment-15822001
 ] 

Tilman Hausherr commented on PDFBOX-3649:
-----------------------------------------

Sorry, I still don't get it. PDFBox does indeed not have built in fonts like 
PDType0CJKFont.JAPANESE_SANS_SERIF because the PDF specification doesn't have 
it. PDF just has the standard 14 fonts. Now if we would create a PDF that 
references such fonts, we would not be able to display these with PDFBox if we 
don't have them installed because these fonts aren't embedded.

Why not use the fonts directly, as in this example:
{code}
PDFont font = PDType0Font.load(document, new 
File("c:/windows/fonts/simhei.ttf"));
{code}
This way the font subset would be embedded and such a file would display on any 
system.


>  Patching for built-in access to CJK fonts from Adobe Reader
> ------------------------------------------------------------
>
>                 Key: PDFBOX-3649
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3649
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: FontBox, PDModel
>    Affects Versions: 2.0.4
>            Reporter: Lilith Wong
>              Labels: PDFBOX-2524
>
> Refer to the JIRA PDFBOX-2524 mentioned, pdfbox 2.0 still miss the update of 
> "patching for built-in access to CJK fonts from Adobe Reader".
> [PATCH] Two PDFont to create PDF documents in CJK and non-ISO-8859-1 
> languages:
> https://issues.apache.org/jira/browse/PDFBOX-2524
> Patches for other issues mentioned in JIRA PDFBOX-2524 has already applied 
> but for this issues. Up to now, I checked with latest version 2.0.4 and 
> un-released version 2.0.5 / 2.1.0, but could not find any related patch 
> (related source code like PDType0CJKFont.java, etc...).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to