You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by James Rothering <ja...@sunrider.com> on 2015/07/10 23:35:06 UTC

Localization of a PDF

Hi everyone! I'm sorry I could't lurk a bit longer, but I've been asked to
determine what's involved in localization of some reports using PDFBox.
Specifically, we have to produce a simplified and traditional Chinese
version. I've got a font file installed on my box called wqy-zenhei.ttc ; It's
working on my java swing app, to load up this font and put out unicode
characters on screen.

Now I need to see about the reports. I'm far from an expert on this, so
I've been Googling Stackoverflow and so on, and it seems that the really
right way to do this would be to embed the font into the PDF as a PDF/A, so
that anyone who got the PDF would be able to display it, since the font is
not deriving from user/share/fonts, but from within the PDF itself.

Am I correct in understanding that this is only possible under the
yet-to-be released version 2 of PDFBox? I started to build it to try out
the example code, but apparently I don't have JCE installed. Also, since
we're already running with PDBox 1.8 or 1.9, is there an alternative way to
accomplish this in those earlier versions?

Thanks in advance,

James

-- 
CONFIDENTIALITY NOTICE: This message is intended only for the use of the 
individual or entity to which it is addressed, and may contain information 
that is privileged, confidential, and exempt from disclosure under 
applicable law. If you have received this email in error, please 
immediately notify the sender by return email and delete this email and any 
attachments from your system.

Re: Localization of a PDF

Posted by Tilman Hausherr <TH...@t-online.de>.
Am 10.07.2015 um 23:35 schrieb James Rothering:
> Hi everyone! I'm sorry I could't lurk a bit longer, but I've been asked to
> determine what's involved in localization of some reports using PDFBox.
> Specifically, we have to produce a simplified and traditional Chinese
> version. I've got a font file installed on my box called wqy-zenhei.ttc ; It's
> working on my java swing app, to load up this font and put out unicode
> characters on screen.
>
> Now I need to see about the reports. I'm far from an expert on this, so
> I've been Googling Stackoverflow and so on, and it seems that the really
> right way to do this would be to embed the font into the PDF as a PDF/A, so
> that anyone who got the PDF would be able to display it, since the font is
> not deriving from user/share/fonts, but from within the PDF itself.
PDFA is not required, you only need to embed it properly.

>
> Am I correct in understanding that this is only possible under the
> yet-to-be released version 2 of PDFBox? I started to build it to try out
> the example code, but apparently I don't have JCE installed.
Then do it... or build with

mvn -DskipTests install


There's are example files, EmbeddedFonts.java or CreatePDFA.java

> Also, since
> we're already running with PDBox 1.8 or 1.9, is there an alternative way to
> accomplish this in those earlier versions?
>
No

TIlman

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org