Manipulate PDF documents using PHP SDK for Aspose.PDF Cloud

Use your favorite PHP language to Create, Manipulate, Convert or Sign PDF documents in Cloud.

  Start Free Trial
Aspose.PDF Cloud

Aspose.PDF Cloud SDK for PHP

 
 

Aspose.PDF Cloud SDK for PHP allows you to create, edit and convert PDF files in the cloud with a high degree of precision. The SDK allows you to create PDF documents from a number of other file formats including PCL, HTML, XML and images. Moreover, you can convert PDF documents to various other formats including PDF/A, PDF/A-1a, PDF/A-1b, HTML, DOC, XPS, TXT and even you get the ability to convert PDF pages to images like PNG, JPEG, GIF, BMP, TIFF and much more.

Platform & Storage Independence

It is easy to get started with Aspose.PDF Cloud SDK for PHP and there is nothing to install. Simply create an account at Aspose for Cloud and get your application information. Once you have the App SID & key, you are ready to give the Aspose.PDF Cloud SDK for PHP a try using PHP language - on any platform. Aspose.PDF Cloud SDK for PHP can be used with applications on any platform which supports HTTP requests and responses. Nevertheless, you can also use Aspose.PDF Cloud SDK for PHP with many third party storage providers including Amazon S3, Google Cloud, Google Drive and DropBox.

 

Advanced PDF documents Manipulation features

 

 

Create new PDF documents

 

Split PDF document into single page documents

 

Convert PDF documents to different formats

 

Merge multiple PDF documents

 

Transform XML & XSL-FO document to PDF

 

Convert images to PDF

 

Convert HTML pages to PDF documents

 

Convert SVG files to PDF documents

 

Extract & update text & images in PDF documents

 

Add text, image, PDF page or page number as stamps

 

Extract annotations, signatures, bookmarks, fragments, fields

 

Update form fields

 

Move PDF pages within one PDF file

Manipulate PDF Document Elements in Cloud

Aspose.PDF Cloud SDK for PHP offers the capabilities to quickly and reliably create new PDF files, edit and manipulate existing PDF files or convert to and from various supported document formats. Apart from PDF creation and manipulation, the SDK also brings the leverage to manage / manipulate PDF elements such as Annotations, Watermarks, Bookmarks, Stamps, Form Fields, Signatures, PDF properties, meta data, text, etc. You can also manage images, hyperlinks and attachments as well as facilities in common operations such as manipulation of PDF document properties, splitting, merging & signing of PDF documents.

Get PDF file Properties - PHP


$this->pdfApi = new PdfApi();
Utils::uploadFile("Sample-Annotation.pdf");
$result = $this->pdfApi->GetDocumentProperties("Sample-Annotation.pdf", $storage = "", $folder = "");
print_r ( $result );

Split & Merge PDF Documents

The ability to concatenate multiple PDF files into a single file or the feature of splitting one PDF document into individual files are one of the salient features of our SDK. Using Aspose.PDF Cloud SDK for PHP, you can easily Split all or specific pages of a PDF to a new PDF or you can can merge multiple PDF files into a single PDF document.

Merge multiple PDF files - PHP


$this->pdfApi = new PdfApi();
// Upload file to Aspose Cloud Storage
Utils::uploadFile("inputFile_1.pdf");
Utils::uploadFile("sample-input_2.pdf");
$body = array('List' => array("inputFile_1.pdf", "sample-input_2.pdf"));
$result = $this->pdfApi->PutMergeDocuments("Merged_Document.pdf", $storage = "", $folder = "", $body);
print_r ( $result );

Secure PDF Documents with Signature & Encryption in Cloud

Aspose.PDF Cloud SDK for PHP helps you secure PDF file using different methods. You can add encryption, set up owner and user passwords as well as sign a PDF file using signature to protect the PDF file. It also offers you the capabilities to remove the signatures and also de-crypt the PDF files.

Digitally Sign PDF document - PHP


$this->pdfApi = new PdfApi();
// Upload file to Aspose Cloud Storage
Utils::uploadFile("sample-input.pdf");
Utils::uploadFile("pkc7-sample.pfx");
$signature= '{
            "SignaturePath": "pkc7-sample.pfx",
            "SignatureType": "PKCS7",
            "Password": "aspose",
            "Reason": "Success",
            "Contact": "This email address is being protected from spambots. You need JavaScript enabled to view it.",
            "Location": "London",
            "Visible": true,
            "Rectangle": {
                "X": 100,
                "Y": 100,
                "Width": 200,
                "Height": 100
            },
            "FormFieldName": "Signature1",
            "Authority": "Alexey",
            "Date": "07/18/2018 2:46:00.000 PM"
            }';
$result = $this->pdfApi->PostSignPage("sample-input.pdf", $pageNumber = 1, $storage = "", $folder = "", $signature);
print_r ( $result );

Replace Text in PDF Documents

Aspose.PDF Cloud SDK for PHP provides you all the features you need to handle text in a PDF file. Most useful operation include find and replace text, remove or extract text from PDF and replace text using a regular expression and so on.

Get Text from PDF document - PHP


$this->pdfApi = new PdfApi();
// Upload file to Aspose Cloud Storage
Utils::uploadFile("sample-input.pdf");
$result = $this->pdfApi->GetTextItems("sample-input.pdf", $withEmpty = "", $storage = "", $folder = "");
print_r ( $result );

Manage PDF Forms & Fields using Cloud SDK

Aspose.PDF Cloud SDK for PHP also provides the capabilities to manage forms, as well as fields within a PDF file. Its capable of supporting TextFields, Dropdown, Checkbox, Radio Button and Submit Button. You can also use this SDK to extract PDF form fields and their associated properties from the document.

Get Form fields count from PDF document - PHP


$this->pdfApi = new PdfApi();
// Upload file to Aspose Cloud Storage
Utils::uploadFile("sample-input.pdf");
$result = $this->pdfApi->GetFields("sample-input.pdf", $storage = "", $folder = "");
print_r ( $result );
 

Support and Learning Resources