Sponsored Content
Full Discussion: AIX converting PDF to PS
Operating Systems AIX AIX converting PDF to PS Post 302266805 by vinayakshukre on Thursday 11th of December 2008 05:14:16 AM
Old 12-11-2008
I could not configure System V print subsystem easily. So gave up that option. Found following command somewhat useful but not always.

Code:
qprt -P LexT630_PS -Z1 p.pdf

This command prints my portrait pdf a landscape.
Issue is when I generate landscape pdf ( so that I can have more data horizontally ) and try printing it as landscape...it comes as portrait.
Even if I remove -Z1 option from the above command ( which is for rotate )
then also I get it as landscape.

One more strange thing that I found with this command that its man page says that -z ( lowercase ) is the option for rotate and -Z (uppercase ) is for FormFeed, when specified -z it says that -z is not valid option. It works with -Z as treating it as option for rotate. Also man page says 4 different values for rotate....only 1 works as its value.

Please help.
I want to print landscape generated from my java app ( using iText ) as pure landscape.

Thanks.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

converting PDF to text, rtf doc format

Hi all Is there any program which can convert PDF to word processor file ? If the PDF has smart quotes, bullet icons, copyright and trademark symbols, etc. what happens to them intext format? So ideally would like to conver into rtf or doc. Thanks SS (1 Reply)
Discussion started by: saurya_s
1 Replies

2. Shell Programming and Scripting

Converting ps file to pdf

I have a number of post script files (*.ps) which I need to convert into Pdf. I am using the ps2pdf command for this, but the trouble is that this commands takes only one input at a time. So the command ps2pdf *.ps doesnt work. how can I make a script which will take each .ps file from... (3 Replies)
Discussion started by: jasjot31
3 Replies

3. UNIX for Dummies Questions & Answers

Converting multiple latex files to pdf

Hi everybody! This is my first post. I am a student and I'm familiarizing myself with linux. I have lots of directories each containing file called "zadaci.latex". I want to convert them to pdf's and rename them to <directory_name>.pdf. I read alot on this forum and came up with this script:... (2 Replies)
Discussion started by: Element9
2 Replies

4. UNIX for Dummies Questions & Answers

Converting LATEX PDF to WORD document

Hi there, is it possible to convert pdf files to Word with some free :p software or with some trick??? Now I'm working with LATEX and I can get pdf format but I would like to get .rtf or .doc files too:rolleyes:. Lately I found something like that, but it wasn't free. Thanks for any... (1 Reply)
Discussion started by: Giordano Bruno
1 Replies

5. Shell Programming and Scripting

Converting html to pdf perl

Hi All, I have a requirement of converting an html form into pdf using perl. The html form contains images, tables and css implementation. I tried using various perl modules but failed to achive the target. I succeeded in generating a pdf from the html file using... (2 Replies)
Discussion started by: DILEEP410
2 Replies

6. Shell Programming and Scripting

Script for converting a pdf to book format

Hello, excuse my English... I'm trying to do a nautilus-script to transform a normal A4 pdf to another pdf with book format, ready to be printed (double sided). I mean, the script put pages in order and also put 2 pages per horizontal A4 page (p.e.: a pdf with 8 pages would look like: 8-1, 2-7,... (2 Replies)
Discussion started by: dokan
2 Replies

7. Shell Programming and Scripting

Script for converting a pdf to book format: an update

With reference to , the script posted by dokan fails via a Bash syntax error because my version of pdftk 1.41 has multiple lines matching to "Num", which are stored in the TOTAL variable. If we modify the first non-ignored line of the script from # Original TOTAL=$( pdftk "$1" dump_data output |... (1 Reply)
Discussion started by: aldebrn
1 Replies

8. UNIX for Dummies Questions & Answers

Ghostscript error while converting PDF to Postscript

Hi, I have been using Ghostscript to convert PDF to Postscript (PS) file. GS version : 8.15.2. GS command used is : gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pswrite -sOutputFile=output1.ps input1.pdf File format conversion to PS is success in majority of the cases but some PDF files are... (0 Replies)
Discussion started by: geeveejey
0 Replies

9. UNIX for Dummies Questions & Answers

Converting pdf to jpg in multiple directories?

Hi! On my Ubuntu I have thousands of files in a couple hundred directories. I'm trying to convert the pdf's to jpg's. I used this command in terminal: for fname in *.pdf; do convert $fname ${fname%.pdf}.jpg; doneIt works great but the problem is I have to run this in terminal for each... (2 Replies)
Discussion started by: martinsmith
2 Replies

10. Shell Programming and Scripting

Converting secured pdf files to pdf using acroread

Does anybody have idea of Converting secured pdf files to pdf using acroread ? ---------- Post updated at 04:49 PM ---------- Previous update was at 04:44 PM ---------- This file is not password protected. (4 Replies)
Discussion started by: Soham
4 Replies
GROLBP(1)						      General Commands Manual							 GROLBP(1)

