Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 xref position too low; parsing of afm files

closed
nobody
None
2012-12-11
2003-04-09
Piotr Klaban
No

Hi,
I have found one bug with startxref position counting,
and one not-a-bug with parsing AFM files, that have more
spaces between 'C' and numbers (I have some fonts with
e.g.:
fonts/ArialCE.afm:C 32 ; WX 333 ; N space ; B 0 0 0 0 ;

The first bug forced my xpdf to reconstruct xref table,
since xpdf serached for 'xref' string and it founds "\nxre"
all the time. It is clear now, but it took me some time
to realize that (web searching, PDF reference reading,
xpdf source hacking). The $pos variable counts length
of all the strings before 'xref' string, but misses a new line
char directly added before xref.

I submit (I'll try to submit) a small two-line patch.

Best regards,
Piotr Klaban

Discussion

  • Piotr Klaban
    Piotr Klaban
    2003-04-09

    xref/afm patch

     
    Attachments
  • Piotr Klaban
    Piotr Klaban
    2003-04-09

    • priority: 5 --> 7
     
  • Ole K
    Ole K
    2012-12-11

    • status: open --> accepted

    will be avail in php5 branch

     
    Last edit: Ole K 2012-12-11
  • Ole K
    Ole K
    2012-12-11

    • status: accepted --> closed