danisowa commented 8 hours ago
Hello, the following code "destroyes" my PDF documents.
I am getting erros when trying to print the created PDF and when trying to save the created PDF (for fast web view)
i have drilled down the problem to the lines
$annotation = $page->annotation();
$annotation->url("http://www.google.de", %option);
$position_y = 20;
for $cu_page_number (1 .. $pdf->pages())
{
$page = $pdf->openpage($cu_page_number);
%option=(
-border => [0,0,0],
-rect=>[50,
$position_y + 40,
10,
$position_y,
],
);
$annotation = $page->annotation();
$annotation->url("http://www.google.de", %option);
}
$pdf->saveas('/tmp/test.pdf');