Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need a small postscript file that causes a printer error to test an application I'm writing to help manage printer queues. Rather than experiment with various combinations of postscript code to create one, I thought I'd ask if anyone has such a sample available. I've googled to no avail and am turning to the ServerFault community as a last resort before I begin experimenting.

Also, it needs to error in such a way as to cause a printer error -- not be silently ignored.

share|improve this question
add comment

1 Answer

Here is a minimal PostScript file that SHOULD cause an error message '/undefined in SHOW_' or some such:

%!
200 500 moveto
/Helvetica findfont 36 scalefont setfont
(Hello, world!) SHOW_
showpage

Here is a PostScript file that should NOT cause an error (since the case sensitivity error of above file is corrected):

%!
200 500 moveto
/Helvetica findfont 36 scalefont setfont
(Hello, world!) show
showpage
share|improve this answer
    
This will cause a job error, but will it cause the printer to error out? I need to get the printer into an error state. –  tvanfosson Aug 1 '10 at 13:23
    
Define "printer error out". (There are thousands of printer models; and there are thousands of possible reasons to make each model error out. Which particular combination do you want?) –  Kurt Pfeifle Aug 1 '10 at 22:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.