Business-Colissimo
view release on metacpan or search on metacpan
The scale of the image can be changed for each barcode individually:
$colissimo->barcode_image('8L20524752032', scale => 2);
The default scale is set to 1, because that produces images with the
right number of pixels to include them into PDF with PDF::API2, which
uses 72dpi resolution for images unless you specify width and height
explicitly (see PDF::API2::Content).
The formula for calculating width in mm for a 72dpi resolution is as
follows:
(1px * 25.4) / 72dpi
This fits into Colissimo's requirement for the basic module (narrowest
element of the bar code) of 0.33 to 0.375 mm.
logo
Returns logo file name for selected service.
lib/Business/Colissimo.pm view on Meta::CPAN
barcode individually:
$colissimo->barcode_image('8L20524752032', scale => 2);
The default scale is set to 1, because that produces
images with the right number of pixels to include them
into PDF with L<PDF::API2>, which uses 72dpi resolution
for images unless you specify width and height explicitly
(see L<PDF::API2::Content>).
The formula for calculating width in mm for a 72dpi
resolution is as follows:
(1px * 25.4) / 72dpi
This fits into Colissimo's requirement for the basic
module (narrowest element of the bar code) of
0.33 to 0.375 mm.
=cut
( run in 0.454 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )