PHP code example of aspose / pdf-sdk-php
1. Go to this page and download the library: Download aspose/pdf-sdk-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aspose / pdf-sdk-php example snippets
// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration _CLIENT_SECRET');
$pdfApi = new PdfApi(null, $config);
$name = 'PdfWithAnnotations.pdf';
$pageNumber = 2;
$response = $pdfApi->getPageAnnotations($name, $pageNumber, null, "tempFolder");
$config->setSelfHost(true);
$config->setHost('MY_SELF_HOST_URL');