View Issue Details

IDProjectCategoryView StatusLast Update
0014613ScribusPDFpublic2017-02-09 23:54
Reporterjyamad Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformMacOSOS XOS Version10.11.6
Product Version1.5.2 
Summary0014613: OTF fonts disappear from PDF after annotation in Mac OS X Preview
DescriptionOTF fonts from Scribus PDFs get clobbered when the PDF is saved in Mac OS X Preview (v8.1) after adding annotations or making any changes to the PDF. The fonts are just gone, so the PDF appears blank where the font is used. The problem seems limited to OTF fonts reported as CID Type 0C by the program `pdffonts`.

The problem goes away after passing the Scribus PDF through `ps2pdf` with the command `ps2pdf -dPDFSETTINGS=/prepress -dEmbedAllFonts`. Cairo PDFs with the same fonts don't show the problem either. This suggests that there is some bug in Scribus' embedding, even if Preview is also partly to blame.

The problem was discovered in Scribus 1.5.2, but is still a problem as of svn revision 21756.
Steps To Reproduce1) Create document with an OTF font (e.g. Adobe Caslon Pro Regular)
2) Export to PDF with embedded/subset font
3) Open PDF in Preview and highlight a region of text
4) Re-open PDF and note missing fonts
Additional InformationAttached is an example file

otftest.pdf is the original Scribus output
otftest_broken.pdf is the result after otftest.pdf is saved with an annotation in Preview
otftest_ps2pdf.pdf is the result of passing otftest.pdf through ps2pdf. This version works fine in Preview.
TagsNo tags attached.
PatchNo

Activities

jyamad

2017-02-09 21:04

reporter  

otftest.pdf (27,540 bytes)
otftest_ps2pdf.pdf (30,225 bytes)
otftest_broken.pdf (4,905 bytes)

jghali

2017-02-09 23:17

administrator   ~0043460

Last edited: 2017-02-09 23:19

otftest_broken.pdf has been saved as PDF 1.3 by OS X PDF producer. PDF 1.3 has no support for OpenType fonts in annotations in the first place. The bug is in OS X.

jyamad

2017-02-09 23:38

reporter   ~0043461

The OpenType font is not used in the annotation itself, though. otftest_broken.pdf has just a highlight, which is what triggers the problem. And otftest_ps2pdf.pdf is a PDF 1.3 and can be highlighted and saved without problems in Preview. Ditto with test files created with luatex (uses cairo, I believe). There is something specific about the Scribus embedding.

jghali

2017-02-09 23:54

administrator   ~0043462

But in the end, only Apple can know what cause the problem in Preview....

Issue History

Date Modified Username Field Change
2017-02-09 21:04 jyamad New Issue
2017-02-09 21:04 jyamad File Added: otftest.pdf
2017-02-09 21:04 jyamad File Added: otftest_ps2pdf.pdf
2017-02-09 21:04 jyamad File Added: otftest_broken.pdf
2017-02-09 23:17 jghali Note Added: 0043460
2017-02-09 23:19 jghali Note Edited: 0043460
2017-02-09 23:38 jyamad Note Added: 0043461
2017-02-09 23:54 jghali Note Added: 0043462