Quantcast
Channel: Ghostscript.NET
Viewing all articles
Browse latest Browse all 393

New Post: Processing event of GhostscriptProcessor class

$
0
0
Hi,

I did not saw earlier that you are converting PostScript to PDF. I spoke with the developers of the Ghostscript native library and they said that the thing is that a PDF file is a structured format which includes (amongst other things) a definition of the number of pages. PostScript is a streamable simple format and does not contain that information. Some PostScript files contain 'DSC' comments which declare the number of pages in the document. However these can include the not terribly useful 'atend' value, which means that the number of pages is defined at the end of the program. By which time, of course, an interpreter knows how many pages there are, because its processed them all.

That means that by default for the PostScript files there is no way to get back information from the Ghostscript which PostScript page is processing.

Cheers,
Josip

Viewing all articles
Browse latest Browse all 393

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>