Solved

Is there a way to fix a PostScript file error?

Posted on 2010-08-25
4
1,101 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:Herman D'Hondt
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article discusses the PaperPort 14 Scanner Connection Tool, which Nuance provides at no charge in order to fix scanning problems in Windows 8. Furthermore, users of PaperPort 14 in Windows 7 and Windows 10 have reported that the tool works in t…
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 second video of the Xpdf series, we discuss and demonstrate the PDFimages utility, which, in a single command, is able to extract all the images from a PDF file and save each one in a separate image file (PBM, PPM, or JPG). Download and inst…
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …

762 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

6 Experts available now in Live!

Get 1:1 Help Now