PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com
_____________________________________________________________

Hi,

Sorry, but the FirstChar and LastChar is never used by Acrobat for the
widths array, because CID fonts can contain thousands of characters. The
problem is that the width array has a wrong format:

If a PDF file contains a CID Font, than the widths array must be
specified in a special format:

[StartIndex[FirstIndex next ...]]

For example: [32[722 444 333 500 278 778 500 500 333 278 500]]

This array type is not limited to 256 indexes.

Some other formats are possible, described in the reference under "Glyph
Metrics in CIDFonts" (page 340 in the Reference 1.4).

Just change the format and the file will work properly.

Greetings

Jens Boschulte
www.dynaforms.com



-----Ursprungliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Thomas Merz
Gesendet: Donnerstag, 27. November 2003 12:48
An: [EMAIL PROTECTED]
Betreff: RE: [PDFdev] page content problem


PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com
_____________________________________________________________

From: Xavier Walhin <[EMAIL PROTECTED]>
> When I try to save my pdf document to a .doc file with Acrobat 6, I am
> having a strange error message : 
> "bad pdf; could not read page structure (bad page contents)"

> You can find the file at this location
> ftp://ftp02.irislink.com/ocr/xwalhin/pdf/file1.pdf

Your /Widths array is too short by one entry:

/FirstChar 32
/LastChar 43
/Encoding 4 0 R
/Widths 5 0 R
...
5 0 obj
[722 444 333 500 278 778 500 500 333 278 500]
endobj

The FirstChar and LastChar entries in the Font dictionary
describe 12 characters, while the Width array has only 11
entries; same holds true for the ToUnicode CMap.

BTW, the whole construct looks a bit critical to me, given
the problems related to custom encodings when used with
TrueType fonts. If you need only WinAnsi characters anyway,
you may as well stay with "/BaseEncoding /WinAnsiEncoding"
(without any /Differences), and include the full /Widths
array for 256 entries.

Thomas

_______________________________________________________________
Thomas Merz          [EMAIL PROTECTED]        http://www.pdflib.com
Personalize PDF: PDFlib Personalization Server and Block plugin
_______PDFlib - a library for generating PDF on the fly________


To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfdev.html




To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfdev.html

Reply via email to