-
-
03 Dec 2021 00:23:45 UTC
- Distribution: Vector-QRCode-IntoPDF
- Module version: 0.05
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (2)
- Testers (92 / 0 / 0)
- Kwalitee
Bus factor: 1- % Coverage
- License: perl_5
- Perl: v5.8.5
- Activity
24 month- Tools
- Download (19.74KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
++ed by:1 non-PAUSE userNAME
Vector::QRCode::IntoPDF - A module to append QRCode as vector data into PDF
SYNOPSIS
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');
DESCRIPTION
Vector::QRCode::IntoPDF makes to imprint QRCode as vector-data into PDF file.
OPTIONS FOR CONSTRUCTOR / ACCESSOR METHODS
- pdf_file
-
Required. A path to source pdf.
- workdir
-
Optional. A directory to use like temporary storage. Default is File::Temp::tempdir(CLEANUP => 1);
METHODS
pdf
Return PDF::API2 object for source pdf.
imprint
Imprint a qrcode. You may use options for Vector::QRCode::EPS::generate(), and following options.
- page
-
Page number of target in pdf
- x
-
Horizontal position of left-bottom of qrcode for imprinting (Left edge is criteria)
- y
-
Vertical position of left-bottom of QRCode for imprinting (Bottom edge is criteria)
save
Shortcut for $self->pdf->saveas(...);
Overwrite source pdf when arguments empty.
LICENSE
Copyright (C) ytnobody.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
ytnobody <ytnobody@gmail.com>
Module Install Instructions
To install Vector::QRCode::IntoPDF, copy and paste the appropriate command in to your terminal.
cpanm Vector::QRCode::IntoPDF
perl -MCPAN -e shell install Vector::QRCode::IntoPDF
For more information on module installation, please visit the detailed CPAN module installation guide.