Convert PDF from Remote Server to other Format using Aspose.Pdf for Cloud API in PHP

/ Published in: PHP
Save to your folder(s)

Aspose.PDF for Cloud API has released PHP SDK which allows PHP developers to convert PDF files uploaded to a remote server to other formats. You can pass URL and format parameters to specify the PDF’s URL and output format and use the PUT method of the convert resource to convert remote PDF files. You can download Aspose Cloud PHP SDK from the link given below:

The following code sample shows how you can use Aspose Cloud PHP SDK to convert PDF from remote server to TIFF image. You can define any format you want your PDF to convert to in “convertByUrl method”. You can view code for other languages on this page given below.

Copy this code and paste it in your HTML
  1. use Aspose\Cloud\Common\AsposeApp;
  2. use Aspose\Cloud\Common\Product;
  3. use Aspose\Cloud\Pdf\Converter;
  5. AsposeApp::$appSID = '3395ba5c-***';
  6. AsposeApp::$appKey = 'e8dd1b0cd***';
  8. /* * Creating the object of Pdf Converter Class with a perameter $fileName */
  9. $Obj = new Converter('path/to/pdf/file.pdf');
  11. // Call convertByUrl method.
  12. $Obj->convertByUrl('','tiff','outputfile.tiff');


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.