[
https://issues.apache.org/jira/browse/PDFBOX-3243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15157579#comment-15157579
]
Tilman Hausherr commented on PDFBOX-3243:
-----------------------------------------
I can reproduce the problem on windows with JDK7 (I had to change the code
slightly). However it happens only when doing the merge programmatically, not
when calling the command line utility. I suspect that the memory-created
PDDocument is not identical to the saved and reloaded PDDocument. You are using
font subsets. The problem is that the actual subset is created only when saving
(because at that time, it is known which gyphs are used). I don't know if this
can be fixed. If it can't, all we can do is to
- improve the javadoc
- maybe find programmatically if there are "unsaved subsets"
Anyway, the workaround for you is to save and then to reload your PDF files.
> Lost font after merge
> ---------------------
>
> Key: PDFBOX-3243
> URL: https://issues.apache.org/jira/browse/PDFBOX-3243
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.0
> Environment: Windows 7 Professional, 32 bit
> Reporter: Matthias Braun
>
> Hi and thanks a lot for your great library!
> I've noticed that after I merge two or more PDFs that the font of the merged
> PDF differs from that of the input PDFs.
> I've created a minimal project that lets you reproduce the bug:
> https://github.com/mb720/PdfMerging
> When you start the program using "./gradlew run", it will create three PDFs
> in "~/Desktop/": Two simple PDFs with one page of text and a third one that
> is created by merging the first two PDFs.
> In the project the font I use is DroidSans.ttf. The version of PDFBox is
> 2.0.0-RC3.
> For reasons I don't know the problem does not occur on my Linux Mint Debian
> Edition 64 bit.
> Thanks a lot in advance,
> Matthias
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]