I am creating a small data presentation as a PDF, 179 pages in total, 6
plots and two images per data page. There is a small amount of textual
content.
The pages are created by Veusz as PDF files.
These are combined into a single PDF (10.8MB) by Ghostscript 9.15
Unfortunately this trips a known issue with Postscript, reported as
glyph errors. Oddly this is only for a few of all the PDF being combined.
The cause seems fairly well documented on the web. Whether this is an
incompatibility or actual error, I have no idea.
I am using the default Veusz font, TimesNewRoman. Changing to Ariel is
the same but with a different set of errors.
The resultant PDF has a few bad characters, otherwise is fine.
As is often the case stackoverflow provides good commentary
http://stackoverflow.com/questions/12806911/ghostscript-skips-characters-when-merging-pdfs
Comment elsewhere "At least, in the meantime I could confirm this is a
font mapping problem with CID/CJK fonts; so the question now is how (if
possible) to get ghostscript to remap the embedded CID font glyphs
according to a "known" font map (that won't raise errors)"
In this case a Ghostscript script is written out by a program so it can
be run manually from a console. The output is to stdout but with errors
to stderr
The following might be useful information for anyone needing to combine PDF.
Under Microsoft stderr can be redirected to a file.
The 2> and the " " around the executable path string is necessary, gs
64 bit works the same, both are necessarily installed here, 32 calls 32,
64 calls 64, console doesn't care which.
>"fullpath to gswin32c.exe" @gs-cmd.txt 2> z.txt
Where gs-cmd.txt
-dBATCH
-dNOPAUSE
-sDEVICE=pdfwrite
-sOutputFile=.\stats\histograms.pdf
.\stats\template-cover.pdf
.\stats\hist-3002-Baltasound.pdf
.\stats\hist-3005-Lerwick_(S._Screen).pdf
...
.\stats\hist-99132-Drumnadrochit.pdf
.\stats\hist-99159-Swanage.pdf
.\stats\template-back.pdf
And the captured errors are from 179 PDF being combined, not every file.
GPL Ghostscript 9.15: Missing glyph CID=56, glyph=0038 in the font
TimesNewRomanRegular . The output PDF may fail with some viewers.
GPL Ghostscript 9.15: Missing glyph CID=57, glyph=0039 in the font
TimesNewRomanRegular . The output PDF may fail with some viewers.
GPL Ghostscript 9.15: Missing glyph CID=57, glyph=0039 in the font
TimesNewRomanRegular . The output PDF may fail with some viewers.
GPL Ghostscript 9.15: Missing glyph CID=57, glyph=0039 in the font
TimesNewRomanRegular . The output PDF may fail with some viewers.
GPL Ghostscript 9.15: Missing glyph CID=56, glyph=0038 in the font
TimesNewRomanRegular . The output PDF may fail with some viewers.
GPL Ghostscript 9.15: Missing glyph CID=57, glyph=0039 in the font
TimesNewRomanRegular . The output PDF may fail with some viewers.
GPL Ghostscript 9.15: Missing glyph CID=56, glyph=0038 in the font
TimesNewRomanRegular . The output PDF may fail with some viewers.
GPL Ghostscript 9.15: Missing glyph CID=57, glyph=0039 in the font
TimesNewRomanRegular . The output PDF may fail with some viewers.
GPL Ghostscript 9.15: Missing glyph CID=57, glyph=0039 in the font
TimesNewRomanRegular . The output PDF may fail with some viewers.
GPL Ghostscript 9.15: Missing glyph CID=57, glyph=0039 in the font
TimesNewRomanRegular . The output PDF may fail with some viewers.
_______________________________________________
Veusz-discuss mailing list
Veusz-discuss@gna.org
https://mail.gna.org/listinfo/veusz-discuss