Apache OpenOffice (AOO) Bugzilla – Issue 106704
Type 1 fonts in PDF export have incorrect /Length3
Last modified: 2010-05-19 12:51:50 UTC
The attached PDF output contains a Nimbus Roman Type 1 font. /Length3 in the FontFile stream has value 521. It should be 544.
Created attachment 66000 [details] OpenOffice test case
Created attachment 66001 [details] PDF output
Created attachment 66002 [details] Uncompressed PDF
In the uncompressed PDF it can be seen that the fixed-content portion of the font in object 5 is 512 '0' characters and 8 newlines followed by the text: cleartomark {restore}if ie 24 characters including new lines. This is a total of 544 bytes. But /Length3 is 521.
Indeed, thanks Adrian!
target
Actually in the font installed on my system there is no closing newline after "{restore}if" (which one would expect), so the correct number is 543. This is now the case in CWS vcl108. However /Length3 will now be the length from the beginning of the 512 zero block to basically end of the font file, so if any further PostScript code or junk data follows, it will be part of Length3. Which is probably not wrong. Fixed in CWS vcl108
Found a case of PFA font where Length3 still was wrong, fixed now also in CWS vcl108 (one should think counting 512 '0' characters wasn't that hard, but there goes :-( )
please verify in CWS vcl108
Looks good to me -> verfied
Closing resolved issue.