GroupDocs PHP SDK Samples
Sample 18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF and PPT to PDF

This sample will show how to use ConvertFile method to convert Doc to Docx, Docx to Doc, Docx and DOC to PDF and PPT to PDF, HTML to DOC and DOCX. When you use optional parameter "Callback URL" - additional logic will be involved: POST request from GroupDocs API server will be handled by convert_callback action. Also from result page an AJAX request will be sent to backend to check if callback was handled and result file was downloaded. If yes, then AJAX request will return a link to the file using PHP SDK

Docs for this sample

You entered:

ClientID =

Private Key =

File Id =

Convert type =

Please enter all required parameters

Enter data for request and press "Make request" button

File ID (GUID)
Upload local file
Upload file from URL

Download sample HTML file 1
Download sample HTML file 2
Download sample HTML file 3


Choose another one sample: