Skip to main content
Todd_Morgan
Legend
Nov 26, 2026 6:05 PM UTC
Question

Save page to any format

Please make Acrobat able to save a page to any format - or at least add the option when exporting/saving as to choose single page, selected pages, or the current default of the whole doc.

 

Thank you!

    10 replies

    BarlaeDC
    Community Expert
    Community Expert
    Nov 27, 2026 1:14 PM UTC

    Hi, 

     

    you can add this functionality yourself ( although it only works in the older User Interface).

     

    in Acrobat you need to do the following:

    Menu → Disable New Acrobat

     

    Then in the settings you need to make sure the following settings are enabled:

    in the Categories panel, select ‘JavaScript’

     

    Make sure the following checkboxes are checked:

    ‘Enable Acrobat JavaScript’

    ‘Enable menu item JavaScript execution privileges’

     

    Then you need to create a JavaScript file called exportPages.js, and install it in whichever of these paths makes sense for your operating system

    Windows

    C:\Users\{UserName}\AppData\Roaming\Adobe\Acrobat\Privileged\DC\JavaScripts\exportPages.js

    OSX

    /Users/<your-username>/Library/Application Support/Adobe/Acrobat/Privileged/DC/JavaScripts/exportPages.js

    and put this content in the file 

    /*
    * AcrobatJS - Save Page(s) As
    *
    * Folder-level JavaScript for Acrobat Pro/Standard. Adds File > Save Page(s) As
    * with commands for the current page, a range of pages, or the whole document.
    * Each command copies the chosen pages into a temporary PDF and opens Save As,
    * so any format offered by Acrobat can be selected.
    *
    * Install: copy this file into Acrobat's privileged JavaScripts folder and
    * restart Acrobat. See README.md for platform-specific paths.
    */

    var AcrobatJS_ExportPages_trustedExport = app.trustedFunction(function (sourcePath, ranges) {
    var temp = null;
    var i;

    app.beginPriv();
    try {
    temp = app.newDoc();

    // Append the requested page ranges after the blank page newDoc creates.
    for (i = 0; i < ranges.length; i++) {
    temp.insertPages({
    nPage: temp.numPages - 1,
    cPath: sourcePath,
    nStart: ranges[i][0],
    nEnd: ranges[i][1]
    });
    }

    // Remove the leading blank page.
    if (temp.numPages > ranges.length) {
    temp.deletePages({ nStart: 0, nEnd: 0 });
    }

    temp.bringToFront();
    app.execMenuItem("SaveAs");
    } finally {
    if (temp) {
    try {
    temp.closeDoc(true);
    } catch (e) {
    // Ignore close errors; the temporary document is disposable.
    }
    }
    app.endPriv();
    }
    });

    function AcrobatJS_ExportPages_activeDoc() {
    if (typeof event !== "undefined" && event && event.target &&
    typeof event.target.numPages === "number") {
    return event.target;
    }
    var docs = app.activeDocs;
    if (docs && docs.length) {
    return docs[0];
    }
    return null;
    }

    function AcrobatJS_ExportPages_trim(s) {
    return String(s).replace(/^\s+|\s+$/g, "");
    }

    /*
    * Parse a page specification into sorted, merged 0-based inclusive ranges.
    * Accepts: "current", "all", or comma-separated 1-based values/ranges,
    * e.g. "1", "1,3-5". Returns null when nothing valid is selected.
    */
    function AcrobatJS_ExportPages_parseRanges(spec, numPages, currentPage) {
    var s = AcrobatJS_ExportPages_trim(spec).toLowerCase();
    var ranges = [];
    var parts;
    var i;
    var part;
    var match;
    var a;
    var b;
    var tmp;
    var merged = [];
    var last;
    var range;

    if (s === "") {
    return null;
    }
    if (s === "current" || s === "cur" || s === "c") {
    return [[currentPage, currentPage]];
    }
    if (s === "all" || s === "a" || s === "*") {
    return [[0, numPages - 1]];
    }

    parts = s.split(",");
    for (i = 0; i < parts.length; i++) {
    part = AcrobatJS_ExportPages_trim(parts[i]);
    match = /^(\d+)(?:\s*-\s*(\d+))?$/.exec(part);
    if (!match) {
    throw new Error("Invalid page value: " + part);
    }
    a = parseInt(match[1], 10);
    b = match[2] ? parseInt(match[2], 10) : a;
    if (a > b) {
    tmp = a;
    a = b;
    b = tmp;
    }
    a = Math.max(1, a);
    b = Math.min(numPages, b);
    if (a <= b) {
    ranges.push([a - 1, b - 1]);
    }
    }

    if (!ranges.length) {
    return null;
    }

    ranges.sort(function (x, y) { return x[0] - y[0]; });
    for (i = 0; i < ranges.length; i++) {
    range = ranges[i];
    last = merged.length ? merged[merged.length - 1] : null;
    if (!last || range[0] > last[1] + 1) {
    merged.push([range[0], range[1]]);
    } else if (range[1] > last[1]) {
    last[1] = range[1];
    }
    }
    return merged;
    }

    function AcrobatJS_ExportPages_run(mode) {
    var doc = AcrobatJS_ExportPages_activeDoc();
    var spec;
    var ranges;

    if (!doc || typeof doc.numPages !== "number" || doc.numPages < 1) {
    app.alert("Open a PDF before using Save Page(s) As.", 3);
    return;
    }
    if (!doc.path) {
    app.alert("This document has no file path. Save it to disk first, then try again.", 3);
    return;
    }

    if (mode === "current") {
    spec = "current";
    } else if (mode === "all") {
    spec = "all";
    } else {
    spec = app.response({
    cQuestion: "Pages to export (current, all, or ranges like 1,3-5):",
    cTitle: "Save Page(s) As",
    cDefault: "current",
    cLabel: "Pages:"
    });
    if (spec === null) {
    return;
    }
    }

    try {
    ranges = AcrobatJS_ExportPages_parseRanges(spec, doc.numPages, doc.pageNum);
    } catch (e) {
    app.alert(String(e.message || e), 3);
    return;
    }

    if (!ranges) {
    app.alert("No valid pages were selected.", 3);
    return;
    }

    AcrobatJS_ExportPages_trustedExport(doc.path, ranges);
    }

    /*
    * Work out where to place the submenu. Acrobat internally names File > Save As
    * as "SaveAs"; falling back to the first Save* item keeps the tool beside the
    * other save commands on versions that name things differently.
    */
    function AcrobatJS_ExportPages_saveMenuPosition() {
    var menus;
    var children;
    var i;
    var j;
    var name;
    var saveIndex = -1;
    var fallbackIndex = -1;

    try {
    menus = app.listMenuItems();
    for (i = 0; i < menus.length; i++) {
    if (menus[i].cName === "File") {
    children = menus[i].oChildren;
    if (children) {
    for (j = 0; j < children.length; j++) {
    name = children[j].cName;
    if (name === "SaveAs") {
    saveIndex = j;
    break;
    }
    if (fallbackIndex < 0 && /^Save/.test(name)) {
    fallbackIndex = j;
    }
    }
    }
    break;
    }
    }
    } catch (e) {
    return null;
    }

    if (saveIndex >= 0) {
    return saveIndex + 1;
    }
    if (fallbackIndex >= 0) {
    return fallbackIndex + 1;
    }
    return null;
    }

    // Register the commands during application initialization.
    var AcrobatJS_ExportPages_submenu = {
    cName: "AcrobatJS_SavePages",
    cUser: "Save Page(s) As",
    cParent: "File"
    };
    var AcrobatJS_ExportPages_position = AcrobatJS_ExportPages_saveMenuPosition();
    if (AcrobatJS_ExportPages_position !== null) {
    AcrobatJS_ExportPages_submenu.nPos = AcrobatJS_ExportPages_position;
    }
    app.addSubMenu(AcrobatJS_ExportPages_submenu);

    var AcrobatJS_ExportPages_enable = "event.rc = (typeof event !== 'undefined' && event.target && typeof event.target.numPages === 'number' && event.target.numPages > 0);";

    app.addMenuItem({
    cName: "AcrobatJS_SavePages_Current",
    cUser: "Current page...",
    cParent: "AcrobatJS_SavePages",
    cExec: "AcrobatJS_ExportPages_run('current');",
    cEnable: AcrobatJS_ExportPages_enable
    });

    app.addMenuItem({
    cName: "AcrobatJS_SavePages_Range",
    cUser: "Pages by range...",
    cParent: "AcrobatJS_SavePages",
    cExec: "AcrobatJS_ExportPages_run('prompt');",
    cEnable: AcrobatJS_ExportPages_enable
    });

    app.addMenuItem({
    cName: "AcrobatJS_SavePages_All",
    cUser: "Whole document...",
    cParent: "AcrobatJS_SavePages",
    cExec: "AcrobatJS_ExportPages_run('all');",
    cEnable: AcrobatJS_ExportPages_enable
    });

    This can be installed by an IT, https://www.adobe.com/devnet-docs/acrobatetk/tools/Wizard/basics.html

     

    I realise this is still just a work around but wanted to make sure you had all the information. (tested on windows 11 and Acrobat 2026.003.22110

    Translate
    justlearn
    Community Expert
    Community Expert
    Nov 27, 2026 10:17 AM UTC

    ​@Todd_Morgan Have you thought of exporting versus Save As Other — as it has more options.

     


    Save as Other:
     


    You can use the tools such as Organize Pages to make it single pages or organizing the pages

    ​​​​​​​

     

    Translate
    m
    Todd_Morgan
    Legend
    Nov 27, 2026 12:24 PM UTC

    Yes. As noted below, there are workarounds. I don’t want workarounds anymore… for a DOCUMENT HANDLING APP Acrobat is lacking in a main feature that has been requested for over a decade...

    Translate
    Anand Sri Bhattacharya
    Community Manager
    Community Manager
    Nov 26, 2026 6:38 PM UTC

    Hello @Todd_Morgan,


    I hope you are doing well, and thanks for reaching out. Sorry for any trouble.


    Having Current page, Selected pages, and All pages options directly in the export dialogue would make this workflow more convenient. You can file a feature request with the product team using the Acrobat Wish form: https://adobe.ly/4eThgn2


    As a workaround in Acrobat’s desktop app, you can extract the pages first and then export them to a supported format:

    1. Open your PDF and go to All tools > Organize pages.

    2. Select the page or pages you need, then choose Extract pages.

    3. Leave Delete pages after extracting unchecked to preserve your original document. Leave Extract pages as separate files unchecked if you want the selected pages together in one PDF.

    4. Export the newly created PDF to your preferred supported format.

    For more details, please check this article: https://adobe.ly/4tkLrt0


    I hope this helps, and please reach out if you have any questions.

    Regards,

    Anand Sri.

    Translate
    Todd_Morgan
    Legend
    Nov 26, 2026 6:41 PM UTC

    Yes well aware of this workaround and have been asking for this option for years - but hey, why would Adobe listen to its users?? 

    Translate
    Anand Sri Bhattacharya
    Community Manager
    Community Manager
    Nov 26, 2026 6:50 PM UTC

    Hi ​@Todd_Morgan 

     

    Please use the UserVoice link to submit your request. If you already have one, please share the details with me, and I will check internally about its status and planning. Currently, I do not have a confirmed update or timeline to share when this feature will be included.

     

    Regards,

    Anand Sri.

    Translate