Shipment::Label
version 2.03
use Shipment::Label; my $label = Shipment::Label->new( data => $file_contents, file_name => 'label.pdf', ); $label->save('/tmp/') ## writes label to disk at /tmp/label.pdf
Shipment::Label - a shipping label/document
This class defines a shipping label and provides a method for saving to disk. It can also be used to store other shipping documents.
The tracking id of the label
type: String
The actual file content (must not be base64 encoded which is usually how it comes through the intertubes)
The content type of the file (application/pdf, text/epl, image/gif, etc). Currently not used for anything in particular.
The file name to be used when saving the file to disk
returns BASE64 encoded file content
$label->save('/tmp/');
Saves the file to disk. Will save to the cwd if nothing is specified
Andrew Baerg @ <andrew at pullingshots dot ca>
http://pullingshots.ca/
Issues can be submitted at https://github.com/pullingshots/Shipment/issues
Copyright (C) 2016 Andrew J Baerg, All Rights Reserved
Absolutely, positively NO WARRANTY, neither express or implied, is offered with this software. You use this software at your own risk. In case of loss, no person or entity owes you anything whatsoever. You have been warned.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Andrew Baerg <baergaj@cpan.org>
This software is copyright (c) 2016 by Andrew Baerg.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Shipment, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Shipment
CPAN shell
perl -MCPAN -e shell install Shipment
For more information on module installation, please visit the detailed CPAN module installation guide.