Handle /BaseFontName for embedded Type 1 fonts #120

Open
ankit042 opened this Issue Apr 11, 2013 · 5 comments

Projects

None yet

2 participants

@ankit042

There are issues with the font in the pdf mentioned below

Page 42 text for characters in bold is overlapping

On the top of the page the positioning for Sharekhan and Derivative Digest is not aligned.

https://dl.dropboxusercontent.com/u/1008346/DerivativesDigest.pdf

@coolwanglu
Owner

The problem is that the PDF file refer to external fonts, whose info in unavailable in PDF.
Try the --embed-external-font parameter

@ankit042

I tried to add --embed-exernal-font but the program stopped with an error Segmentation fault (core dumped)

Command
pdf2htmlEX --no-drm 1 --embed-external-font 1 --split-pages 1

Output

You have just changed the point numbering of glyph Lcommaaccent. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph Lacute. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph Ydieresis. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph Ycircumflex. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph Yacute. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph ugrave. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph igrave. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph uni04E7. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph udieresis. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph odieresis. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph idieresis. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph edieresis. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph umacron. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph Umacron. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph omacron. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph Omacron. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph imacron. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph Imacron. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph emacron. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph Emacron. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph amacron. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph Amacron. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph iacute. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph uni01D0. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph uni032D. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph uni032C. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph uni04D7. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph uni04D1. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph uni04D0. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph uni04D2. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph uni04E6. Instructions in this glyph (or one that refers to it) have been lost.
ToUnicode CMap is not valid and got dropped for font: 2
Warning: encoding confliction detected in font: 2
You have just changed the point numbering of glyph agrave. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph uni04E7. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph uni04D3. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph uni0451. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph dieresistonos. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph ydieresis. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph udieresis. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph odieresis. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph idieresis. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph edieresis. Instructions in this glyph (or one that refers to it) have been lost.
You have just changed the point numbering of glyph adieresis. Instructions in this glyph (or one that refers to it) have been lost.
Segmentation fault (core dumped)

@coolwanglu
Owner

Yes, I saw the crash too. It should be something wrong in Fontforge.
For now, please use --remove-unused-glyph 0

@ankit042

--remove-unsued-glyph 0 flag worked.
In the output file the problem with overlapping text on Page 42 is fixed. But the text "Derivate Digest" and "Sharekhan on the top of page 5-39 is still not aligned.

@coolwanglu
Owner

@ankit042 I've found that the problematic font cannot be parsed by FontForge correctly. It complained about /BaseFontname.

I'm not sure about the syntax, but seems that the font is derived from another font, which cannot be located by FontForge. I'll check the PDF spec again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment