CAM-PDF
view release on metacpan or search on metacpan
lib/CAM/PDF.pm view on Meta::CPAN
$fontsize = $opts->{max_autoscale_fontsize};
}
if (exists $opts->{min_autoscale_fontsize} && $fontsize < $opts->{min_autoscale_fontsize}) {
$fontsize = $opts->{min_autoscale_fontsize};
}
$da =~ s/ \/$fontname\s+0\s+Tf\b /\/$fontname $fontsize Tf/gxms;
}
if ($fontsize)
{
# This formula is TOTALLY empirical. It's probably wrong.
$ty = $border + 2 + (9 - $fontsize) * 0.4;
}
# escape characters
$text = $self->writeString($text);
if ($flags{Multiline})
{
# TODO: wrap the field with wrapString()??
( run in 1.177 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )