PDF Conversion Issues

Export PDF Pages as Separate TIFF or JPEG Files in Adobe Acrobat

Maira MehtabMaira Mehtab Nov 19, 2026 869 views

Question details

Export each page of a PDF as a separate TIFF or JPEG file, with reliable paths and error reporting.

Export PDF Pages as Separate TIFF or JPEG Files in Adobe Acrobat
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.
Before you start

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.

Solution 1Recommended

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.

1
Get the destination path

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.

2
Open the JavaScript console

With the source PDF active in Acrobat, open Tools > JavaScript > Debugger, or use the JavaScript console available in your Acrobat version.

3
Run the export loop

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); } }

4
Check the results

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`.

Export individual pages with Acrobat JavaScript
Permissions and existing files: Use an empty destination folder to avoid filename conflicts. A security error may require an appropriately privileged Acrobat workflow; running the code through AppleScript does not bypass Acrobat security restrictions.
Convert PDF pages to images

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. 1. Open the PDF: Launch WPS Office and open the PDF you want to convert.
  2. 2. Select PDF to Picture: Choose PDF to Picture from the PDF tools or conversion menu.
  3. 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. 4. Start the conversion: Click Convert or Export, then open the destination folder to verify the image files.
Convert PDF pages into separate JPEG imagesUse a visual workflow without Acrobat JavaScriptOpen and edit compatible Microsoft Office formats, including DOCX, XLSX, and PPTXWork with PDFs and Office documents in one application
microsoft office alternative - wps office

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.