NAME
PostScript::Barcode - barcode writer
VERSION
This document describes PostScript::Barcode version 0.002.
SYNOPSIS
# This is abstract, do not use directly.
DESCRIPTION
By itself alone, this role does nothing useful. Use one of the classes residing under this namespace.
INTERFACE
Attributes
data
Type Str, required attribute, data to be encoded into a barcode.
pack_data
Type Bool, whether data is encoded into PostScript hex notation. Default is true.
move_to
Type ArrayRef[Num], position where the barcode is placed initially. Default is [0, 0], which is the lower left hand of a document.
translate
Type ArrayRef[Num], vector by which the barcode position is shifted.
scale
Type ArrayRef[Num], vector by which the barcode is resized.
bounding_box
Type ArrayRef[Num], coordinates of the EPS document bounding box.
Methods
post_script_source_code
Returns EPS source code of the barcode as string.
render
$barcode->render(-sDEVICE => 'pnggray', -sOutputFile => 'out.png',);
Takes a hash of initialisation options, see "init_with_args" in GSAPI and http://ghostscript.com/doc/current/Use.htm#Invoking. Default is qw(-dBATCH -dEPSCrop -dNOPAUSE -dQUIET -dSAFER -gxxy -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -sDEVICE=pngalpha -sOutputFile=-), meaning the barcode is rendered as transparent PNG with anti-aliasing to STDOUT, with the image size automatically taken from the "bounding_box".
EXPORTS
Nothing.
DIAGNOSTICS
None.
CONFIGURATION AND ENVIRONMENT
PostScript::Barcode requires no configuration files or environment variables.
DEPENDENCIES
Configure time
Perl 5.10, Module::Build
Run time
core modules
Perl 5.10
CPAN modules
Alien::BWIPP, GSAPI, Moose, Moose::Role, Moose::Util::TypeConstraints
INCOMPATIBILITIES
None reported.
BUGS AND LIMITATIONS
No bugs have been reported.
Please report any bugs or feature requests to http://github.com/daxim/PostScript-Barcode/issues, or send an email to the maintainer.
TO DO
Suggest more future plans by filing a bug.
AUTHOR
Distribution maintainer
Lars Dɪᴇᴄᴋᴏᴡ <daxim@cpan.org>
Contributors
See file AUTHORS.
LICENCE AND COPYRIGHT
Copyright © 2009 Lars Dɪᴇᴄᴋᴏᴡ <daxim@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0.
Disclaimer of warranty
This library is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
ACKNOWLEDGEMENTS
I wish to thank rillian on Freenode. Without your help, I would not have got this project off the ground.