Click here to get back home

PDF::API2 stream problems

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
PDF::API2 stream problems Eric Olson 11-03-2004
Get Chitika Premium
Posted by Eric Olson on November 3, 2004, 6:53 am
Please log in for more thread options
Hello all,

I am relatively new to using PDF::API2 and am having a difficult
time getting the results needed so I turn to the gurus for help.

Situation is: I have a pdf document created from a word document
using Adobe 6.0. I am using keywords in the document to be replaced
by figures gotten from perl scripts that have run. End result is some
of the key words change, others do not. When they do change, the
result is all characters of the new string are on top of each other.
When I Data::Dumped the stream, it looks as though there are Tj tags
in the middle of the keywords. Is this a problem when doing a line
like:

$stream =~ s/foo/$bar/;

A question I came up with was, does this happen when using Excel
to create the PDF? Is there a difference to the end document?

Also, and this is the big one, I need to be able to put images
into the stream and haven't been able to utilize the
$pdf->image_png('file') properly. Is there a way to dump a png image
into the stream? Or would it be safer to use an art box?

Any help would be greatly appreciated. The deadline is looming VERY
close.

Thank you,
Eric Olson


Similar ThreadsPosted
PDF::API2 January 10, 2006, 7:13 pm
PDF::API2 and Barcode October 14, 2004, 9:38 am
Perl module PDF::API2 July 11, 2004, 5:35 am
PDF::API2 - Extracting text and position from PDF file April 17, 2008, 9:20 am
File::Stream confusion November 14, 2005, 4:17 pm
Stream filtering Module/Language needed September 24, 2007, 5:34 pm
Problems using GD.pm January 8, 2005, 8:05 pm
Problems when using Net::MSN 1.022 May 4, 2005, 1:20 pm
LWP problems July 11, 2005, 3:50 pm
PPM Problems on Win.XP November 5, 2007, 4:26 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap