SelectPdf::ApiClient - Base class for API clients. Do not use this directly.
ApiClient Constructor. Do not use this directly.
Set a custom SelectPdf API endpoint. Do not use this method unless advised by SelectPdf.
$client->setApiEndpoint($apiEndpoint);
Parameters:
- $apiEndpoint API endpoint.
Set a custom SelectPdf API endpoint for async jobs. Do not use this method unless advised by SelectPdf.
$client->setApiAsyncEndpoint($apiAsyncEndpoint);
- $apiAsyncEndpoint API async jobs endpoint.
Set a custom SelectPdf API endpoint for web elements. Do not use this method unless advised by SelectPdf.
$client->setApiWebElementsEndpoint($apiWebElementsEndpoint);
- $apiWebElementsEndpoint API web elements endpoint.
Get the number of pages of the PDF document resulted from the API call.
$pages = $client->getNumberOfPages();
Returns:
- Number of pages of the PDF document.
To install SelectPdf, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SelectPdf
CPAN shell
perl -MCPAN -e shell install SelectPdf
For more information on module installation, please visit the detailed CPAN module installation guide.