you know I probably not, But I thought each time through the pdf objects where distroyed??
I figured out where its failing, just not sure what I am doing wrong, you are probably on to something with the $pdf object, but not sure how to do it here is code where the problem lies:
my $ChartImageName = "$tmpPath/VeTCOChart.png";
setImage($ChartImageName, 110/mm, 165/mm, 95.25/mm, 79.375/mm);
my $photo_file=$pdf->image_png($_ ,-lossless => 1);
my $photo = $page->gfx;
## add photo to pdf include cordinates and size - image($photo, x,
+ y, width, hieght);
$photo->image($photo_file, $_, $_, $_, $_);
setimage call is where its failing!
I open a pdf template so this is how I declare my pdf object.
my $pdf = PDF::API2->open($Template) or print "PDF Object is failing o
my $page = $pdf->openpage(1);
thanks for the help
Are you posting in the right place? Check out Where do I post X? to know for sure.
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
Want more info? How to link
or How to display code and escape characters
are good places to start.