Skip to content

Commit 70bf0f7

Browse files
authored
Merge pull request #17 from aspose-pdf-cloud/holub
PDFAPPS-6284
2 parents d70c11a + 994a2a8 commit 70bf0f7

File tree

22 files changed

+2337
-576
lines changed

22 files changed

+2337
-576
lines changed

pdf/php/conversion/pdf-to-jpeg/_index.md

Lines changed: 46 additions & 86 deletions
Large diffs are not rendered by default.

pdf/php/conversion/pdf-to-png/_index.md

Lines changed: 43 additions & 84 deletions
Large diffs are not rendered by default.

pdf/php/conversion/pdf-to-pptx/_index.md

Lines changed: 37 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,29 @@
11
---
2-
title: Convert PDF to PPTX via Cloud Node.js SDK
3-
url: /nodejs/conversion/pdf-to-pptx/
4-
description: Sample code for PDF to PPTX Cloud Node.js SDK conversion. Use API example code for batch PDF files to PPTX conversion with Aspose.PDF Cloud.
5-
lastmod: "2022-03-17"
2+
title: Convert PDF to PPTX via PHP Cloud SDK
3+
url: /php/conversion/pdf-to-pptx/
4+
description: Sample code for PDF to PPTX Python Cloud SDK conversion. Use API example code for batch PDF files to PPTX conversion with Aspose.PDF Cloud.
5+
lastmod: "2024-10-17"
66
---
77

88
{{< blocks/products/pf/main-wrap-class isAutogenPage="true">}}
9-
{{< blocks/products/pf/upper-banner h1="Convert PDF to PPTX via Cloud Node.js SDK" h2="Export PDF documents to multiple formats including PPTX with Aspose.PDF Cloud Node.js SDK" logoImageSrc="https://products.aspose.cloud/headers/aspose_pdf-for-net.svg" sourceAdditionalConversionTag="" additionalConversionTag="PDF" pfName="" subTitlepfName="" downloadUrl="" fileiconsmall1="HTML" fileiconsmall2="JPG" fileiconsmall3="PDF" fileiconsmall4="XML" fileiconsmall5="DOCX" >}}
9+
{{< blocks/products/pf/upper-banner h1="Convert PDF to PPTX via Cloud PHP SDK" h2="Export PDF Documents to multiple formats including PPTX with Aspose.PDF Cloud PHP SDK" logoImageSrc="/sdk/aspose_pdf-for-php.svg" sourceAdditionalConversionTag="" additionalConversionTag="PDF" pfName="" subTitlepfName="" downloadUrl="" fileiconsmall1="HTML" fileiconsmall2="JPG" fileiconsmall3="PDF" fileiconsmall4="XML" fileiconsmall5="DOC" >}}
1010

11-
{{< blocks/products/pf/main-container pfName="Aspose.PDF Cloud" subTitlepfName="Node.js SDK" >}}
12-
{{< blocks/products/pf/sub-menu logoImageSrc="https://products.aspose.cloud/sdk/aspose_pdf-for-net.svg"
11+
{{< blocks/products/pf/main-container pfName="Aspose.PDF Cloud" subTitlepfName="PHP SDK" >}}
12+
{{< blocks/products/pf/sub-menu logoImageSrc="/sdk/aspose_pdf-for-php.svg"
1313
autoGeneratedVersion="true"
14-
liveDemosLink="https://products.aspose.app/pdf/family/" PricingLink="https://purchase.aspose.cloud/pricing" buyLink="" docsLink="https://docs.aspose.cloud/pdf" directDownloadLink="https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-node.js" >}}
14+
liveDemosLink="https://products.aspose.app/pdf/family/" PricingLink="https://purchase.aspose.cloud/pricing" buyLink="" DocsLink="https://docs.aspose.cloud/pdf" directDownloadLink="https://github.com/aspose-pdf-cloud/aspose-pdf-cloud" >}}
1515

16-
{{% blocks/products/pf/agp/content h2="How to Convert PDF to PPTX Using Node.js SDK" %}}
16+
{{% blocks/products/pf/agp/content h2="How to Convert PDF to PPTX Using PHP SDK" %}}
1717

