Export single page PDF, with page number of name

Not sure if this is better done in InDesign or Acrobat, I start here.

I have a 100 page document. I need each page to a separate PDF file. However, I need the PDF files for the number of page. My page numbers for this document, begin with 3781, so the first page should be 3781.pdf (not my [document] _1.pdf)

I think a script is the best way?

Thank you

Lisa

cdflash wrote: [...]

@ Jongware

a script would however be AWESOME!

Really, it is trivial. Fill out your Preset favourite in the first line and your export path in the 2nd, and you're ready to go.

var pdfPreset = "[Press Quality]";
var exportPath = "/c/temp";
for (aPage=0; aPage < app.activeDocument.pages.length; aPage++)
{
app.pdfExportPreferences.pageRange = app.activeDocument.pages[aPage].name;
app.activeDocument.exportFile (ExportFormat.PDF_TYPE, File(exportPath+"/"+app.activeDocument.pages[aPage].name+".pdf"), false, pdfPreset);
}

Tags: InDesign

Similar Questions

  • Script Export single Pages with the name and file custom paragraph Style?

    I have a document called "mydocument".

    I have a several pages in the document.

    Each page has a title of"style with a stylesheet called point title.

    I need to export each page as individual .jpg with a custom file name

    myDocument-01 - title.jpg

    01 is the page number

    Seemed like a simple request... but it turns out that it's a little challenging.

    This scipt below, that I found on another thread a little work

    It gives me a

    Title1.jpg

    But I can't figure out how...

    1. Add the name of "mydocument".

    2. have a 0 on the 1-digit numbers

    Can someone please guide me, I would be eternally grateful.

    if (app.documents.length != 0) {
         var myDoc = app.activeDocument;
        MakeJPEGfile();
    }
    else{  
         alert("Please open a document and try again.");  
    } 
    
    
    function MakeJPEGfile() { 
    
    
    
    
    
    
         for(var myCounter = 0; myCounter < myDoc.pages.length; myCounter++) {
    
              if (myDoc.pages.item(myCounter).appliedSection.name != "") {
                   myDoc.pages.item(myCounter).appliedSection.name = "";
              }
                
                var myPageName = myDoc.pages.item(myCounter).name;
              var myJpegPrefix = "";
              var isStyleExist = true;
    
              //Checking the existing of the paragraph style (filename)
              try {
                  myDoc.paragraphStyles.item("title");
              }
              catch (myError) {
                  isStyleExist = false;
              }
    
              if (isStyleExist)
    
    
              myJpegPrefix = getParagraphContent(myDoc.paragraphStyles.item("title"), myDoc.pages.item(myCounter)) + myPageName;
              app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high; // low medium high maximum
              app.jpegExportPreferences.exportResolution = 72;
              app.jpegExportPreferences.jpegExportRange = ExportRangeOrAllPages.exportRange;
              app.jpegExportPreferences.pageString = myPageName;
    
    
              var myFilePath = "~/-client/JOYS - Just Organize Your Stuff/-Art/-art-book-kindle/" + myJpegPrefix + ".jpg";
              var myFile = new File(myFilePath);
              myDoc.exportFile(ExportFormat.jpg, myFile, false);
         }
    }
    
    
    // The new function, but needs to add checking the file name rules.
    
    
    function getParagraphContent (paragraphStyle, currentPage)
    {
        var paragraphContent = null;
        for (var c = 0; c < currentPage.textFrames.length; c++)
        {
            for (var i = 0; i < currentPage.textFrames.item(c).paragraphs.length; i++)
            {
                if (currentPage.textFrames.item(c).paragraphs.item(i).appliedParagraphStyle == paragraphStyle)
                {
                    paragraphContent = currentPage.textFrames.item(c).paragraphs.item(i).contents;
       // Remove spaces and returns at the end:
                    paragraphContent = paragraphContent.replace(/\s+$/, '');
       // Replace remaining spaces with hyphen:
                    paragraphContent = paragraphContent.replace(/\s+/g, '-');
       // Make lowercase:
                    paragraphContent = paragraphContent.toLowerCase();
                    return paragraphContent;
                }
            }
        }
        return paragraphContent;
    }
    
    

    Thank you Mi!

    One more step.

    I just need to remove the extension .indd.

    My file name is now

    myDocument.indd - 01 - title.jpg

    If (app.documents.length! = 0) {}

    myDoc var = app.activeDocument;

    MakeJPEGfile();

    }

    else {}

    Alert ("Please open a document and try again.");

    }

    function MakeJPEGfile() {}

    for (var myCounter = 0; myCounter< mydoc.pages.length;="" mycounter++)="">

    If (. appliedSection.name myDoc.pages.item (myCounter)! = "") {}

    myDoc.pages.item (myCounter).appliedSection.name = "";

    }

    var myPageName = myDoc.pages.item (myCounter) .name;

    var myJpegPrefix = "";

    var isStyleExist = true;

    Audit of the existing paragraph style (filename)

    try {}

    myDoc.paragraphStyles.item ("title");

    }

    {} catch (MonErreur)

    isStyleExist = false;

    }

    If (isStyleExist)

    myJpegPrefix = getParagraphContent (myDoc.paragraphStyles.item ("title"), myDoc.pages.item (myCounter)) + '-0 "+ myPageName;

    app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high; low medium high maximum

    app.jpegExportPreferences.exportResolution = 72;

    app.jpegExportPreferences.jpegExportRange = ExportRangeOrAllPages.exportRange;

    app.jpegExportPreferences.pageString = myPageName;

    var CheminMonFichier = "" ~/-client/JOYS - just organize your Stuff Art / /-art-book-kindle / "+" / "+ myDoc.name +"-"+ myJpegPrefix +".jpg";

    var myFile = new File (myFilePath);

    myDoc.exportFile (ExportFormat.jpg, myFile, false);

    }

    }

    The new feature, but it will add filename rules checking.

    function getParagraphContent (paragraphStyle, currentPage)

    {

    var paragraphContent = null;

    for (var c = 0; c)< currentpage.textframes.length;="">

    {

    for (var i = 0; i)< currentpage.textframes.item(c).paragraphs.length;="">

    {

    If (currentPage.textFrames.item (c).paragraphs.item (i) .appliedParagraphStyle is paragraphStyle)

    {

    paragraphContent = currentPage.textFrames.item (c).paragraphs.item (i) .silence;

    Remove the spaces and returns at the end:

    paragraphContent = paragraphContent.replace (/ \s+$ /, ");

    Replace the remaining spaces with hyphen:

    paragraphContent = paragraphContent.replace (/ \s + / g, '-');

    Make lowercase:

    paragraphContent = paragraphContent.toLowerCase ();

    Return paragraphContent;

    }

    }

    }

    Return paragraphContent;

    }

  • iTunes search power of Podcasts with a number of names

    I want to create a new podcast. Everything is going very well at the moment, but I'm afraid that the name of the podcast will be not available in iTunes. It's "64 4 64." I am not against the change to "Sixty to sixty", but it's a bit heavy can someone help me with this?

    Where a podcast has numbers and letters in the title (for example, 50 years of...) ") you can search with success on only the numbers (to bring up in this case everything with"50"in the title) so I don't see why you shouldn't be able to find your own." I should go for it; You can if necessary change the title, once it's in the store, but I don't think that it will arise - you should know that once a podcast has appeared it may take a few days before the search because it will work, so don't panic if it does not work at first.

  • Cannot export a page in a document of six pages in pdf format

    I have a document 6 pages created in an earlier version of In Design I have updated and now want to export single pages in pdf format. However, under file / export, after stating the name of the file and clicking on the Save BUTTON in the window export to Adobe PDF, I can "Select all" or "Beach" on the PAGES but gout options against the "Range" are only "all pages" or "A4 V.

    Usually, this is where I would choose the number of the page I want to choose, but I can't do it-only given two options.

    How can I change the drop-down menu for a box of simple manual entry?

    Jacqui

    PS Please understand that I am a user in Design V3 and before that Pagemaker 6.5, so I am a novice in the CC of design. This document has no pages masters, nor a model - but are they necessary? Someone suggested that I need to check my master pages and assign a new model to the pages...

    You should be able to click on A4V and enter your page range.

  • How to display the watermark to each page number?

    Hello.

    app.documents.item(0).watermarkPreferences.watermarkText = "page";
    app.documents.item(0).watermarkPreferences.watermarkVisibility = true;
    
    

    These are all same watermark settings.

    It is impossible to set a nonzero value of the element.

    I want to display the watermark to each page number.

    If there is no way, I want to create this similar feature.

    Any ideas?

    And please tell me if the function already exists.

    Thank you.

    I think I know what you want.

    You need a different watermark to each page of a document.

    Which seems not be possible since watermarkPreference is not a preference of page but a preference document.

    If you need this for the PDF export for example, you can export single pages in single PDF files and change the watermarkText according to the name of the page you are currently exporting.

    After the export of all pages you could assemble in Acrobat Pro. Or place them in InDesign page-by-page and export again to a multipage PDF document.

    // ExportPages-ChangeWatermarkForEveryPage.jsx
    // Uwe Laubender
    
    /**
    * @@@BUILDINFO@@@ ExportPages-ChangeWatermarkForEveryPage.jsx !Version! Mon Dec 14 2015 20:28:23 GMT+0100
    */
    
    var doc = app.documents[0];
    var pages = doc.pages.everyItem().getElements();
    
    // You can also assign a preset by its name
    // For simplicity here the second preset listed in assigned:
    var pdfExportPreset = app.pdfExportPresets[1];
    
    // Loop through all the pages:
    
    for(var n=0;n
    

    Hope, that helps.

    Uwe

  • Export PDFs single page with the name of the page

    I was looking for a script that:

    -exports all the pages of an indesign file to PDF separate single page (or other file types)

    -names, the pdf file with the name of a page-> This is the hardest to find part

    The reason why I could use it: I have a file of 200 + page with productspecs. I would like to export all pages with the software "productName" correct. (extraction of a PDF file in acrobat is not a problem, but then I have to rename all the files manually)

    I do not know how to name pages, because it is not a function in indesign. Ideal would be to be able to 'say' indesign: this textframe = the name of the page, then it would be not necessary to label the page separately.

    I'm not a writer. I searched the forum and found some info on this already, but not a working including automatic pagenaming script.

    I found an old post where someone points to such a script, but I'm not:

    http://www.techplex.NET/postsm40018_possible-to-name-pages.html#post40018

    Do you have someone at - it never/found/used such a script?

    (btw, a similar script for illustrator work plans would be very useful also!)

    Any help is appreciated!

    Zanelli Scott made a years. did a fantastic job.

    http://InDesignSecrets.com/page-exporter-utility-Peu-5-script-updated-for-CS3.php

    Loïc Aigon wrote a...

    http://www.loicaigon.com/blog/?p=876

    regarding work plans illustrator... don't know - have a look at the forum of illustrator scripts.

  • Export a document multi-page of InDesign to PDF single page but with unique filenames using scripts

    Hello

    I use InDesign 5.5.

    My goal is to export an InDesign MultiPage as single page PDF files, but every single PDF must be named uniquely.

    For example;

    InDesignFileName_487275123.00.pdf

    InDesignFileName_734876882.00.pdf

    .. and so on.

    I spent a lot of time searching online and the closest I found is the software called exit factory that works very well.

    Factory works by placing a title of script in a textframe on the master page in InDesign. Then everything that is typed in the text on each of the separate pages block sets the file name of each separate page.

    However if I can solve this problem without any investment cost my boss will be very happy

    I found PEU5 that works very well for export as single pages, now it's name every single PDF, but I don't know anything that would you like to create a script, but I get the gist of what they are doing. I understand that a script could solve the second half of my problem.

    Can anyone help?

    Thank you.

    S

    Maye it works for you:

    http://www.kahrel.plus.com/InDesign/pdf_individuals.html

    Peter

  • with the master page "insert current page number" error when you export the book

    Using InDesign CS for Windows 5.5

    Recently updated for InDesign CS (very old one from 2003). I save a copy of all my old files version and kept the old installed ID just in case (after reading all the horror stories on here).

    In my old version of ID, I created a book consisting of some 70 documents. Some of these documents are a single page, while others have multiple pages. In the multiple documents page, I used the "insert... current page number" character (or whatever the command was in the old version) on a page master and formatted as follows, for example: Page 1 of 17, Page 2 of 17, Page 3 of 17, etc. When I exported my book in pdf format, it worked fine. (I is not have to / want page numbers consecutive throughout the book, only in individual documents.) By that I mean my whole book is about 280 pages, but not all of these 280 pages are numbered, only groups of pages in multi-page documents. It is not read page 1-280).

    Am my upgrade to 5.5 a few months ago added some documents in the book, and (if I remember correctly) when I saved the book he asked to convert each document version to the new version, I said OK. When I exported the book in pdf format, some documents that are more than 2 pages are now counted wrong; the numbers are now like this: Page 1 of 17, Page 2 of 17, Page 2 of 17 (supposed to be page 3), Page 2 of 17 (supposed to be page 4), etc. Each page, but page 1 is now page 2 of that either.

    If I open the individual document and export it to PDF, the page numbers work very well. It is only when the document is exported with the book the page numbers to spoil. And it's not all documents in my book; This error starts to a particular document and continues from there throughout the rest of the book, affecting any document more than 2 pages. Documents several pages before that point in the book for export with the correct page numbers.

    I create new documents by performing a "save under" with a previously created document and cut and paste as needed, so I won't have to reformat or implement the page numbers on each new document. I use layers or styles (I do not know there is a better way to do what I need, but I didn't have time to learn the basics, just enough to be functional.)

    My attempts to resolve this problem so far (using version 5.5), tests with the first document where the error: (1) I have removed the document from the book, removed the page number character current insert, back to the current page number character insert, saved, the individual document exported in pdf format and it worked fine. Put it in the book, save, export, and it is bad. (2) I picked up the book document, export the document to .idml, registered as a new .indd new name, exported to PDF and it worked fine. Put it in the book, save, export, and it is bad. (3) I started to the top of my old version of ID, open from the previous version of this document, exported .inx, closed, open the .inx in ID 5.5, registered as a new .indd new name, exported to PDF and it worked fine. Put it in the book, save, export, and it is bad. (4) I moved the document to the top in the order book, put it on a document which correctly numbered pages, saved, exported to PDF and this document was still evil, but one who has been numbered correctly all along is still correct. (5) I compared the settings for this document to others that the number properly and found no difference.

    It's as if the page numbers get hooked on "2" when I export the book, but only in the last two-thirds of the book. Sorry this is so long, but I hope that this description of my problem is understandable. Any advice, other than to go back to my old version documents and start over?

    Thank you for your time and all the information great this forum provides.

    Alice

    Normally, I would say that this kind of problem is symptomatic of the incorrect numbering options in the book panel or an individual document or a bad update of the numbering, and those things are still definitely worth looking at.

    That said, I invite you to go to the original files, export each one to .inx and open those in CS5.5 and save as a new file .indd CS5.5 whose new name, then add them to a whole new book CS5.5. Books are pretty flakey without mixture in the conversion of files, and there are enough bad behvior file conversion directly inherited the .inx route is insurance a little success.

  • ID CS5.5 export interactive PDF as single pages, no spreads

    I read the instructions wrong? I have a 116 page book. When I export to PDF for printing, it exports correctly, showing a page at a time. When I export to interactive PDF, pages come out as single large pages, and I find myself with a book of 58 pages in landscape format. I tried all the settings. Yes, I chose 'single page' in the area of the layout (if I select 'Two up', I find myself with 4 pages on the screen).

    Advice? I don't know I'm missing something obvious. Thank you.

    What attracts almost everyone by surprise. It's actually by design, but judging by the posts here not necessarily the best design decision. There are two ways to address this via script. Active / disables the export function extends offshore for interactive PDF export (see Interactive PDF from InDesign CS5 always a extends on |) InDesignSecrets).

    Another method is to divide the "spreads" before exporting it ("see InDesignSecrets" Blog Archive"Breaking Pages Apart to bleed off the coast a thorn and http://www.printisrael.com/indesign/scripts/freeware/SeparatePages.jsx).

    Make sure you read all the comments in the two articles. If you are unsure how to install a script, see How to install scripts in InDesign | InDesignSecrets

  • How to split a PDF file with pages to single pages spread?

    Hello

    We received a little booklet from a client wich no spread pages (sorry if this is the wrong term, I mean to and for pages like the 2 and 3 were merged to a page in the PDF file).  Our printer does not spread pages accept what we had to do were to do a 40 page document in InDesign with facing pages, then place pages from the upper left corner of the pages even if it "stretched" in the next few pages.  Then we could just export ourselves and get the pages as single pages.

    My question is: are there at - it a way to make it fast and easy in Acrobat (or if not possible InDesign in Acrobat)? With a clever solution or maybe a script? :...

    We were lucky because the brochure contained only 40 pages, but what happens if someone sent us a record of 400 pages, it would take a lot of time. I read somewhere that you can duplicate each page and then harvest by hand, but which will not be effective or accurate, nor time.

    Thanks in advance for any help

    As you only need the PDF for printing, you can refry it in Acrobat format (not something we generally advise but in this case...)

    Open the Acrobat print dialog box, and then select the Adobe PDF printer. Click Properties, make sure that you use a print setting high quality and the right destination paper size (for example to portrait A4 if your original has spread A3).

    Under management of the Page, choose "All the pages of tiles", 100% scale and zero overlap. Uncheck the marks and labels and print the file to a new PDF. You will lose any layers, forms, scripts etc. but you their lost anyway with your inDesign workaround. Be sure to check that the fonts are embedded in the final document if you print via a commercial SCAM.

    Note that if the PDF is secured to prevent changes / page extraction, the choice of tile on the handling of the print dialog Page list is unavailable even if the PDF file has permissions to print - Acrobat must play the content on the page to perform arrangements of the 'mosaic', as some page objects will cross the line of cut It has an unsecured file to work on.

  • Delete a single Page of large number of files PDF

    I need to remove a single page of a large number of PDF files. The page number is not the same in each PDF, however, the text of the page is the same and is OCR' ed. So is it possible to do using Acrobat, script, or other product?

    It is possible to do it with a custom script.

  • Script that current subtract page number two AND export two separate PDF files you have a problem

    Hello

    OBS: The InDesign CS3 script!

    Ronald63 and Laubender helped me with this script:

    // Number to decrement:
    var nDecrement = 2;
    
    // pageNumberStart for a section is only valid, when continueNumbering is set to false
    app.documents[0].sections[0].continueNumbering = false;
    var myCurrentNumber = app.documents[0].sections[0].pageNumberStart;
    
    if(myCurrentNumber>nDecrement+1)
    {
        app.documents[0].sections[0].pageNumberStart = myCurrentNumber - nDecrement
    };
    
    var doc = app.activeDocument; 
    var _PDFExportPreset = app.pdfExportPresets.item('MyDocumentProfile');
    var _DocName = doc.name.replace(/\.indd/, ""); 
    var _EndNumber = parseInt(_DocName.match(/\d{3}$/),10); /* extract end number */
    /* test if is a number */
    if (isNaN(_EndNumber)){
        alert('End document name is not a number');
        exit();
    }
    
    for(i = 0; i < doc.pages.length; i++){ 
        _PageName = doc.pages.item(i).name; 
        app.pdfExportPreferences.pageRange = _PageName;     
        _NewNumber = _EndNumber + i; /* incresase number */
        _NewNumber = ("00"+_NewNumber).slice(-3); /* padding */
        _DocName = _DocName.replace(/\d{3}$/,_NewNumber); /* replace number in doc name */
        _PDFfile = new File('\\\\testserver\\'.concat(_DocName,'.pdf'));
        doc.exportFile(ExportFormat.pdfType, _PDFfile, false, _PDFExportPreset);
    }
    

    He has a problem when I have two pages with a container framework that cross the two pages:

    Udklip.PNG

    When I run the script, I get this result:

    Udklip.PNG

    An empty page and the frame with the content is on the other page outside the PB.

    If I delete this part of the script:

    // Number to decrement:
    var nDecrement = 2;
    
    // pageNumberStart for a section is only valid, when continueNumbering is set to false
    app.documents[0].sections[0].continueNumbering = false;
    var myCurrentNumber = app.documents[0].sections[0].pageNumberStart;
    
    if(myCurrentNumber>nDecrement+1)
    {
        app.documents[0].sections[0].pageNumberStart = myCurrentNumber - nDecrement
    };
    

    Then it works very well

    What Miss me?

    Hello

    Add: located in front of the pages in the document preferences

    Try this...

    var doc = app.activeDocument;
    // Number to decrement:
    var nDecrement = 2;
    // set facingPages
    doc.documentPreferences.facingPages = true;
    // pageNumberStart for a section is only valid, when continueNumbering is set to false
    doc.sections[0].continueNumbering = false;
    var myCurrentNumber = doc.sections[0].pageNumberStart;
    
    if(myCurrentNumber>nDecrement+1){
        doc.sections[0].pageNumberStart = myCurrentNumber - nDecrement;
    }
    
    var _PDFExportPreset = app.pdfExportPresets.item('MyDocumentProfile');
    var _DocName = doc.name.replace(/\.indd/, "");
    var _EndNumber = parseInt(_DocName.match(/\d{3}$/),10); /* extract end number */
    /* test if is a number */
    if (isNaN(_EndNumber)){
        alert('End document name is not a number');
        exit();
    }
    
    for(i = 0; i < doc.pages.length; i++){
        _PageName = doc.pages.item(i).name;
        app.pdfExportPreferences.pageRange = _PageName;
        _NewNumber = _EndNumber + i; /* incresase number */
        _NewNumber = ("00"+_NewNumber).slice(-3); /* padding */
        _DocName = _DocName.replace(/\d{3}$/,_NewNumber); /* replace number in doc name */
        _PDFfile = new File('\\\\testserver\\'.concat(_DocName,'.pdf'));
        doc.exportFile(ExportFormat.pdfType, _PDFfile, false, _PDFExportPreset);
    }
    
  • Someone help with the export of a book cover of three pages on a single page for CreateSpace?

    Hello

    Can someone help me to export a book cover of three pages in PDF single page InDesign? It has exported to PDF in three separate pages, probably because I created my document in the form of three pages originally .indd. I tried to load the PDF for CreateSpace but he rejects it as he wants as a page.

    I really hope this is easily fixed as I can't bear the thought of go everywhere.

    I would be very grateful for a quick answer because I'm going on vacation in 48 hours...

    Thank you

    Sean

    PS - Thanks to Peter Spier for answering a previous question a few weeks; For some reason, I couldn't answer (say thank you). 'No available actions' was the message, or something in that sense.

    Is it set up as a page three in the ID? If so, check the double option during export.

  • With adobe export how to convert PPT to pdf with notes pages it only makes the slides

    With adobe export how to convert PPT to pdf with notes pages it only makes the slides

    Hi Robert,.

    We understand your problem, but with the subscription online, we can only convert the slides in PDF format. Speaker's notes would not get converted to PDF.

    If you want to convert the speaker notes with slides, then you need to buy the complete PDF solution: Adobe Acrobat

    Hope that answers your question. I would like to know if you have any other questions.

    Kind regards

    ~ Dominique

  • How to combine several single pdf files into a single PDF with multiple pages?

    How to combine several single page pdf files into a PDF file with multiple pages?

    Hi Sandra,.

    You have ExportPDF subscription to Adobe not associating the files for you. It is only used to convert PDFS into different formats.

    To combine PDF you could to buy the different subscription: Pack PDF

    Let me know if you have any questions

    Kind regards

    ~ Dominique

Maybe you are looking for

  • HP Deskjet 3050 J610 series

    I got a new computer and now I can't print from it.  8 Dell Windows

  • is there a system "see" wire for internet tv.

    technological updating, as [msnbc-news]; a system of "thread" It takes to internet tv. for help in watching streaming videos. Windows Media Center has the most need for the best "in streaming". LV

  • How to restore a flashdrive with its original files that have been replaced or removed?

    Original title: how to restore a flashdrive with its original files?  I accidentally replaced a file with an earlier version of this file. Missing file

  • ENVY 7645: printers

    Well, this should be easy to answer, but so far HP has not been able to help. When I plugged my printer I threw the adapter two 4 sons. The printer will receive faxes, but not to send them without this adapter. All I want to know is where to buy one

  • compatibility of service

    The feature of report of problems in the Control Panel indicates a problem of compatibility with a bluetooth service.  Have stopped all the bluetooth services that emerged since the problem always causes the machine to lock up.  downloaded a microsof