Adobe PDF 转 PPT API
Adobe PDF to PPT API
Adobe 是否提供官方 API 将 PDF 文件转换为 PPT?
https://www.adobe.com/in/acrobat/online/pdf-to-ppt.html
注:本人只找官方API
在 Adobe PDF Services API 使用 Node.js SDK 时,您的代码可能如下所示...
// Create an ExecutionContext using
// credentials and create a new
// operation instance.
const executionContext = PDFServicesSdk.ExecutionContext.create(credentials),
exportPDF = PDFServicesSdk.ExportPDF,
exportPdfOperation = exportPDF.Operation.createNew(exportPDF.SupportedTargetFormats.PPTX);
// Set operation input from a source file
const input = PDFServicesSdk.FileRef.createFromLocalFile('resources/exportPDFInput.pdf');
exportPdfOperation.setInput(input);
// Execute the operation and Save the result to the specified location.
exportPdfOperation.execute(executionContext)
.then(result => result.saveAsFile('output/exportPdfOutput.pptx'))
Adobe 是否提供官方 API 将 PDF 文件转换为 PPT?
https://www.adobe.com/in/acrobat/online/pdf-to-ppt.html
注:本人只找官方API
在 Adobe PDF Services API 使用 Node.js SDK 时,您的代码可能如下所示...
// Create an ExecutionContext using
// credentials and create a new
// operation instance.
const executionContext = PDFServicesSdk.ExecutionContext.create(credentials),
exportPDF = PDFServicesSdk.ExportPDF,
exportPdfOperation = exportPDF.Operation.createNew(exportPDF.SupportedTargetFormats.PPTX);
// Set operation input from a source file
const input = PDFServicesSdk.FileRef.createFromLocalFile('resources/exportPDFInput.pdf');
exportPdfOperation.setInput(input);
// Execute the operation and Save the result to the specified location.
exportPdfOperation.execute(executionContext)
.then(result => result.saveAsFile('output/exportPdfOutput.pptx'))