NAME
grolbp - groff driver for Canon CAPSL printers (LBP-4 and LBP-8 series laser printers). SYNOPSIS
grolpb [ -l ] [ --landscape ] [ -v ] [ --version ] [ -cn ] [ --copies=numcopies ] [ -ppaper_size ] [ --papersize=paper_size ] [ -oorientation ] [ --orientation=orientation ] [ -wwidth ] [ --linewidth=width ] [ -Fdir ] [ --fontdir=dir ] [ -h ] [ --help ] [ files... ] DESCRIPTION
grolbp is a driver for groff that produces output in CAPSL and VDM format suitable for Canon LBP-4 and LBP-8 printers. For compatibility with grolj4 there is an additional drawing command available: D'R dh dv' Draw a rule (i.e. a solid black rectangle), with one corner at the current position, and the diagonally opposite corner at the cur- rent position +(dh,dv). OPTIONS
Note that there can be whitespace between a one-letter option and its argument; on the other hand, there must be whitespace and/or an equal sign (`=') between a long-name option and its argument. -cnumcopies --copies=numcopies Print numcopies copies of each page. -l --landscape Print the document with a landscape orientation. -ppaper_size --papersize=paper_size Set the paper size to paper_size, which must be a valid paper size description as indicated in the section PAPER SIZES. -oorientation --orientation=orientation Print the document with orientation orientation, which must be `portrait' or `landscape'. -wwidth --linewidth=width Set the default line thickness to width thousandths of an em. If this option isn't specified, the line thickness defaults to 0.04 em. -v --version Print the version number. -Fdir --fontdir=dir Prepend directory dir/devname to the search path for font and device description files; name is the name of the device, usually lbp. -h --help Print a short help text. TYPEFACES
The driver supports the Dutch, Swiss and Swiss-Narrow scalable typefaces, each one in the Regular, Bold, Italic and Bold-Italic styles. Additionally, the Courier and Elite monospaced typefaces at the sizes 8 and 12 points (for Courier) resp. 8 and 10 points (for Elite) are supported, each one in the Regular, Bold and Italic styles. The following chart summarizes the font names you can use to access these fonts: +----------------+-----------+--------+----------+--------------+ | Typeface | Regular | Bold | Italic | Bold-Italic | +----------------+-----------+--------+----------+--------------+ | Dutch | TR | TB | TI | TBI | +----------------+-----------+--------+----------+--------------+ | Swiss | HR | HB | HI | HBI | +----------------+-----------+--------+----------+--------------+ | Swiss Narrow | HNR | HNB | HNI | HNBI | +----------------+-----------+--------+----------+--------------+ | Courier | CR | CB | CI | | +----------------+-----------+--------+----------+--------------+ | Elite | ER | EB | EI | | +----------------+-----------+--------+----------+--------------+ PAPER SIZES
The paper size can be set in the DESC file or with command line options to grolbp. If the paper size is specified both ways, the command line options take precedence over the contents of the DESC file (this applies to the page orientation too). See groff_font(1) how to set the paper dimensions in the DESC file. To set the paper size in the command line, add -p paper-size or --papersize=paper-size to the other grolbp options, where paper-size is in the same format as in the DESC file. If no paper size is specified in the DESC file or the command line, a default size of A4 is used. PAGE ORIENTATION
As with the page size, the orientation of the printed page (portrait or landscape) can be set in the DESC file or with command line op- tions. It is also case insensitive. To set the orientation in the DESC file, insert a line with the following content: orientation [portrait|landscape] Only the first valid orientation command in the DESC file is used. To set the page orientation with command line options you can use the -o or --orientation option with the same parameters (portrait or landscape) as in the DESC file. Or you can use the -l option to force the pages to be printed in landscape. FONT FILE FORMAT
In addition to the usual commands described in groff_font(5), grolbp provides the command lbpname which sets the font name sent to the printer when requesting this font. The syntax of this command is: lbpname printer_font_name o For bitmapped fonts, printer_font_name has the form N<base_fontname><font_style> base_fontname is the font name as it appears in the printers font listings without the first letter, up to (but not including) the font size. font_style can be one of the letters R, I, or B, indicating the font styles Roman, Italic and Bold respectively. For instance, if the printer's font listing A shows font `Nelite12I.ISO_USA', the corresponding entry in the font description file is lbpname NeliteI Note that you may need to modify grolbp to add support for new bitmapped fonts, since the available font names and font sizes of bitmapped fonts (as documented above) are hard-coded into the program. o For scalable fonts, printer_font_name is identical to the font name as it appears in the printer's font listing A. For instance, to select the `Swiss' font in bold style, which appears in the printer's font listing A as `Swiss-Bold', the required lbpname command line is lbpname Swiss-Bold The argument of lbpname is case sensitive. FILES
/usr/share/groff_font/devlbp/DESC Device description file. /usr/share/groff_font/devlbp/F Font description file for font F. /usr/share/tmac/lbp.tmac Macros for use with grolbp. SEE ALSO
groff(1), troff(1), groff_out(5), groff_font(5), groff_char(7) Groff Version 1.19.2 23 March 2013 GROLBP(1)
All times are GMT -4. The time now is 12:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy