Search This Blog

Tuesday, December 13, 2011

Printer is printing in portrait instead of landspace

Here I assumed all prints are coming in portrait instead of landspace and found below workaround with oracle

"Solution

1. Setup for BI Publisher printing as per Note 338990.1 "How To Print XML Publisher PDF Reports Via The Concurrent Manager", however. Install and configure the pasta_pdf.cfg file with the acroread tool instead of pdf2ps or pdftops. If pdftops or pdf2ps is the prefered tool, please check with the vendor an/or with the product's documentation for the equivalent options used in the following example.

2. Copy the pasta_pdf.cfg file and rename it pasta_pdf_land.cfg. Edit the preprocessing section as follows.

% 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 -pairs -shrink -landscape {infile} {outfile}

3. Copy the "PDF Publisher" print style and rename it "PDF Publisher Landscape" In the Orientation field of the new style type "Landscape" and populate the SRW field with the "PSTLL" landscape print style.

4. Copy the "PASTA_PDF" printer driver and rename it "PASTA_PDF_LAND". Edit the new printer driver, populate the SRW field with the "PSTLL" landscape print style and modify the print argument as follows.

-pn$PROFILES$.PRINTER -f$PROFILES$.FILENAME -c$PROFILES$.CONC_COPIES -Fpasta_pdf_land.cfg

5. Associate the new "PDF Publisher Landscape" style and "PASTA_PDF_LAND" driver to the "--PASTA Universal Printer Type".

6. Bounce the concurrent manager.

NOTE:   Printer type, print style and printer driver information is cached in memory; in order for any printer setup form changes to take effect, you will need to bounce (restart) the concurrent managers on the concurrent processing server or restart the "Request Processing Managers" using OAM. 

Ref Doc:Custom Landscape Reports In PDF Format Print In Portrait Orientation [ID 421358.1]

No comments:

Post a Comment

Transportable tablespace refresh

  1.check tablespace for the user which need to refresh -------------------------------------------------------------------  SQL> select ...