Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ghostscript PDF generates warning on open

Status
Not open for further replies.

baltman

Technical User
Mar 5, 2002
1,578
US
I'm generating PDF files with GS and when trying to open the results I get a long warging to the effect that "This file appears to use a new format that this version of Acrobat does not support..." I'm using Reader 6, so I doubt this is the case.

After pressing "OK" the file opens and looks just fine.

I can toggle the compatibility parameter to 1 from 2/3 and everything works fine, but the resulting PDF is 7x larger.

Is there another setting I can play around with to get compatibility AND a smaller file size?

This line makes a smaller file with compatibility issues:
Code:
 -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE#pdfwrite -sOutputFile#]+m_outfile +[ -dnodisplay -dCompatibilityLevel#3 -c .setpdfwrite -f ] +m_ifilename

And this line makes a larger file WITHOUT compatibility issues:
Code:
 -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE#pdfwrite -sOutputFile#]+m_outfile +[ -dnodisplay -dCompatibilityLevel#1 -c .setpdfwrite -f ] +m_ifilename

Thanks,
Brian
 
Can you post a link to the file?

Applications are allowed to put their own objects into a PDF file, which are supposed to be ignored by PDF consumers.

But I would be surprised if GhostScript does that.

What is your source document? PostScript? Who produces the PostScript? There could be, for example, a pdfmark dictionary which GhostScript turns into a COS object that Reader doesn't recognize.


Thomas D. Greer

Providing PostScript & PDF
Training, Development & Consulting
 
The source is an HTML file I generate from scratch with no special characteristics.

I've automated an open with IE 6, print to file using the Lexmark Optra Color 1200 PS print driver.

Then I run a modified version of a FoxPro program that automates GS (code available in faq184-2143) which among other things runs GS with the parameters line I posted above.

Brian
 
I can create a dummy report and e-mail the PS and PDF files to your info address if that's OK with you.

Thanks,
Brian
 
I think I've resolved my issue, which mostly has to do with my integer based thinking. If I set dCompatibilityLevel to 1.2, then I get a small file without the warning.

Thank you for your time.

Brian

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top