Re: ps2pdf: Embedded files are removed

Ken Sharp <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.devel
Message-ID <[email protected]>
At 10:19 18/03/2016 +0100, Andreas Nef wrote:

>I guess the solutionn is to check for aspects that are not supported by 
>the interpreter before sending it to ghostscript as gs will just silently 
>ignore non-supported non-marking aspects. Is there a reference on what 
>aspects are (not) supported by the interpreter?

No, sorry, nothing at all. Even if there were there are *2* parts:

Firstly the relevant language interpreter needs to support whatever 
non-marking operation is being executed. In general the language 
interpreters do not process non-marking operations (eg the PostScript 
interpreter ignores comments).

Secondly the output device needs to support that non-marking operation as well.

In this particular case, while the PDF interpreter ignores embedded files 
in a PDF, the PostScript interpreter will pass on /EMBED pdfmark 
operations, and the pdfwrite device will process these, which means that 
you *can* create a PDF file with embedded files from pdfwrite using 
PostScript as an input, but not by using PDF as an input......



                         Ken
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.