Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Perl: the Markov chain saw
 
PerlMonks  

Trying to center PDF with PDF::Resize

by Booger (Pilgrim)
on Jan 27, 2006 at 20:50 UTC ( #526081=perlquestion: print w/ replies, xml ) Need Help??
Booger has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks:

I am attempting to merge two existing PDFs together with prDoc by writing:

prFile('my_output_pdf.pdf'); prDoc( { file => 'file1.pdf' } ); prDoc( { file => 'file2.pdf' } ); prEnd;

This does as one would expect and results in the two PDFs being merged and placed in the file my_output_pdf.pdf

My problem, however, is in convincing the second PDF that is merged using prDoc to center itself on the page.

Is there any way to go about centering an included PDF on the resulting page? I've tried using prFile with the CenterWindow and FitWindow options and neither of these seem to do anything.

Any suggestions or comments would be greatly appreciated.

Thank you,

Matt

Comment on Trying to center PDF with PDF::Resize
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://526081]
Approved by ikegami
Front-paged by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2014-04-16 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (425 votes), past polls