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 2014/04/22 18:24:22 UTC
[jira] [Closed] (PDFBOX-1068) Odd looking question mark at end of
every line in rendered text file
[ https://issues.apache.org/jira/browse/PDFBOX-1068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr closed PDFBOX-1068.
-----------------------------------
Resolution: Duplicate
Fix Version/s: (was: 2.0.0)
Example of a sequence in that PDF:
{code}
/F3.0 1 Tf
(import javax.imageio.metadata.*;) Tj
/F3.1 1 Tf
(!) Tj
ET
{code}
Tf = select font
TJ = show text
ET = end text object
So the "/F3.1" font has this exclamation mark. This is an embedded font that has only one glyph: 33, which is just that. According to my own 2.0 version, code 33 has a null path. In 1.8 it is tried to read the embedded font with awt; createFont() fails with a "FontFormatException: Font name not found", and plan B is to use an awt font, which shows us the "!".
In other words:
- 1.8 awt sometimes can't handle fonts correctly
- this is solved in 2.0 since PDFBOX-490 => duplicate
- the file really has a "!", try copy & paste in Acrobat Reader
> Odd looking question mark at end of every line in rendered text file
> --------------------------------------------------------------------
>
> Key: PDFBOX-1068
> URL: https://issues.apache.org/jira/browse/PDFBOX-1068
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 1.6.0, 1.8.4, 1.8.5
> Environment: MacOS 10.6, Windows 7, Ubuntu 10.10
> Reporter: Sarah Kelley
> Attachments: TestRender.pdf, sakelley_pdf_rendering_problem.zip
>
>
> TestRender.pdf adds an odd-looking (different font?)
> question mark to the end of every line. These are not present in
> the original PDF file. Tested On:
> - Mac OS 10.6
> - Windows 7
> - Ubuntu 10.10
--
This message was sent by Atlassian JIRA
(v6.2#6252)