Skip to main content
Participant
April 23, 2014
Question

Converting multiple files into a one PDF:Error

  • April 23, 2014
  • 2 replies
  • 989 views

I have a .net app which converts multiple pdf files to one big PDF using postscript. For few PDFs while combining I get this error message. What is this means? How to fix it?

ERROR: undefined

OFFENDING COMMAND: findresource

STACK:

/Adobe-Identity

-dictionary-

-dictionary-

/CIDFontObject

-mark-

-dictionary-

/Arial

-dictionary-

-dictionary-

9/

C0_0

10

1

-dictionary

This topic has been closed for replies.

2 replies

Participating Frequently
April 24, 2014

I suppose you use some fairly recent version of Ghostscript, and the PDF in question uses a CID font which is not embedded.

Therefore the interpreter looks for a substitution font and does not find a suitable one.

See the Ghostscript documentation (file "use.htm") for handling CID fonts. Among other items, it states:

Please note that when a PDF font resource specifies

/Registry (Adobe) /Ordering (Identity)

there is no way to determine the language properly. If the CID font file is not embedded, the Adobe-Identity record depends on the document and a correct record isn't possible when a document refers to multiple Far East languages. In the latter case add individual records for specific CID font names used in the document.

Probably aou need to edit the file cidfmap by hand to define a suitable substitution font (as you didn't tell what system you are using, I cannot tell the

correct path where the said file will reside).

Helge

Legend
April 24, 2014

You're right, I didn't pick up on the PDF input, rather than PostScript input. Aren't there much better ways than GhostScript to combine PDFs?

Willi Adelberger
Community Expert
Community Expert
June 2, 2014

Acrobat Pro (and do avoid postscript as good as you can).

Legend
April 23, 2014

If the files do not give this error separately, there is an issue with the PostScript wrapper used to combine the files. Probably. Hard to say as you don't share it!