Hello, On a page we use $gfx->rect then fillcolor and fillstroke to draw a color filled square. After that we use $txt->text("some text") type calls to add...
... The text object uses the same fill color as the graphics object. Reset the text color: $text->fillcolor('#ffffff'); # Set text to white Don't forget, in...
Also (at least if I remember correctly) $txt=$pdf->text(); $gfx=$pdf->gfx(); then text is written before gfx (is under) $gfx=$pdf->gfx(); $txt=$pdf->text(); ...
Mark Fowle
mfowle@...
Dec 1, 2004 6:13 pm
2398
... I don't think so but I haven't check that part of the code. These statements create the Perl objects but do not put anything in the PDF until they are...
... You were correct. The order in which the Perl objects are created determines the order they appear in the page's content. You also have to change the fill...
Can someone tell me how to add underline text? Or, even harder, in a paragraph of text underline one sentence of that paragraph. Ideally, in the calls that add...
Let's say you have written text and paragraphs on a page. How do you get the current y position to pass to a graphics routine? so that you can draw a...
... I haven't found an easy way to do this. I know of no font that has underlining built-in. So when I need to underline I keep track of the X position of the...
Hello, We've been using PDF::API2 for 3 years now and recently upgraded our systems and software. Since the upgrade we've been seeing an error that happens...
Kurt Hansen
khansen@...
Dec 6, 2004 3:07 pm
2406
... routine? ... example. ... I've been having troubles using textpos(). I'm trying to write some text, some more text, an annotation aligned via textpos, then...
I had problems with it too which is why I sent my post... I would write some text paragraphs and text labels and draw a gfx line add more text, etc. Then when...
How do I tell what fonts are installed on our system for use by PDF::API2? Or is there a list somewhere of the basic ones. I tried Helvetica-Italic and I get...
Hello, I have a script that creates a 3 page document... I know how to loop thru the pages based on the page count... but how do I get the actual first page......
Hi, From perldoc PDF::API2 $pageobj = $pdf->openpage $index Returns the pageobject of page $index. Note: on $index -1,0 ... returns the last page 1 ... returns...
Thanks Shawn. I checked that and there is no Helvetica italic... Does anyone know why or am I missing it? I'm substituting Verdana italic for now, but am...
Try again .. this time look for Helvetica Oblique. Sans-serif fonts use 'oblique' rather than 'italic' as their name for the font-on-a-slant. <woffle> FYI, the...
Shawn and Alfred, The perldoc is possibly wrong??? $pageobj = $pdf->openpage $index ===> throws perl syntax error Note I see the same syntax error on CPAN...
syntax error at /cgi-bin/distributions.cgi line 542, near "->openpage $pagectr" Execution of /cgi-bin/distributions.cgi aborted due to compilation errors. ...
Hello, I'm resending this message because I'm not sure it every made it to the list. At least, I never saw it though I have seen others since. Maybe it got...
Kurt Hansen
khansen@...
Dec 10, 2004 3:38 pm
2418
Hi, What PDF::API2 package did you download? The current stable version is PDF-API2-0.3r77, the latest version I have is PDF-API2-0.40_77 (there may be...
Hi, If I run that command I get: torrid.webex.net$ perl -MPDF::API2 -e 'print "$PDF::API2::VERSION\n"' Unrecognized switch: -MPDF::API2. I'm pretty sure we...
Kurt, Your prior post to this did appear on the list cuz I recall reading it... I just think nobody responded... Are you trying to center the text? If so, try...
... Switch is a term that is used by MS DOS. Most UNIX/LINUX systems call these things options. Try: perl -e 'use PDF::API2;print"$PDF::API2::VERSION\n"' or...
... I would like to add to Tim's post that there is a bug in the way PDF::API2 tracks the position of text in the PDF. The patch is in the works but until it...