[bug-pcl] bug-pcl@ghostscript.com

Caio Boiteux caio at arras.com.br
Thu Sep 16 12:55:18 PDT 2004


Hi Paul
if you can, send the program for me too
i've been looking for a program that does this kind of thing but did'nt have 
any success in my search

thanks a lot
	Caio Boiteux



Hi Paul 
You mentioned in one of the your replies for the ghostscript.com about the
Landscape PDF files.
Can you please send me the code for making landscape pdf docs in perl.

Thanks
 
 Rahamat Kahakashan
 Data Management Developer
 ACOSOG (American College Of Surgeons Oncology Group)
 Duke University Medical Center
 Durham NC 27710 
 Phone: 919 668 8797 


Hi List.
 I missed the discussion of a couple weeks ago re: Landscape PDF files.
Markus, I produce identical output to yours, which is to say: The PCL uses
the <ESC>&l1O command to rotate the entire page to landscape. When it is
printed, the page is landscape. Then, if you take that same PCL file and
feed it to pcl6, the page, while in landscape orientation, is brought up by
the PDF viewer program (e.g. Acrobat) as portrait and requires the person
viewing the PDF to rotate the page manually. This bothered me as well, but
it's not really a rendering problem with pcl6 - rather a presentation
problem with the viewer. Fortunately, there *is* meta-information stored in
the PDF which can specify a "preferred" viewing format/angle and such. For
example, you can set the defaults in the PDF to show/hide the Bookmarks
panel, set it to full screen view mode, 1 page wide mode, etc. You can also
set the PDF properties to request a rotated view so that users see the page
the way I think you want them to. I wrote a perl based post-processor to
tweak that setting (as well as set some other meta information such as
author name, date, keywords, etc) and it works pretty well. If you are
familiar with perl, my program uses the PDF::API2 module which is not part
of the standard perl distribution but is available on CPAN (www.cpan.org) If
anyone on the list is interested, I'd be happy to send them a copy of the
program. It's short, less than 100 lines or so.
 Regards, Paul 


More information about the bug-pcl mailing list