1818
To convert PDF to PPTX, we'll use
19-
[Aspose.PDF Cloud Node.js SDK](https://products.aspose.cloud/pdf/nodejs/)
20-
This Cloud SDK SDK assists Node.js programmers in developing cloud-based PDF creator, annotator, editor, and converter apps using Node.js programming language via Aspose.PDF REST API. Open
21-
[NPM](https://www.npmjs.com/package/asposepdfcloud)
22-
package manager, search for
23-
Aspose.PDF Cloud,
24-
and install. You may also use the following command from the Package Manager Console.
19+
[Aspose.PDF Cloud PHP SDK](https://products.aspose.cloud/pdf/php/)
20+
This Cloud SDK assists PHP programmers in developing cloud-based PDF creator, annotator, editor, and converter apps using PHP programming language via Aspose.PDF REST API. Simply create an account at [Aspose for Cloud](https://dashboard.aspose.cloud/#/apps) and get your application information. Once you have the App SID & key, you are ready to give the Aspose.PDF Cloud PHP SDK.
2521

26-
{{% blocks/products/pf/agp/code-block title="Package Manager Console Command" offSpacer="true" %}}
22+
{{% blocks/products/pf/agp/code-block title="Installation" offSpacer="true" %}}
2723

2824
```bash
2925

30-
 
31-
npm install asposepdfcloud --save
32-
 
33-
 
26+
composer install
3427

3528
```
3629

@@ -40,66 +33,42 @@ liveDemosLink="https://products.aspose.app/pdf/family/" PricingLink="https://pur
4033

4134
{{< blocks/products/pf/agp/feature-section isGrey="true" >}}
4235

43-
{{% blocks/products/pf/agp/feature-section-col title="Steps to Convert PDF to PPTX via Node.js" %}}
36+
{{% blocks/products/pf/agp/feature-section-col title="Steps to Convert PDF to PPTX via PHP" %}}
4437

4538
{{% blocks/products/pf/agp/text %}}
4639

47-
Aspose.PDF Cloud Node.js developers can easily load & convert PDF files to PPTX in just a few lines of code.
40+
Aspose.PDF Cloud PHP developers can easily load & convert PDF files to PPTX in just a few lines of code.
4841

4942
{{% /blocks/products/pf/agp/text %}}
5043

51-
1. Load your Application Secret and Key from the JSON file or set credentials in another way
52-
1. Create an object to connect to the Cloud API
53-
1. Upload your document file
54-
1. Perform the conversion using getPdfInStorageToPptx
55-
1. Download the result if need it
44+
1. Set Input File Name
45+
1. Set Output File Name
46+
1. Create Options Dictionary
47+
1. Call API Method
5648

5749
{{% /blocks/products/pf/agp/feature-section-col %}}
5850

5951
{{% blocks/products/pf/agp/feature-section-col title="System Requirements" %}}
6052

6153
{{% blocks/products/pf/agp/text %}}
6254

63-
It is easy to get started with Aspose.PDF Cloud Node.js SDK 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 Node.js SDK.
55+
It is easy to get started with Aspose.PDF Cloud PHP SDK:
6456

65-
* CPU: 1GHz
66-
* RAM: 512Mb
67-
* Free space on disk: 20Mb
68-
* Any OS Microsoft Windows, Mac OS, Linux x32/x64
69-
* node.js v4.8 or higher
57+
+ PHP 7.4 and later.
7058

7159
{{% /blocks/products/pf/agp/text %}}
7260

7361
{{% /blocks/products/pf/agp/feature-section-col %}}
7462

75-
{{% blocks/products/pf/agp/code-block title="This sample code shows PDF to PPTX Cloud Node.js SDK Conversion" offSpacer="" %}}
76-
77-
```js
78-
const fs = require("fs");
79-
const credentials = require("./credentials.json");
80-
const { PdfApi } = require("asposepdfcloud");
81-
82-
// Load your Application Secret and Key from the JSON file or set credentials in another way
83-
async function convertPDFtoPPTX() {
84-
const localFileName = "C:\\Samples\\sample.pdf";
85-
const storageFileName = "sample.pdf";
86-
const pdfApi = new PdfApi(credentials.id, credentials.key);
87-
let fileData = fs.readFileSync(localFileName);
88-
try {
89-
let uploadResult = await pdfApi.uploadFile(storageFileName, fileData);
90-
console.log(uploadResult.response.text);
91-
}
92-
catch (error) {
93-
console.error(error.response.text);
94-
}
95-
96-
try {
97-
let convertResult = await pdfApi.getPdfInStorageToPptx(storageFileName);
98-
fs.writeFileSync("sample.pptx", convertResult.body);
99-
} catch (error) {
100-
console.error(error.response.text);
101-
}
102-
}
63+
{{% blocks/products/pf/agp/code-block title="This sample code shows PDF to PPTX Cloud PHP SDK Conversion" offSpacer="" %}}
64+
65+
```php
66+
67+
$name = '4pages.pdf';
68+
$this->uploadFile($name);
69+
$folder = $this->tempFolder;
70+
$response = $this->pdfApi->getPdfInStorageToPptx($name, null, null, $folder);
71+
$this->assertNotNull($response);
10372
```
10473

10574
{{% /blocks/products/pf/agp/code-block %}}
@@ -118,7 +87,8 @@ async function convertPDFtoPPTX() {
11887

11988
{{% blocks/products/pf/agp/content h2="" %}}
12089

121-
A PDF Processing Library to create cross-platform applications with the ability to generate, modify, convert, render, secure and print documents without using Adobe Acrobat. .NET PDF API offers compression, table creation, graph & image functions, hyperlinks, stamp and watermarking tasks, extended security controls & custom font handling.
90+
A PDF Processing Library to create cross-platform applications with the ability to generate, modify, convert, render, secure and print Documents without using Adobe Acrobat. .NET PDF API offers compression, table creation, graph & image functions, hyperlinks, stamp and watermarking tasks, extended security controls & custom font handling.
91+
12292

12393
{{% /blocks/products/pf/agp/content %}}
12494

@@ -142,25 +112,11 @@ Files with PPTX extension are presentation files created with popular Microsoft
142112

143113
{{< blocks/products/pf/agp/other-supported-section title="Other Supported Conversions" subTitle="You can also convert PDF into many other file formats including few listed below." >}}
144114

145-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-word/" name="PDF TO WORD" description="Microsoft Word DOC & DOCX" >}}
146-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-excel/" name="PDF TO EXCEL" description="Microsoft Excel" >}}
147-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-bmp/" name="PDF TO BMP" description="Bitmap Image" >}}
148-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-doc/" name="PDF TO DOC" description="Microsoft Word Binary Format" >}}
149-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-docx/" name="PDF TO DOCX" description="Office 2007+ Words Document" >}}
150-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-emf/" name="PDF TO EMF" description="Enhanced Metafile Format" >}}
151-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-epub/" name="PDF TO EPUB" description="E-book Format" >}}
152-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-gif/" name="PDF TO GIF" description="Graphical Interchange Format" >}}
153-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-html/" name="PDF TO HTML" description="Hyper Text Markup Language" >}}
154-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-jpeg/" name="PDF TO JPEG" description="JPEG Image" >}}
155-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-png/" name="PDF TO PNG" description="Portable Network Graphics" >}}
156-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-svg/" name="PDF TO SVG" description="Scalable Vector Graphics" >}}
157-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-tex/" name="PDF TO TEX" description="LaTeX Output Text" >}}
158-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-tiff/" name="PDF TO TIFF" description="Tagged Image Format" >}}
159-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-txt/" name="PDF TO TXT" description="Text Document" >}}
160-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-xls/" name="PDF TO XLS" description="Excel Binary Format" >}}
161-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-xlsx/" name="PDF TO XLSX" description="OOXML Excel File" >}}
162-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-xml/" name="PDF TO XML" description="Extensible Markup Language" >}}
163-
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.com/pdf/net/conversion/pdf-to-xps/" name="PDF TO XPS" description="XML Paper Specifications" >}}
115+
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.cloud/pdf/php/conversion/pdf-to-word/" name="PDF TO WORD" description="Microsoft Word DOC & DOC" >}}
116+
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.cloud/pdf/php/conversion/pdf-to-excel/" name="PDF TO EXCEL" description="Microsoft Excel" >}}
117+
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.cloud/pdf/php/conversion/pdf-to-jpeg/" name="PDF TO JPEG" description="JPEG Image" >}}
118+
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.cloud/pdf/php/conversion/pdf-to-png/" name="PDF TO PNG" description="Portable Network Graphics" >}}
119+
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.cloud/pdf/php/conversion/pdf-to-pptx/" name="PDF TO PPTX" description="Open XML presentation Format" >}}
164120

165121
{{< /blocks/products/pf/agp/other-supported-section >}}
166122

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
---
2+
title: Convert PDF to DOC via PHP Cloud SDK
3+
url: /php/conversion/pdf-to-word/
4+
description: Sample code for PDF to DOC PHP Cloud SDK conversion. Use API example code for batch PDF files to DOC conversion with Aspose.PDF Cloud.
5+
lastmod: "2024-10-17"
6+
---
7+
8+
{{< blocks/products/pf/main-wrap-class isAutogenPage="true">}}
9+
{{< blocks/products/pf/upper-banner h1="Convert PDF to DOC via Cloud PHP SDK" h2="Export PDF Documents to multiple formats including DOC with Aspose.PDF Cloud PHP SDK" logoImageSrc="/sdk/aspose_pdf-for-php.svg" sourceAdditionalConversionTag="" additionalConversionTag="PDF" pfName="" subTitlepfName="" downloadUrl="" fileiconsmall1="HTML" fileiconsmall2="JPG" fileiconsmall3="PDF" fileiconsmall4="XML" fileiconsmall5="DOC" >}}
10+
11+
{{< blocks/products/pf/main-container pfName="Aspose.PDF Cloud" subTitlepfName="PHP SDK" >}}
12+
{{< blocks/products/pf/sub-menu logoImageSrc="/sdk/aspose_pdf-for-php.svg"
13+
autoGeneratedVersion="true"
14+
liveDemosLink="https://products.aspose.app/pdf/family/" PricingLink="https://purchase.aspose.cloud/pricing" buyLink="" DocsLink="https://docs.aspose.cloud/pdf" directDownloadLink="https://github.com/aspose-pdf-cloud/aspose-pdf-cloud" >}}
15+
16+
{{% blocks/products/pf/agp/content h2="How to Convert PDF to DOC Using PHP SDK" %}}
17+
18+
To convert PDF to DOC, we'll use
19+
[Aspose.PDF Cloud PHP SDK](https://products.aspose.cloud/pdf/php/)
20+
This Cloud SDK assists PHP programmers in developing cloud-based PDF creator, annotator, editor, and converter apps using PHP programming language via Aspose.PDF REST API. Simply create an account at [Aspose for Cloud](https://dashboard.aspose.cloud/#/apps) and get your application information. Once you have the App SID & key, you are ready to give the Aspose.PDF Cloud PHP SDK.
21+
22+
{{% blocks/products/pf/agp/code-block title="Installation" offSpacer="true" %}}
23+
24+
```bash
25+
26+
composer install
27+
28+
```
29+
30+
{{% /blocks/products/pf/agp/code-block %}}
31+
32+
{{% /blocks/products/pf/agp/content %}}
33+
34+
{{< blocks/products/pf/agp/feature-section isGrey="true" >}}
35+
36+
{{% blocks/products/pf/agp/feature-section-col title="Steps to Convert PDF to DOC via PHP" %}}
37+
38+
{{% blocks/products/pf/agp/text %}}
39+
40+
Aspose.PDF Cloud PHP developers can easily load & convert PDF files to DOC in just a few lines of code.
41+
42+
{{% /blocks/products/pf/agp/text %}}
43+
44+
1. Set Input File Name
45+
1. Set Output File Name
46+
1. Create Options Dictionary
47+
1. Call API Method
48+
49+
{{% /blocks/products/pf/agp/feature-section-col %}}
50+
51+
{{% blocks/products/pf/agp/feature-section-col title="System Requirements" %}}
52+
53+
{{% blocks/products/pf/agp/text %}}
54+
55+
It is easy to get started with Aspose.PDF Cloud PHP SDK:
56+
57+
+ PHP 7.4 and later.
58+
59+
{{% /blocks/products/pf/agp/text %}}
60+
61+
{{% /blocks/products/pf/agp/feature-section-col %}}
62+
63+
{{% blocks/products/pf/agp/code-block title="This sample code shows PDF to DOC Cloud PHP SDK Conversion" offSpacer="" %}}
64+
65+
```php
66+
67+
$name = '4pages.pdf';
68+
$this->uploadFile($name);
69+
$folder = $this->tempFolder;
70+
$response = $this->pdfApi->getPdfInStorageToDoc($name, null, null, null, null, null, null, null, null, $folder);
71+
$this->assertNotNull($response);
72+
```
73+
74+
{{% /blocks/products/pf/agp/code-block %}}
75+
76+
{{< /blocks/products/pf/agp/feature-section >}}
77+
78+
{{< blocks/products/pf/agp/faq-item question="" answer="" >}}
79+
80+
<!-- aboutfile Starts -->
81+
82+
{{< blocks/products/pf/agp/demobox sectionTitle="Free App to Convert PDF to DOC" sectionDescription="Check our live demos for [PDF to DOC conversion](https://products.aspose.app/pdf/conversion/pdf-to-DOC) with following benefits." >}}
83+
{{< blocks/products/pf/agp/democard icon="fa-cogs" text=" No need to download or setup anything." >}}
84+
{{< blocks/products/pf/agp/democard icon="fa-edit" text=" No need to write any code." >}}
85+
{{< blocks/products/pf/agp/democard icon="fa-file-text" text=" Just upload your PDF file and hit the \"Convert\" button." >}}
86+
{{< blocks/products/pf/agp/democard icon="fa-download" text=" You will instantly receive a link to download the result." >}}
87+
88+
{{% blocks/products/pf/agp/content h2="" %}}
89+
90+
A PDF Processing Library to create cross-platform applications with the ability to generate, modify, convert, render, secure and print documents without using Adobe Acrobat. .NET PDF API offers compression, table creation, graph & image functions, hyperlinks, stamp and watermarking tasks, extended security controls & custom font handling.
91+
92+
93+
{{% /blocks/products/pf/agp/content %}}
94+
95+
{{< blocks/products/pf/agp/about-file-section >}}
96+
97+
{{< blocks/products/pf/agp/about-file-text fileFormat="PDF" readMoreLink="https://docs.fileformat.com/view/pdf/" >}}
98+
Portable Document Format (PDF) is a type of document created by Adobe back in 1990s. The purpose of this file format was to introduce a standard for representation of documents and other reference material in a format that is independent of application software, hardware as well as Operating System. PDF files can be opened in Adobe Acrobat Reader/Writer as well in most modern browsers like Chrome, Safari, Firefox via extensions/plug-ins. Most of the commercially available software suites also offer conversion of their documents to PDF file format without the requirement of any additional software component. Thus, PDF file format has full capability to contain information like text, images, hyperlinks, form-fields, rich media, digital signatures, attachments, metadata, Geospatial features and 3D objects in it that can become as part of source document.
99+
100+
{{< /blocks/products/pf/agp/about-file-text >}}
101+
102+
{{< blocks/products/pf/agp/about-file-text fileFormat="DOC" readMoreLink="https://docs.fileformat.com/word-processing/DOC/" >}}
103+
DOC is a well-known format for Microsoft Word documents. Introduced from 2007 with the release of Microsoft Office 2007, the structure of this new Document format was changed from plain binary to a combination of XML and binary files. DOC files can be opened with Word 2007 and lateral versions but not with the earlier versions of MS Word which support DOC file extensions.
104+
105+
{{< /blocks/products/pf/agp/about-file-text >}}
106+
107+
{{< /blocks/products/pf/agp/about-file-section >}}
108+
109+
{{< /blocks/products/pf/agp/demobox >}}
110+
111+
<!-- aboutfile Ends -->
112+
113+
{{< blocks/products/pf/agp/other-supported-section title="Other Supported Conversions" subTitle="You can also convert PDF into many other file formats including few listed below." >}}
114+
115+
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.cloud/pdf/php/conversion/pdf-to-word/" name="PDF TO WORD" description="Microsoft Word DOC & DOC" >}}
116+
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.cloud/pdf/php/conversion/pdf-to-excel/" name="PDF TO EXCEL" description="Microsoft Excel" >}}
117+
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.cloud/pdf/php/conversion/pdf-to-jpeg/" name="PDF TO JPEG" description="JPEG Image" >}}
118+
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.cloud/pdf/php/conversion/pdf-to-png/" name="PDF TO PNG" description="Portable Network Graphics" >}}
119+
{{< blocks/products/pf/agp/other-supported-section-item href="https://products.aspose.cloud/pdf/php/conversion/pdf-to-pptx/" name="PDF TO PPTX" description="Open XML presentation Format" >}}
120+
121+
{{< /blocks/products/pf/agp/other-supported-section >}}
122+
123+
{{< /blocks/products/pf/main-container >}}
124+
125+
{{< /blocks/products/pf/main-wrap-class >}}
126+
127+

0 commit comments

Comments
 (0)