Export PDF Pages as Separate TIFF or JPEG Files in Adobe Acrobat
Question details
Export each page of a PDF as a separate TIFF or JPEG file, with reliable paths and error reporting.

- Product
- Adobe Acrobat
- Device & OS
- macOS
- Scenario
- Use Acrobat JavaScript, optionally invoked through AppleScript, to export PDF pages to a folder on the Desktop.
- Observed behavior
- The desired result is one numbered image per PDF page, with export failures reported and the correct Desktop location used.
Open the PDF in Adobe Acrobat and create an empty folder named PDF Page Exports on your actual Desktop. Confirm that your Acrobat installation supports image export and that macOS allows it to write to the destination folder.
Export individual pages with Acrobat JavaScript
Use this approach when you need numbered image files and a log of page-specific errors.
The script extracts each page to a temporary PDF, opens it, and exports it as an image. Acrobat security restrictions can block extraction, opening, or saving; run it only in an authorized context and review the console output.
The example uses JPEG. For TIFF, change the filename extension to .tif and the conversion ID to com.adobe.acrobat.tiff. Conversion availability depends on the installed Acrobat version.
In Script Editor, run `POSIX path of (path to desktop folder)` and append `PDF Page Exports/` to the result. Use a correctly escaped JavaScript string for the path; escape backslashes and double quotes. If Acrobat rejects the POSIX path, check its device-independent path requirements for your installation.
With the source PDF active in Acrobat, open Tools > JavaScript > Debugger, or use the JavaScript console available in your Acrobat version.
Replace the folder value below with the verified path, then run the script in the console: var src = this; var folder = "/Users/yourname/Desktop/PDF Page Exports/"; for (var i = 0; i < src.numPages; i++) { var n = i + 1; var temp = folder + "page-" + n + "-temp.pdf"; var output = folder + "page-" + n + ".jpg"; var pageDoc = null; try { src.extractPages({nStart: i, nEnd: i, cPath: temp}); pageDoc = app.openDoc(temp); pageDoc.saveAs({cPath: output, cConvID: "com.adobe.acrobat.jpeg"}); console.println("Exported page " + n + ": " + output); } catch (e) { console.println("Failed page " + n + ": " + e); } finally { if (pageDoc) pageDoc.closeDoc(true); } }
Open PDF Page Exports in Finder and compare the numbered images with the source PDF. Review the JavaScript console for failed pages; after verifying the images, delete the files ending in `-temp.pdf`.

Use AppleScript to verify the Desktop path and pass JavaScript to Acrobat
Use this approach when an AppleScript workflow needs to supply the actual macOS Desktop location to Acrobat.
Export PDF pages as images with Acrobat's interface
Use the interface when you do not need an automated AppleScript workflow.
Export PDF Pages as JPEG Images with WPS Office
Use WPS Office's PDF-to-picture tool to export pages as separate JPEG images without writing a script. Tool availability and export options can vary by version and plan.
- 1. Open the PDF: Launch WPS Office and open the PDF you want to convert.
- 2. Select PDF to Picture: Choose PDF to Picture from the PDF tools or conversion menu.
- 3. Set the export options: Choose JPEG or JPG, select the pages, and choose an output folder. Select separate-page output if that option is shown.
- 4. Start the conversion: Click Convert or Export, then open the destination folder to verify the image files.

Frequently Asked Questions
Can Acrobat JavaScript find the macOS Desktop directly?
Do not assume there is a direct Acrobat JavaScript Desktop-path method. In Script Editor, use `POSIX path of (path to desktop folder)` to obtain the actual macOS Desktop path, then verify that Acrobat accepts the path used for saving.
Why does the script use page number zero for the first page?
Acrobat JavaScript page indexes start at zero. The example uses `i` for extraction and `i + 1` for the human-readable output filename.
What should I check if Acrobat reports a security error?
Check the exact message in the JavaScript console, confirm the destination folder exists and is writable, and review whether the operation requires a privileged Acrobat context. AppleScript does not remove Acrobat's security restrictions.
How do I export TIFF instead of JPEG in the script?
Change the output extension from `.jpg` to `.tif` and the `cConvID` value from `com.adobe.acrobat.jpeg` to `com.adobe.acrobat.tiff`. Confirm that TIFF export is available in your Acrobat installation.
Why are there temporary PDF files in the export folder?
The JavaScript example extracts each page as a temporary PDF before converting it. After checking that the image files exported correctly, delete the files ending in `-temp.pdf` in Finder.




