Syntax Error: Unknown character collection 'DYNA-HK1'
Submitted by Martin Hong
Assigned to poppler-bugs
Description
Overview: I tried to convert a sample pdf which is exported from Mac OS X's Keynote.app and contains some Chinese characters through pdftoppm
command, but it complains with an error:
Syntax Error: Unknown character collection 'DYNA-HK1'
Steps to Reproduce:
- Open Keynote.app, click "New Document", and then select a random theme to start;
- Input some Chinese characters on slides;
- Click "File" menu item and then select "Export to ..." and select "PDF";
- Export a PDF file;
- Use
pdftoppm
to convert exported PDF file.
Actual Results: it complains with an error: "Syntax Error: Unknown character collection 'DYNA-HK1'"
Expected Results: Convert sample PDF file into images without any complain.
Build Date & Hardware: 2015-12-05 on Mac OS 10.11.1 with Keynote.app v6.6.1
Additional Information: The below lists some details: ———————— $ pdftoppm -v pdftoppm version 0.37.0 Copyright 2005-2015 The Poppler Developers - http://poppler.freedesktop.org Copyright 1996-2011 Glyph & Cog, LLC ———————— $ pdftoppm -png ~/Desktop/test.pdf tmp Syntax Error: Unknown character collection 'DYNA-HK1’
the test.pdf
is exported from Mac OS’ Keynote.app and contains some Chinese characters. If I try to export a pdf which doesn’t contain any Chinese characters, it will work. Additionally, I also tried to use pdftotext to print text in test.pdf
, it can print text normally.
You can also download the test pdf from here: http://7xj84e.com1.z0.glb.clouddn.com/test.pdf .
I also tried to convert the test pdf through ImageMagick's convert command, it worked as expected as poppler did not.