Step 2: Run export pdf operation using the sample files
Java
-
Open a command prompt.
-
Change directories into your sample code directory.
For example, C:\Temp\PDFToolsAPI\adobe-dc-pdf-tools-sdk-java-samples
-
Run the following command:
mvn -f pom.xml exec:java -Dexec.mainClass=com.adobe.platform.operation.samples.exportpdf.ExportPDFToDOCX
Your PDF is created in the src/main/resources directory.
.Net
-
Open a command prompt.
-
Change directories into your sample code directory.
For example, C:\Temp\PDFToolsAPI\adobe-dc-pdf-tools-sdk-NetSamples
-
Change directories again into the ExportPDFtoDocx directory.
-
Run the following command:
dotnet run ExportPDFToDocx.csproj
Your PDF is created in the same directory.
Node.js
-
Open a command prompt.
-
Change directories into your sample code directory.
For example, C:\Temp\PDFToolsAPI\adobe-dc-pdf-tools-sdk-node-samples
-
Run the following command:
node src/ocr/ocr-pdf.js
Your PDF is created in the location designated in the output, which by default is the pdfServicesSdkResult directory.
Final thoughts
You should now have a working example that can be imported into your existing applications to start a proof of concept. In each of the sample directories, you can see another sample to export PDF files to image format. The same steps above allow you to run that sample as well. To change to another format, you can update the code to the new format you would like:
SupportedTargetFormats.PPTX
And the destination result:
output/exportPdfOutput.PPTX
To another format.
Resources and next steps
-
For additional help and support, visit the Adobe Acrobat Services APIs community forum
-
PDF Services API Documentation
-
FAQ for PDF Services API questions
-
Contact us for questions on licensing and pricing
Connect with Experience League at Summit!
Get front-row access to top sessions, hands-on activities, and networking—wherever you are!
Learn more