Solved

Is there a way to fix a PostScript file error?

Posted on 2010-08-25
4
1,117 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
  • 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

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…
This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
This video Micro Tutorial is the second in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 (http://www.experts-exchange.com/articles/17490/). But the ability to create custom scanning profiles a…

914 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now