How to Export PDF Pages as Raster Images using Acrobat SDK
Question details
Developers are looking for programmatic ways to export or save PDF pages into raster image formats utilizing Adobe Acrobat SDK or JavaScript workflows.

- Product
- Adobe Acrobat SDK
- Device & OS
- not provided
- Scenario
- Automating or scripting the conversion of PDF file content into high-quality raster image formats such as JPEG or TIFF.
- Observed behavior
- Successfully utilizing Acrobat JavaScript Document methods to render, save, or export PDF content into rasterized image files.
Ensure you have Adobe Acrobat Pro installed and properly configured, as Adobe Acrobat Reader does not support executing advanced document conversion scripts or the saveAs API.
Use Acrobat JavaScript saveAs Method
Utilize the Document object's saveAs method to programmatically convert PDF pages to raster images.
Acrobat JavaScript provides robust methods for exporting PDF content. By utilizing the Document object's saveAs method, developers can convert PDF documents to various raster formats depending on the specific output requirements and security permissions.
Launch Adobe Acrobat Pro and open the JavaScript Debugger console to write and test your conversion scripts.
Implement the `this.saveAs()` method in your script. You must specify the output file path and the required conversion parameter (cConvID) for the target raster format, such as `com.adobe.acrobat.jpeg` or `com.adobe.acrobat.tiff`.
Run the script on your active PDF. Ensure the document's security settings allow content extraction and saving to external formats.

Use Adobe PDF Library (APDFL)
Implement a dedicated PDF SDK designed for high-volume rasterization if Acrobat JavaScript is restricted by your environment.
Convert PDF to Raster Images Instantly with WPS Office
If you need to export PDF pages as high-quality raster images (like JPG or PNG) but want to avoid writing complex scripts or purchasing expensive developer SDKs, WPS Office provides an incredibly simple, built-in PDF to Picture conversion tool.
- 1. Open your PDF in WPS Office: Launch WPS Office and open the PDF document you wish to convert to images.
- 2. Access the PDF to Picture tool: Navigate to the 'Tools' tab on the top ribbon menu and click on the 'PDF to Picture' option.
- 3. Configure output settings: Select your desired raster image format (e.g., JPG or PNG), choose the output quality, and select whether to export pages individually or combined into one long image.
- 4. Export the raster images: Click 'Export' to immediately process and save your PDF pages as high-resolution images to your designated folder.

Frequently Asked Questions
What raster image formats can I export using the Acrobat saveAs method?
By supplying the correct conversion ID (cConvID), you can export PDF pages to popular raster formats including JPEG, TIFF, PNG, and JPEG2000, provided your version of Acrobat supports those encoders.
Why does my Acrobat JavaScript saveAs script throw a security exception?
The saveAs method is strictly governed by Acrobat's security policies. It typically must be executed in a privileged context, such as a trusted folder-level script or a predefined Action Wizard, rather than directly from an embedded document-level script.
Do I need Adobe Acrobat Pro to execute PDF conversion scripts?
Yes, automating the saveAs method for document conversion requires the advanced API access provided by Adobe Acrobat Pro. The free Adobe Reader lacks the necessary permissions and modules to execute these scripts.
Can I convert PDF pages to images manually without using an SDK?
Absolutely. You can use fully featured desktop software like WPS Office to directly convert PDF pages to images via the intuitive 'PDF to Picture' feature, completely bypassing the need for scripting or development tools.




