Thursday, March 1, 2012

Oracle Apps - PDF Printer Configuration Using Pasta

Overview


This document describes the steps to configure PDF Printer for ERP applications (11i/R12). This will enable to print PDF directly from ERP applications.

Pre-Requisite


  • Configure Printer in Server (not required for existing configured printers) and printer should be a Postscript ready printer.
  • Install Pasta (Pasta will be installed by default)
  • Install third party software to convert the PDF file to another graphical format
    • Here we are considering Acrobat Reader. So Acrobat Reader should be installed on Application Server.
    • Other third party software can be used like pdftops, pdf2ps

Configuration Setup


1.    Define PDF Custom Printer Driver


·         Navigate to System Administrator à Install à Printer à Driver
·         Define new custom drivers as information provided below


Landscpe
Driver Name
PDF_CUSTOM_L
User Driver
PDF_CUSTOM_L
Description
PDF Custom Landscape


Driver Method
Select <Program>


Driver Method Parameters
Select <Spool File>
Program Name 
FNDPSTAX
Arguments
-pn$PROFILES$.PRINTER -f$PROFILES$.FILENAME -c$PROFILES$.CONC_COPIES -Fpasta_pdf_land.cfg







Portrait


Driver Name
PDF_CUSTOM_P
User Driver
PDF_CUSTOM_P
Description
PDF Custom Portrait


Driver Method
Select <Program>


Driver Method Parameters
Select <Spool File>
Program Name 
FNDPSTAX
Arguments
-pn$PROFILES$.PRINTER -f$PROFILES$.FILENAME -c$PROFILES$.CONC_COPIES -Fpasta_pdf_port.cfg



2.    Define PDF Custom Style


·         Navigate to System Administrator à Install à Printer à Style
·         Define new custom drivers as information provided below


Landscpe
Style Name
PDF_CUSTOM_L
Seq
7766 <or Any Number which is not used>
User Style
PDF Custom Landscape
SRW Driver
L
Description
PDF Custom Landscape


Layout

Columns
132
Rows
65
Orientation
Landscape





Portrait


Style Name
PDF_CUSTOM_P
Seq
8877 <or Any Number which is not used>
User Style
PDF Custom Portrait
SRW Driver
P
Description
PDF Custom Portrait


Layout

Columns
80
Rows
66
Orientation
Portrait






3.    Attach Printer Style & Driver to existing Printer Type


·         Navigate to System Administrator à Install à Printer à Type
·         Select Printer Type which is attached to the Printer which will be used for PDF printing.
Eg : In this example we use “PRINTER_BLDG1” printer and Printer type assigned to this printer is “HPLJ4”

·         So Add newly defined Style and Driver to type “HPLJ4”

4.    Concurrent Program Definition Update


·         Update all the Custom concurrent program definition which will use PDF printing to reflect new Style.
·         Query any existing Concurrent Program which uses PDF and update Style to “PDF_CUSTOM_P” (if output is Portrait) or “PDF_CUSTOM_L” (if output is landscape) depends on the output.


·         Create pasta_pdf_land.cfg and pasta_pdf_port.cfg files under $FND_TOP/resource by copying the existing pasta_pdf.cfg
Eg : cp $FND_TOP/resource/pasta_pdf.cfg $FND_TOP/resource/pasta_pdf_land.cfg
                   cp $FND_TOP/resource/pasta_pdf.cfg $FND_TOP/resource/pasta_pdf_port.cfg

·         Edit pasta_pdf_land.cfg

Comment all the lines except the one you are using for converting PDF to
POSTSCRIPT
            % Preprocess for PDF output
             % This is an example for PDF output to print.
            ; Xpdf
            ; preprocess=pdftops {infile} {outfile}
            ; Ghost Script
            ; preprocess=pdf2ps {infile} {outfile}
            ; Acrobat
            preprocess=acroread -toPostScript -shrink -landscape -pairs {infile} {outfile}

·         Edit pasta_pdf_port.cfg

Comment all the lines except the one you are using for converting PDF to
POSTSCRIPT
        % Preprocess for PDF output
        % This is an example for PDF output to print.
        ; Xpdf
        ; preprocess=pdftops {infile} {outfile}
        ; Ghost Script
        ; preprocess=pdf2ps {infile} {outfile}
        ; Acrobat
         preprocess=acroread -toPostScript -shrink -pairs {infile} {outfile}


Use –shrink if needed to shrink the layout to the paper


6.    Bounce Concurrent Manager





Reference :
How To Print XML Publisher PDF Reports Via The Concurrent Manager [ID 338990.1]
11i : Pasta Pasta Printing Setup Test [ID 264118.1])
How To Set The PASTA Debug Option [ID 267026.1]

Notes:
In order to check program from Unix Command line, execute below,

FNDPSTAX -pn$<PRINTER NAME> -f$<PDF File Name with full path> -c1 -Fpasta_pdf_land.cfg

Eg :
FNDPSTAX -pnPR3505CM1BR08 -f$APPLCSF/out/TEST_16338527_1.PDF -c1 -Fpasta_pdf.cfg

2 comments:

  1. Are the {infile} and {outfile} in the pasta_pdf_land.cfg need to replaced with some values or they should be as it is?

    ReplyDelete
  2. Hi, Will PASTA will on Oracle JD Edwards Environment?

    ReplyDelete