NAME
App::Mxpress::Client - Client for App::Mxpress::PDF::API
VERSION
Version 0.21
SYNOPSIS
use App::Mxpress::Client;
my $client = App::Mxpress::Client->new;
$client->login(
username => 'admin',
password => 'password'
);
$client->generate(
save => './path/to/lib',
name => 'demo',
size => 'A4',
params => {
'placeholder' => 'Add some more text',
'subtle' => 'A subtitle',
'title' => 'A Title'
}
);
Methods
login
Authenticate to the api.
$client->login(
username => 'admin',
password => 'password'
);
templates
Return all templates.
my $templates = $client->templates;
generate
Generate a pdf for the given template and params.
my $pdfstring = $client->generate(
save => './path/to/lib',
name => 'demo',
size => 'A4',
params => {
'placeholder' => 'Add some more text',
'subtle' => 'A subtitle',
'title' => 'A Title'
}
);
pod
Generate a pdf for the given module, distribution or raw text POD string.
my $pod = $client->pod(
type => 'module',
module => 'Moo',
save => './path/to/lib'
);
AUTHOR
lnation, <email at lnation.org>
BUGS
Please report any bugs or feature requests to bug-metacpan-client-pod-pdf at rt.cpan.org
, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=App-Mxpress-PDF. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc App::Mxpress::PDF
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
This software is Copyright (c) 2020 by lnation.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)