Extract pages to separate pdf files (something wrong with loop?)

Please check following code.

Acrobat makes copies of the original file with all pages in each new files generated instead of the extracted pages right (example: filename_page_2.pdf should be page 2 of the original pdf).

Another issue is that now when the script is running, which is at the end of the batch that acrobat asks to save the original file

What I am doing wrong?

/ * Extract Pages to the file * /.


var re = /. * \/|\.pdf$/ig;


var filename = this.path.replace(re,"");
var lastPage = this.numPages - 1;

{
for (var i = 0;  I < this.numPages;. i++ )
this.extractPages
({
Start: 0,
nEnd: lastPage.
cPath: filename + "_page_" + (i + 1) + ".pdf".
});
};

Start must be, not 0.

Tags: Acrobat

Similar Questions

  • Script that export two separate PDF files of paper with two pages AND change the name of the file, the number two of the PDF

    OBS: Script InDesign CS3:

    I have a document with two pages but a file name!

    I need a script which

    1 export the two pages in format PDF separated two - so NOT a single PDF file with two pages but two PDF files

    2. the first PDF file must have the same name as the document - for example .indd13ESW110020216TC0-> ESW110020216TC013.pdf

    3. the second PDF file will be added to the last number - so .indd14ESW110020216TC0-> ESW110020216TC014.pdf

    Is it possible to integrate this script:

    var doc = app.activeDocument;  
    var _PDFfile = new File('\\\\testserver\\' + app.activeDocument.name.replace (/\.indd$/, '.pdf'));  
      
    var _PDFExportPreset = app.pdfExportPresets.item('MyPdfSetting');   
    if (_PDFExportPreset == null){  
       alert('PDF Export Presets not found');  
       exit();  
        }    
        app.pdfExportPreferences.pageRange = PageRange.ALL_PAGES;                      
        doc.exportFile(ExportFormat.pdfType, _PDFfile, false,_PDFExportPreset);  
    

    Hello

    Try this...

  • saving a multi-page pain-file to separate .pdf files

    How to save a multi-page pain to several .pdf files file, so that each page is saved in a file separate .pdf instead of all pages in one. - multiple page pdf file, please?

    There no option to save the batch job plans as a separate single-page pdf. I suggest you save it as a pdf from multiple page Adobe Acrobat file, you can select all pages and right-click "extract pages...". ", and then check the box"Extract pages as separate files"and you will get exactly what you want:

    I hope that helps you.

  • M525 scanning of pages in separate PDFs (PDF Split)

    Hello. Y at - it a way to get this simple functionality of M525 MFP:
    Often, we need to analyze piles of paper documents, each sheet in separate pdf file loader. Simple as that.

    Preview option has all the bells-and-whistles (rotation, shuffle pages, combining jobs, etc.). But no just no option - to divide each page into a separate file.

    Is this possible?

    Have not found in the user manuals, or search the Internet. PDF, A - PDF - no difference.

    Scanning in jpeg - not an option.

    Scanning a single file, then using additional pdf splitting SW on PC - solution we use, but would like to get rid of it.

    HP FutureSmart 3 (3.2.3), FW Rev 2302786_433717 DateCode: 20140321

    A neat trick in Wikipedia (about OXP): http://en.wikipedia.org/wiki/File:HP_OXP_Image_Preview.png

    Icon seems to be similar to what it takes. It is externally developed OXP solution?

    All ideas are welcome.

    Solved! Finally!

    Feature available with the new firmware (HP FutureSmart 3.2.7, 2302963_436069, July 31, 2014)

    ReadMe: the possibility to choose the number of pages in the PDF file when scanning through ADF MTIFF is added to the settings file

    Download available to the product support page.

  • How to export multiple layers to separate PDF files?

    I just upgraded from Mavericks to Yosemite and all my CC Adobe until 2015. So far I love it, but I have a nagging problem: export layers to separate PDF files.

    My file has 38 layers, each of them must be separated in PDF format, so I use the script that is embedded in SaveDocsAsPDFs. The first time I run it, it ends up split on most files, but not all, so I thought I'd run it once again: no chance. Whenever I run the present, he eventually put all the active layers in a pdf from single page instead of save them as individual PDF files. I've spent the better part of two hours online hunting and are all I can find third-party scripts that actually do what I need, rather than use the builtin scripts.

    Is there a way someone can help me with this problem? I'll have much, much more files like that and I would use the original if possible script. It is everything on a Mac. Specs below.

    Mac Pro

    Quad-Core Intel Xeon

    3.2 GHz

    32 GB

    The SaveDocsAsPDFs allows to save multiple documents open simultaneously in artificial intelligence to separate files. He doesn't have layers in separate documents. You can use one of the scripts that you got to do what you want.

  • I have a question about the time machine. I recently updated my Quicken 2015 and there was something wrong with the update. Can I go back in just the Quicken file and restore it until I downloaded the update do I have to restore the entire

    I have a question about the time machine. I recently updated my Quicken 2015 and there was something wrong with the update. Can I come back in all the Quicken file and restore from time Machine before I downloaded the update to do, I need to restore the entire computer?

    Yes, you can just restore this file or application. Use Time Machine to back up or restore your Mac - Apple Support

  • How to scan multiple pages to a pdf file using the PIXMA MG7520 on Windows 8.0? Help, please!

    I recently got a PIXMA MG7520 for a gift.  It works very well with my laptop / Tablet lenovo under Windos 8.0.  The only downside for the HP all-in-one it replaced is that she doesn't have an ADF.  That being said, there must be a way to scan multiple pages into a pdf file.  I need help to understand the thing.  Thanks in advance!

    Hi mdtolbert54,

    There is a program that comes with the printer called the IJ Scan Utility that can help you with scanning multiple pages in a single PDF document.  To do this, please follow these steps:

    1. on your keyboard, press the Windows key.

    2 start typing IJ SCAN UTILITY. The search window opens while you type. Once the UTILITY SCAN IJ is displayed, select and open it.

    3. in the Scan from Canon IJ utility window that opens, click SETTINGS... at the bottom right of the window. The settings dialog box is displayed.

    4. click on the SCAN of DOCUMENT option in the left pane of the window.

    5. in the SAVE the SETTINGS in the window section, you select the recording format and the location of the document you are about to analysis.

    (a.) in the FILE NAME field, specify the name you want to give the file. By default, the file name will begin with IMG; You can remove IMG and change it to anything you want to name the file.

    b.) b.) in the field of DATA FORMAT, use the arrow menu drop-down to select PDF (Multiple Pages).

    (c.) in the field RECORD in, please go to the area where you want the file to be saved once it is scanned in. By default, the file will be saved in the MY DOCUMENTS folder.

    6. once all settings have been selected, click on the OK button at the bottom of the window to save the changes. The IJ Scan Utility main screen is displayed.

    7. click the DOCUMENT button. Housing starts scanning. Click CANCEL to cancel the scan if necessary. Scanned documents are saved in the location of the selected folder previously specified in the SETTINGS... window.

    If you find that you need to analysis advanced options such as setting resolution, brightness, contrast, saturation, balance colors, etc. in addition to the options selected above, please click the SCANGEAR button on the utility main screen Scan of IJ, then adjust the necessary elements.

    Once the above parameters are set for the scanning of documents, in the future, you need only launch the utility of digitization of IJ, then press the PAPER button for the analysis (unless you want to make changes to the settings).

    I hope this helps!

    It has not responded to your question or problem? Please call or write us using one of the methods on the page contact us for further assistance.

  • does anyone know how to open 2 separate PDF files so that they can be viewed alongside?

    does anyone know how to open 2 separate PDF files so that they can be viewed alongside?

    Hi ihorm29887441,

    Try to uncheck the "documents open as tabs in the same window" under "Edit > preferences > General".

    Then restart the player.

    Let me know if it works for you.

    Kind regards

    Meenakshi

  • How to extract pages from a large file?

    How to extract pages from a large file?

    Free Adobe Acrobat Reader cannot extract pages. This would require the purchase of the full version of Adobe Acrobat.

  • A script that will count the total number of pages into multiple PDF files in a batch file?

    Is there a script I can use ExtendScript Toolkit that will count the total number of pages into multiple PDF files in a batch file?

    In another discussion I showed a JavaScript that you can use to write the number of pages to the console in a batch sequence. You would do exactly the same thing in Action, so the action would consist of a simple JavaScript (more tools > run JavaScript) which includes the code.

  • How you can delete a blank page of a pdf file by using Adobe Pro DC?

    How you can delete a blank page of a pdf file by using Adobe Pro DC?

    In the navigation Pages panel select the page and press the delete key.

  • Adobe Acrobat allows you to insert pages in a PDF file will be.

    Adobe Acrobat allows you to insert pages in a PDF file will be.

    Yes, Acrobat will be repeated. (A different PDF pages, with the same limitations).

  • I have a document composed of separate PDF files that reside in a folder and are related to each other through hyperlinks. Each pdf file is set to open with bookmarks displayed, however if I have a link to a PDF file to another and use the button "Previou

    I have a document composed of separate PDF files that reside in a folder and are related to each other through hyperlinks. Each pdf file is configurΘ for dΘmarrer with bookmarks displayed, however if I have a link to one PDF file to another and use the "back" button to return to my starting point bookmarks are replaced by "vignette". Is there anyway to prevent this?

    Hi Mike,.

    While the implementation of the links, if you choose to open the file in a new window then you will not experience this issue, then you can simply switch to the file view and previous bookmark will remain as it is.

    Is that what helps with your query?

    Kind regards
    Rahul

  • How can I delete pages from a pdf file

    How can I delete pages from a pdf file

    Hi question renna,.

    To remove the pages of a PDF file, you must use Acrobat (choose Remove in the Pages pane on the tools Panel). If you do not have Acrobat, you can try it free for 30 days. See www.adobe.com/products/acrobat.html for more information.

    Best,

    Sara

  • How to copy a page of a PDF file?

    How can I copy and save just one page, if a PDF file?

    Hi fed,

    To retrieve a page of a PDF document, you must use Acrobat. If you do not have Acrobat, you can try it free for 30 days. For more information, see www.adobe.com/products/acrobat.html.

    Best,

    Sara

Maybe you are looking for