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
Solved

Is there a way to fix a PostScript file error?

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

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 a previous article published here at Experts Exchange, Signature Image with Transparent Background (http://www.experts-exchange.com/Web_Development/Document_Imaging/A_12380-Signature-Image-with-Transparent-Background.html), I explained how to cre…
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) …
Microsoft Office Picture Manager has a Picture Shortcuts pane that shows a list with the Recently Browsed folders. While creating my video Micro Tutorial here at Experts Exchange showing How to Install Microsoft Office Picture Manager in Office 2013…

837 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