|Summary:||Adobe Distiller cannot process PostScript file generated by poppler pdftops|
|Product:||poppler||Reporter:||Alex Korobkin <korobkin+lpad>|
|Status:||RESOLVED MOVED||QA Contact:|
|i915 platform:||i915 features:|
china-visa-application.pdf - original pdf
Description Alex Korobkin 2013-09-17 19:08:51 UTC
Created attachment 86007 [details] china-visa-application.pdf - original pdf Hi team, Attached file, when converted to PS3 with pdftops, cannot be processed by Ricoh printers that seemingly use Adobe Distiller embedded engine to parse it. When resulting PostScript file is opened with Adobe Distiller XI for Windows, the following error message appears: Adobe PostScript software version: 3018.101 CID support library initialization completed. Adobe PDF Settings: C:\ProgramData\Adobe\Adobe PDF\Settings\Standard.joboptions %%[ Warning: Times-BoldItalic not found, using Font Substitution. Font cannot be embedded. ]%% %%[ Error: undefined; OffendingCommand: xyshow ]%% Stack: [26.046 0.0 26.046 0.0 26.046 0.0 26.046 0.0] (Añ+cB'>˜) [1.447 0 1.447 0 1.447 0 1.447 0] (Añ+cB'>˜) 762.6 363.275 %%[ Flushing: rest of job (to end-of-file) will be ignored ]%% %%[ Warning: PostScript error. No PDF file produced. ] %% Distill Time: 00 Hour(s) : 00 Minute(s) : 00.500 Second(s) **** End of Job **** The original PDF is attached. The resulting PS was made with poppler 0.24.1, command line pdftops -r 300 -level3 -origpagesizes It is available here: https://docs.google.com/uc?export=download&id=0B-vV7Qx5rjpEVWxVSWtFZU5UX2s What can be done to make the output more compatible with Adobe products?
Comment 1 Alex Korobkin 2013-11-20 15:50:35 UTC
Created attachment 89534 [details] Form DS-7002.pdf Page 2 fails to print with pdftops
Comment 2 Alex Korobkin 2013-11-20 15:53:21 UTC
That's what I get when trying to open PS file of the form DS-7002 in Distiller: %%[ Error: invalidfont; OffendingCommand: xyshow ]%% Stack: [4.41773 0.0 2.16231 0.0 4.41773 0.0 4.41773 0.0 2.16231 0.0 5.76617 0.0] (84 0] (%%[ Flushing: rest of job (to end-of-file) will be ignored ]%% %%[ Warning: PostScript error. No PDF file produced. ] %%
Comment 3 Alex Korobkin 2014-01-02 22:09:22 UTC
Created attachment 91436 [details] china-visa-application_pdftocairo.ps china-visa-application.pdf converted with pdftocairo.
Comment 4 Alex Korobkin 2014-01-02 22:12:13 UTC
I tried to use poppler 0.24.4 and pdftocairo with the file china-visa-application.pdf, and printers along with Adobe Distiller choke on imagemask command there. This is how imagemask looks in the resulting PS file: imagemask Gar8O!!3<."p5&6Mu*H<lMpm`s8T;%s*la!#Nl!cb6!e-!5&ILgA~> Q 0 g BT This is what Distiller says: PAGE: 1 1 PAGE: 2 1 PAGE: 3 1 %%[ Error: undefined; OffendingCommand: imagemask Distiller; ErrorInfo: ImageType --nostringval-- ]%% Stack: -dict-
Comment 5 Alex Korobkin 2014-01-05 21:04:58 UTC
Comment on attachment 89534 [details] Form DS-7002.pdf Removed, it is not directly related to this bug.
Comment 6 Alex Korobkin 2014-05-26 19:08:15 UTC
Another file that cannot be read by Distiller (tested with pdftops 0.24.5 and 0.25.3 -level3). GhostScript converts this file normally. pdftocairo converts it seemingly OK (Distiller can read it), but embedded Distiller engine in Ricoh printers produces "invalidfont" error. Original pdf: soyeulylich.pdf Converted by pdftops -level3: soy-pdftops.ps
Comment 9 Alex Korobkin 2014-05-26 19:12:04 UTC
Distiller error output: %%[ Warning: Times-Italic not found, using Font Substitution. Font cannot be embedded. ]%% %%[ Warning: Times-Roman not found, using Font Substitution. Font cannot be embedded. ]%% %%[ Error: invalidfont; OffendingCommand: xyshow ]%% Stack: [2.49 0.0] (6.32 %%[ Flushing: rest of job (to end-of-file) will be ignored ]%% %%[ Warning: PostScript error. No PDF file produced. ] %%
Comment 10 James Cloos 2014-05-26 21:33:00 UTC
> %%[ Warning: Times-Italic not found, using Font Substitution. Font cannot be embedded. ]%% > %%[ Warning: Times-Roman not found, using Font Substitution. Font cannot be embedded. ]%% > %%[ Error: invalidfont; OffendingCommand: xyshow ]%% pdffonts shows: name type encoding emb sub uni object ID ---------------------- ---------- ---------- --- --- --- --------- TimesNewRoman,Italic TrueType WinAnsi no no no 6 0 TimesNewRoman TrueType WinAnsi no no no 7 0 Pdftops produces postscript which relies on the PS engine having the fonts /Times-Roman and /Times-Italic built-in. Ie, if this works then the pdftops output also should: %! /Times-Roman 24 selectfont 100 200 moveto (Times-Roman) show /Times-Italic 24 selectfont 100 100 moveto (Times-Italic) show showpage % Adding pdftops’ pdfMakeFont procedure should lead to a simplified ps which demonstrates the error. Pdftocairo, OTOH, uses fontconfig to find a substitute and embeds that in the postscript. Here it ends up with the URW++ fonts from ghostscript.
Comment 11 Alex Korobkin 2015-01-09 22:15:13 UTC
Created attachment 112036 [details] soy-cairo.ps Just got reminded about this issue again. From what I understand, pdftocairo tries to embed a similar font but doesn't embed it correctly. If you convert that soyeulylich.pdf with pdftocairo -ps -level3 to PS (soy-cairo.ps attached), and then open it with Distiller, Distiller will complain that 'OBPNNK+TimesNewRomanPS-BoldMT' font cannot be extracted. What can be done to improve it?
Comment 12 Adrian Johnson 2015-01-10 12:25:15 UTC
(In reply to Alex Korobkin from comment #11) > What can be done to improve it? Find out why Distiller doesn't like it. As far as I can see the fonts are embedded correctly and works on all the PostScript interpreters I have available to me. I don't have Distiller.
Comment 13 GitLab Migration User 2018-08-21 10:58:17 UTC
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/449.