Apache OpenOffice (AOO) Bugzilla – Issue 40325
Fraction error in PDF export
Last modified: 2017-05-20 11:29:28 UTC
When I use the font fractions for Times New Roman in a document and export that document to PDF, only 1/2 fractions are exported all other fractions are not. The document was created originally in OOOo 1.1.3, but exported to pdf in 1.1.4. The PDF file was viewed using Adobe Acrobat 6.0 Professional
Created attachment 21323 [details] The exported PDF file with missing fractions
Created attachment 21324 [details] The original OOo write file with the fractions
reassigned to HI.
One aspect seems to be, that the document uses a strange mixture of Times New Roman (TrueType) and Times (Type1 PostScript). When I open the document, I see blank rectangles where I suppose the fractions for 1/3 and 2/3 should be, but 1/2 works fine. See bottom of page 5. My font menu says that the font is "Times". When I switch the font to Times New Roman, then the fractions work. client21% pdffonts Downloads/Ultimatum\ Write\ Up.pdf name type emb sub uni object ID ------------------------------------ ------------ --- --- --- --------- Times-Bold Type 1 no no no 44 0 Times-Roman Type 1 no no no 46 0 Times-BoldItalic Type 1 no no no 45 0 Times-Italic Type 1 no no no 43 0 FAAAAA+TimesNewRomanPSMT TrueType yes yes yes 36 0 Helvetica Type 1 no no no 42 0 HAAAAA+ArialMT TrueType yes yes yes 41 0
OOo 1.1.3 and 1.1.4 under WinXp Pro, SP2, Ver. 5.1, Build 2600 (a) 1. Created NEW text document with font Fractions for 1/2, 1/4 and 3/4 being Times New Roman in O.O.o 1.1.3. 2. Exported to PDF in O.O.o 1.1.4, viewed with Adobe Acrobat 6.0 Professional. Result: All fractions exported. (b) Copied pasted table 1 on page 6/15 of original OOo file into a NEW text document in OOo 1.1.4. Saved, exported to PDF and viewed with Adobe Acrobat 6.0 Professional. Result: Only 1/2 fractions are exported. Conclusion: Bug seem to be specific to the original Ooo file submitted.
Was able to replicate the bug only with the attached document. Tried to create one new document to replicate the issue, but seems to work fine.
I converted the entire text of the original document to Times New Roman (thanks to the suggestions here) and then exported as PDF and the fractions appeared. In fact, on first try I only changed the text in the body (not the footnotes) and the fractions were visible in the body but not in the footnotes. When I changed the footnotes the export went fine everywhere. Hope this helps, and thanks alot for looking into it!
HI->PL: Not reproducible for me but maybe you'll find somethink.
actually the missing fractions should be inserted by font fallback; but it may be that the fallback font does not contain the fractions either ? assigning to hdu for investigation
Ok, so the original problem is solved by using the proper font. There are two remaining issues: - why didn't glyph fallback work for the fractions - should we implement "auto glyph fallback", i.e. converting e.g. U+00BE (a.k.a 3/4 fracture) into '3','/','4'
- why didn't glyph fallback work for the fractions the question should be "why did glyph fallback work for display, but not for PDF-export - should we implement "auto glyph fallback", i.e. converting e.g. U+00BE (a.k.a 3/4 fracture) into '3','/','4' please don't. If the characters are not available, warn the user instead. (Like you can warn the user when hidden text/notes are exported).
Reset assigne to the default "issues@openoffice.apache.org".