Printing pdf problem using pasta.cfg


 
Thread Tools Search this Thread
Operating Systems Solaris Printing pdf problem using pasta.cfg
# 8  
Old 11-30-2012
OK, then the pdf2ps is not finding environment as a preprocess that it inherits on the command line. You might need a wrapper script. Start with a wrapper script that collects error printout from pdf2ps. If that is not informative, then use truss in the wrapper script to see where pdf2ps falls off the wagon. Compare the truss output with a successful call from the command line. Option truss -aef -rall -wall and anything else that looks nice.
# 9  
Old 12-02-2012
I have run this command on command line its successful but in case of printing done through ERP it gives error.
I have removed -toPostScript from pasta.cfg so error is different. Please see error below

Code:
APP-FND-00500: AFPPRN received a return code of failure from routine FDUPRN. Program exited with status 1

Cause: AFPPRN received a return code of failure from the OSD routine FDUPRN. Program exited with status 1.

Action: Review your concurrent request log file for more detailed information.

how can i get wrapper Script
Regards

---------- Post updated 12-02-12 at 03:18 PM ---------- Previous update was 12-01-12 at 08:42 PM ----------

Important thing which is worth mentioning when I enable debug error is different and when its disable error is different.

In case of debug the error is giving below
rinting output file.
Code:
               Request ID : 2375672 	
         Number of copies : 1 	
                  Printer : hplasterjet5500pcl6 

APP-FND-00500: AFPPRN received a return code of failure from routine FDUPRN. Program exited with status 1

Cause: AFPPRN received a return code of failure from the OSD routine FDUPRN. Program exited with status 1.

Action: Review your concurrent request log file for more detailed information.

and without debug the error is

Code:
ESP Ghostscript 815.01: Unrecoverable error, exit code 1
Pasta: Error: Preprocess failed. Command=/usr/sfw/bin/pdf2ps /prdclone/CLN/inst/apps/prdcln_zainirqerpp/logs/appl/conc/out/o2375641.out.pdf /prdclone/CLN/inst/apps/prdcln_zainirqerpp/appltmp/pasta2952_0.tmp
Pasta: Error: Preprocess or Print command failed!!!
APP-FND-00500: AFPPRN received a return code of failure from routine FDUPRN. Program exited with status 1

Cause: AFPPRN received a return code of failure from the OSD routine FDUPRN. Program exited with status 1.


Last edited by Scott; 12-02-2012 at 09:08 AM.. Reason: CODE TAGS
# 10  
Old 12-04-2012
I have configured pdf2ps and pdftops now I am able to print but its garbage. There is no error in log file but print is not readable. Need help
# 11  
Old 12-05-2012
Create a wrapper script that writes debug logs. For instance, if it works on the command line but not in the lp driver, have the command do a "set >/tmp/pdf2ps_env.log" so you can see what is missing from the environment. In a wraper, you can also truss the command with output saved so you can compare much more between the command line version that works and the lp version that fails.
# 12  
Old 12-06-2012
its printing now but issue is that I need to print it in landscape but its printing in portrait how can I print in landscape with ERP application.
# 13  
Old 12-06-2012
-dORIENT1=true/false somewhere in there How to use Ghostscript
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem in refreshing a text editor (gedit) for scanned pdf

Dear Friends, I am using Ubuntu 15.10, 34 bit system. I added a Nautilus-Actions script in shell script to convert PDF files to text. There are 2 types of PDF 1. Scanned PDF -- Not OCR type -- When I convert it to text it work , but as the part it must (text file) open in gedit . But I can see... (2 Replies)
Discussion started by: anespa
2 Replies

2. Shell Programming and Scripting

[Solved] Pdf Printing in Solaris

HI All I need help related to Pdf printing in Solaris.as I print pdf file in solaris it print garbage.how can I print pdf correctly. need help asap. Regards (21 Replies)
Discussion started by: smazshah
21 Replies

3. UNIX for Advanced & Expert Users

problem creating pxelinux.cfg default file

Hi All, I was trying to create pxelinux.cfg/default file in a script that I use for creating backup of bootimage. cat 2>${BACKUB_BOOTIMAGE_ERRINFO} >${pxelinux_cfg_file} <<EOF prompt 1 timeout 0 display boot.msg label restore kernel kernel append root=/dev/nfs... (0 Replies)
Discussion started by: Pkumar Sachin
0 Replies

4. Windows & DOS: Issues & Discussions

Linux to Windows Printing: PDF starts printing from middle of page.

We are using Red Hat. We have a issue like this: We want to print from Linux, to a printer attached to a Windows machine. What we want to print is a PDF. It prints, but the printing starts from the middle of the page. In the report, there is no space at the top but still printing starts from the... (5 Replies)
Discussion started by: rohan69
5 Replies

5. UNIX for Dummies Questions & Answers

wget pdf downloading problem

Hi. I am trying to make a mirror of this free online journal: http://www.informaworld.com/smpp/title~content=t716100758~db=all Under the individual issues, the link location for the "Full Text PDF" does not have ".pdf" as an extension -- so when I use wget it misses the file. However clicking... (5 Replies)
Discussion started by: obo1234
5 Replies

6. Shell Programming and Scripting

Printing to PDF - Advanced usage

Hello, Just a rather long query regarding printing to PDF. I have installed the Cups-PDF printing system which enables me to send a normal text file and create a PDF of it. I then use the pdftk to merge that file with a template. My question is, that I have a database system that will need... (2 Replies)
Discussion started by: stuaz
2 Replies

7. UNIX for Dummies Questions & Answers

PDF Printing....

:confused: We have a Sco Open Unix 5.0.5 Server that I am trying to configure to allow for PDF creation. Currently the server is just using lpr to print to laser printers located throughout the facility. The goal is to be able to also print to pdf documents. There is no option for... (2 Replies)
Discussion started by: pabloescobar
2 Replies

8. UNIX for Dummies Questions & Answers

What's the problem with the pdf file??

Sometimes,I open a pdf file with ghostview and it works well. But when I open the file below, the error message comes out: /****message begin****/ bash-2.03$ bash-2.03$ ghostview TexBook_chinese_ver.pdf information提示框 Error: /typecheckAFPL Ghostscript 8.14: Unrecoverable error, exit code 1... (1 Reply)
Discussion started by: new_hand
1 Replies

9. UNIX for Dummies Questions & Answers

printing in postscript or convert from pdf?

hi - go easy on me, i'm new to UNIX... i need to resample huge pdf files and make them smaller. distiller won't resize existing pdf files. i thought i could print the pdf to a postscript file and then resample that. would that work? if so, how? is this the best way forward or should... (1 Reply)
Discussion started by: jono2000
1 Replies

10. UNIX for Dummies Questions & Answers

printing PDF files

Hi all: I'm trying to resolve a print issue in HPUX. Background: An ascii report file was being produced by a program. It was being sent to the printer via internal commands, to wit: let #send_status = 0 let $send_cmd = 'lp -d lp03 /ps/tmp/edsprint/eds*.N.LIS' call... (4 Replies)
Discussion started by: abNORMal
4 Replies
Login or Register to Ask a Question