Package DE_EPAGES::EPagesJ::API::PDF::PdfClient
Client for PDF operations.
Base |
DE_EPAGES::EPagesJ::API::Object::RestClient |
Functions
create
Factory method for a PDFClient object. Initializes based on the current configuration. Uses a different HTTP timeout, that can be configured in epages.conf [DE_EPAGES::EPagesJ] HTTPTimeOutPdf = 180 ; 180 sec is the default timeout for PDF requests.
Syntax |
DE_EPAGES::EPagesJ::API::PDF->create($Shop, $hArgs); |
Input |
|
Return |
|
merge
Merges multiple PDF files into one.
Syntax |
$PdfClient->merge( $hParams ); |
Example |
my $Client = DE_EPAGES::EPagesJ::API::PDF::PdfClient->create($Shop); my $Pdf = $Client->merge( { 'files' => [ { 'path' => 'WebRoot/File1.pdf' }, { 'path' => 'WebRoot/File2.pdf' } ] } ); WriteFile('merged.pdf', \$Pdf, { binary => 1}); |
Input |
|
Return |
|
new
Instanciates a new PdfClient.
Syntax |
DE_EPAGES::EPagesJ::API::PDF::PdfClient->new( %args ); |
Input |
|
transform
Transforms HTML content into a pdf document. It will try its best to create valid XHTML from the user input, as invalid XHTML input gets rejected by the PDF generator.
Syntax |
$PdfClient->transform( $HtmlContent ); |
Input |
|
Return |
|