使用将PDF从远程服务器转换为其他格式Aspose.Pdf文件PHP中的云API

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用将PDF从远程服务器转换为其他格式Aspose.Pdf文件PHP中的云API相关的知识,希望对你有一定的参考价值。

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:

https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Php

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.


http://www.aspose.com/docs/display/pdfcloud/Convert+PDF+from+Remote+Server+to+other+Formats
  1. use AsposeCloudCommonAsposeApp;
  2. use AsposeCloudCommonProduct;
  3. use AsposeCloudPdfConverter;
  4.  
  5. AsposeApp::$appSID = '3395ba5c-***';
  6. AsposeApp::$appKey = 'e8dd1b0cd***';
  7.  
  8. /* * Creating the object of Pdf Converter Class with a perameter $fileName */
  9. $Obj = new Converter('path/to/pdf/file.pdf');
  10.  
  11. // Call convertByUrl method.
  12. $Obj->convertByUrl('http://url-to-pdf.com/file.pdf','tiff','outputfile.tiff');

以上是关于使用将PDF从远程服务器转换为其他格式Aspose.Pdf文件PHP中的云API的主要内容,如果未能解决你的问题,请参考以下文章

如何解决利用aspose把word文档转换为pdf文档时出现乱码 C#

WEB文档在线预览解决方案

aspose.word 把Word转成图片时,格式变了

aspose转pdf乱码问题

aspose转pdf乱码问题

aspose转pdf乱码问题