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 2017/03/20 21:30:41 UTC

[jira] [Comment Edited] (PDFBOX-3725) Problem with Type1 font parser

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

Tilman Hausherr edited comment on PDFBOX-3725 at 3/20/17 9:30 PM:
------------------------------------------------------------------

I tested with a few tools... most can display the file correctly, some can't. Those who can do so probably because they use a font library for all type 1 fonts, not just those allowed for PDF - here's an excerpt from the Adobe Type 1 Font Format:
{quote}
The PostScript language commands used in a Type 1 font program
must conform to a much stricter syntax than do
“normal” PostScript language programs.
{quote}
I made a small change in the file so that the Metrics part could be read, and then the error was in the BBox segment.


was (Author: tilman):
I tested with a few tools... most can display the file correctly, some can't. Those who can do so probably because they use a font library for all type 1 fonts, not just those allowed for PDF - here's an excerpt from the Adobe Type 1 Font Format:
{quote}
The PostScript language commands used in a Type 1 font program
must conform to a much stricter syntax than do
“normal” PostScript language programs.
{quote}


> Problem with Type1 font parser
> ------------------------------
>
>                 Key: PDFBOX-3725
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3725
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.5
>         Environment: linux
>            Reporter: Wolfgang Hamann
>            Priority: Minor
>         Attachments: ft70.ps, kcap.pdf
>
>
> the parser uses "readSimpleDict" to parse the Metrics.
> This allows
> /Metrics 100 dict dup begin ....... end def
> but not
> /Metrics 100 dict def Metrics begin ..... end
> This variant seems to work in most other pdf tools, however



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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