in reply to Re^3: Perl 8.10 PDF::API2::Simple problem (module versions)
in thread Perl PDF::API2::Simple problem

Hi again!

Thank you very much for your time! I checked the versions as you suggested, and they are the same.

But I was wrong. The white line appears on both versions of perl. It seems stupid, but the line appears when I insert only one image on the page, like this:

my $pdf = PDF::API2::Simple->new( margin_left => 15, margin_top => 15, margin_right => 15, margin_bottom => 45, line_height => 12, ); $pdf->add_page(); #insert image $pdf->image ( '/path/to/image/one/image1.jpg', width => 612, height => 50, x => 0, y => $pdf->y - 50, ); $pdf->saveas('/path/to/pdf_file/filename.pdf');

If I add another image (only PNG) on the same page, everything looks ok. Any ideas?

Thanks again!

Replies are listed 'Best First'.
Re^5: Perl 8.10 PDF::API2::Simple problem (module versions)
by almut (Canon) on Sep 10, 2009 at 14:15 UTC

    I tried with several images (various sizes, all jpg — one at a time of course), but I don't seem to be able to reproduce the issue with the white line — so I'm afraid I can't help much here...

    I used the current versions of the modules (PDF-API2-0.73, PDF-API2-Simple-1.1.4u) together with Perl 5.8.8 and 5.10.0, and checked the output with acroread and xpdf.

      Thank you, almut.

      I just converted my image to PNG and the line doesn't appear anymore. It's strange, but I couldn't find any other solutions.

      Thanks to all for your replies.