Hi Monks!
I am trying to add a link to the first element of:
\@{arrrayOref}
And at this part of my code it's where I generate a PDF file, I can not find any resources anywhere. I found the method for it, you can see it commented out in my code here. My hope is that some one had worked on something like that before and could show me how to use this method properly. Here is the code:
$pdftable->table(
$pdf,
$page->mediabox(792,612),
\@{$array_ref},
x => $left_edge_of_table,
w => 495, # width of table
start_y => 590, # top of page
next_y => 590, # top of all other pages
start_h => 500, # rows per page
next_h => 500, # rows per page on all other pages
# some optional params
padding => 5,
padding_right => 10,
background_color_odd => "gray",
background_color_even => "lightblue", #cell background color for
+even rows
column_props => $col_props,
#cell_props => $cell_props,
#header_props => $hdr_props,
new_page_func => sub {
#my $url = qq{ http://www.somewhere.com};
#my $annot = $pdf->annotation();
#$annot->url($url,-rect =>[100,50,310,30],-border =>[1
+,1,1]);
my $next_page = $pdf->page;
$next_page->mediabox(792,612);
#$next_page = $pdf->annotation();
#$next_page->url($url,-rect =>[100,50,310,30],-border
+ =>[1,1,1]);
return $next_page;
},
# section HEADER
);
$pdf->saveas();
Thanks very much!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.