Problem with creating Adobe PDF's (OpenInsight 32-bit Specific)
At 11 JAN 2005 11:35:26AM Casey Greenwood wrote:
We are currently using OpenInsight 7.01 to produce PDF files for reports in our system. I recently upgraded to Adobe Acrobat Reader 7.0 from Reader 6.0 and found that my PDF files created are now all blank – is there something else that needs to be upgraded in order for the PDF files created utilizing OIPI to work properly? Has anyone else experienced this problem with upgrading the Reader software?
Thanks,
Casey Greenwood
At 13 FEB 2005 09:52PM Jordan Fackrell wrote:
We are having the same problem. I have tried printing to a PDF file using a variety of different techniques, but none of them work in the new version of Adobe Reader (7.0). Any help on a fix would be great.
At 13 FEB 2005 11:24PM Donald Bakke wrote:
Revelation has claimed to have fixed this problem. It will be available in the next release of OI. If you are a Works subscriber you can request a fix ahead of time.
dbakke@srpcs.com
At 10 MAR 2005 07:01AM Simon L Dobson wrote:
The VSPDF.OCX file that OIPI uses to create PDFs doesn't actually create valid PDFs (something to do with embedding TT fonts) - up until now the various versions of Acrobat Reader have been fairly forgiving about this, but version 7 puts the boot in. Here's some output from Ghostscript:
Processing pages 1 through 1.
Page 1
* Warning: stream Length incorrect. Warning: stream Length incorrect. Warning: Fonts with Subtype=/TrueType should be embedded. But Times New Roman is not embedded. Substituting font Times-Roman for Times New Roman. Loading NimbusRomNo9L-Regu font from C:\gs\fonts/n021003l.pfb… 2446240 1073550 1657872 358370 3 done. Warning: Font Widths array size is smaller than character range. Warning: Fonts with Subtype=/TrueType should be embedded. But Times New Roman,Bold is not embedded. Substituting font Times-Roman for Times New Roman,Bold. Warning: Font Widths array size is smaller than character range. This file had errors that were repaired or ignored. The file was produced by: ]]]] VideoSoft PDF Generator 1.0 «« Please notify the author of the software that produced this file that it does not conform to Adobe's published PDF ** specification.(this is from a PDF generated using OI 4.1.3 - not sure about more recent versions)
We got around this problem by pushing the PDF through Ghostscript after it's created by OIPI - if you modify the "pdf2ps.bat" which is bundled with Ghostscript and make it use "pdfwrite" instead of "pswrite" you end up with a batch file that will "clean" the malformed PDF. The TT fonts are substituted for Type 1 fonts and the PDF works fine with Reader 7 (the PDF filesize is a bit smaller too, which is nice).