
GSVIEW PS TO PDF COMMAND LINE PDF
If Acrobat will open the file then it must be OK! Sadly it turns out that Acrobat is really very tolerant of badly formed PDF files and will always attempt to open them.

Since there is no means to ‘verify’ that a PDF file conforms, creators fall back on using Adobe Acrobat, the de facto standard. It has also become increasingly evident that many PDF producers do not create PDF files that conform to the specification. These extensions have proven to be a security problem in the past and we would like to remove our PDF interpreter’s dependence on them. PDF has added features like transparency, which have no equivalent in PostScript, and the only way for us to support these has been to add special, often undocumented, PostScript extensions. In addition, the PDF specification has continued to evolve, whereas the PostScript language has remained static. Not all of the Artifex development team are experienced PostScript programmers and even for those of us skilled in the language, the PDF interpreter code is now so large and arcane that it is difficult to fully understand some aspects of the PostScript program which performs the PDF interpretation. PostScript has been described, with some justification, as a ‘write-only’ language and, being now an elderly language is a rare skill for developers making it quite hard to recruit new engineers with PostScript programming skills. However, there are problems, mainly invisible to our users but nevertheless still present. Indeed that original PDF interpreter has served us well for decades. When the original implementation was done this made good sense the graphics model of PostScript and PDF was compatible and the PDF syntax is (or at least was) broadly similar to PostScript. The original PDF interpreter, as previously supplied with Ghostscript, is written in PostScript. Read on for answers to frequently asked questions, and highlights of the changes. Rewritten entirely in C, the new implementation delivers a standalone PDF interpreter that is faster and more secure than its predecessor, written in PostScript. For this release, those new binaries are not included in the “install” make targets, nor in the Windows installers. This also allows us to offer a new executable (gpdf, or gpdfwin?.exe on Windows) which is purely for PDF input.

We’ve provided this so users who encounter issues with the new interpreter can keep working while we iron out those issues, the option will not be available in the long term. The old PDF interpreter can still be accessed as a fallback by specifying -dNEWPDF=false. We are happy to announce the new PDF Interpreter code is feature complete and is now enabled by default in Ghostscript 9.56.1. The new PDF Interpreter is now the default!
GSVIEW PS TO PDF COMMAND LINE UPDATE
The NEW Ghostscript PDF Interpreter Update to the original post – March 4, 2022
