Solved

Is there a way to fix a PostScript file error?

Posted on 2010-08-25
4
1,151 Views
Last Modified: 2013-12-02
I am using Print Distributor to write PostScript files to disk and then reprint them to a printer. When an error occurs no pages after the error are printed but the file size seems to reflect that all of the page data is there. Is there any way to find the error and fix it so I can print the entire file?

I am using GSView to view the postscript and the error I am getting now is:

ERROR: ioerror OFFENDING COMMAND: image STACK:

Any ideas?
0
Comment
Question by:jeshbr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 38

Expert Comment

by:hdhondt
ID: 33530048
It's a feature of PostScript that nothing in the job is processed after *any* error occurs. Hence the printer never sees the "showpage" command at the end. That is the way PostScript works, to ensure that what is printed is correct.

The only thing you can do is to download an "error handler" as part of the print job, like the Windows driver does. This then tells the printer to print an appropriate error message. If you write your own error handler, you could also tell it to print the data that was received prior to the error, by having the error handler issue a "showpage" command before it terminates.
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 33531127
There is always a way to fix problems... However, PostScript is a programming language, and if you don't work with it on a daily basis, chances are that there is nothing you can do to fix that problem yourself. Your best bet is to get in touch with the makers of this Print Distributor and have them debug your problem. They have the tools, and the knowledge to do this in a lot less time it would take you to even get started with PostScript programming.
0
 
LVL 3

Accepted Solution

by:
jeshbr earned 0 total points
ID: 33532879
I was able to fix the problem.  The postscript file contained multiple documents.  I wrote a program to split the PS file into multiple PS files so I had one file per document.  I then wrote another program to validate all of the split out PS files using GhostScript and delete invalid documents.  I then wrote another program to concatenate all the PS files back together.  Now it works and I now know more about PS and PS utilities then I ever wanted to.
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 33532917
Great. However, this only works when the PostScript generator creates PS that has self contained pages. That is not necessarily true: Because it is a programming language, you can do things on the first page that affect any of the following pages. See, you just learned one more thing about PS :) Great job. You can submit a request to have this question PAQ'ed and your points refunded.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
I. Introduction In a previous article (http://www.experts-exchange.com/Web_Development/Document_Imaging/A_6537-PaperPort-Upgrade-How-to-download-and-install-updated-versions-of-PaperPort-11-and-12.html) (now deprecated), I discussed how to upgrad…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question