Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: setting PDF background color

by Khen1950fx (Canon)
on Mar 30, 2013 at 11:56 UTC ( #1026269=note: print w/ replies, xml ) Need Help??

in reply to setting PDF background color

Run ths first:

#!/usr/bin/perl use strict; use warnings; use PDF::API2; my $file = 'SavedAttachment.pdf'; my $pdf = PDF::API2->new( -file => $file ); $pdf->mediabox( 595, 842 ); my $page = $pdf->page; my $fnt = $pdf->corefont( 'Arial', -encode => 'latin1' ); my $txt = $page->text; $txt->textstart; $txt->font( $fnt, 8 ); $txt->translate( 25, 630 ); $txt->fillcolor('black'); $txt->text("FullCustName"); $pdf->saveas; exit;
Then try from the command line: -o SavedAttachment.pdf 1 fcd SavedAttachment.pdf
I used fcd because I wanted something neutral and down-to-earth.

Comment on Re: setting PDF background color
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026269]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2015-11-29 07:15 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (748 votes), past polls