A
Aqua
Group,
I am using PDF::API2 perl module to create and modify few PDF files. I
am adding few strings to the PDF. But when I run through PitStop tool
I am getting font Helvetica not embedded.
How do I embed standard core font like Helvetica in a PDF?
Regards
Dominic
================ Sample ==============
#!/usr/bin/perl
use PDF::API2;
$pdf=PDF::API2->new;
$fn = "Helvetica";
$font=$pdf->corefont($fn,1);
$page = $pdf->page;
$page->mediabox(595,842);
$txt=$page->text;
$txt->translate(100,700);
$txt->font($font, 18);
$txt->lead(18);
$txt->text('Hello World !');
$pdf->saveas("$0.pdf");
$pdf->end();
exit;
__END__
I am using PDF::API2 perl module to create and modify few PDF files. I
am adding few strings to the PDF. But when I run through PitStop tool
I am getting font Helvetica not embedded.
How do I embed standard core font like Helvetica in a PDF?
Regards
Dominic
================ Sample ==============
#!/usr/bin/perl
use PDF::API2;
$pdf=PDF::API2->new;
$fn = "Helvetica";
$font=$pdf->corefont($fn,1);
$page = $pdf->page;
$page->mediabox(595,842);
$txt=$page->text;
$txt->translate(100,700);
$txt->font($font, 18);
$txt->lead(18);
$txt->text('Hello World !');
$pdf->saveas("$0.pdf");
$pdf->end();
exit;
__END__