Vector::QRCode::IntoPDF - A module to append QRCode as vector data into PDF
use Vector::QRCode::IntoPDF; my $target = Vector::QRCode::IntoPDF->new(pdf_file => '/path/to/source.pdf'); $target->imprint( page => 2, x => 200, y => 300, text => 'Hello, world!', size => 6, unit => 'cm', ); $target->save('/path/to/new.pdf');
Vector::QRCode::IntoPDF makes to imprint QRCode as vector-data into PDF file.
Required. A path to source pdf.
Optional. A directory to use like temporary storage. Default is File::Temp::tempdir(CLEANUP => 1);
Return PDF::API2 object for source pdf.
Imprint a qrcode. You may use options for Vector::QRCode::EPS::generate(), and following options.
Page number of target in pdf
Horizontal position of left-bottom of qrcode for imprinting (Left edge is criteria)
Vertical position of left-bottom of QRCode for imprinting (Bottom edge is criteria)
Shortcut for $self->pdf->saveas(...);
Overwrite source pdf when arguments empty.
Copyright (C) ytnobody.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
ytnobody <ytnobody@gmail.com>
To install Vector::QRCode::IntoPDF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Vector::QRCode::IntoPDF
CPAN shell
perl -MCPAN -e shell install Vector::QRCode::IntoPDF
For more information on module installation, please visit the detailed CPAN module installation guide.