?
Solved

Is there a way to fix a PostScript file error?

Posted on 2010-08-25
4
Medium Priority
?
1,160 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

Independent Software Vendors: 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

This article provides the solution to a question (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28674207.html) posed here at Experts Exchange. The asker of the question has many JPG images in many folders, and all of t…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Suggested Courses

741 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