Script to extract pages with comments

I know that what I would like to do is probably quite simple. I'm trying to automatically take a source document, and extract all pages with comments to a new document.  Ideally, I would have multiple versions of this script for different purposes.  I used to be a business analyst years ago, but it's been years since I've written any code, and even back then I used SQL almost exclusively--it's been about 12 years since I've written any code other than SQL queries, and back then it was highschool projects written in C++ before OOP was really a big thing.  I'd attempt to read documentation myself and figure it out, but I really don't even know where to start -- my CS knowledge at this point is pretty much only conceptual.  Whenever I have a similar VBscript problem using MS software, usually all I do is find an existing function and modify one or two lines to meet my needs, so I've never really had to learn how the scripts I've used work.  I just tinker with existing stuff to get what I need.  My past coding experience does give me an idea is to the general algorithm that I think would work.  To show that I really tried with this one, I paste my guess as to how I would code this below: 
1)     Create For loop for source doc.
2)     Create FOR loop for new doc
3)     Analyze page in source doc
4)     IF source page has any comments or highlighting THEN somehow note that page and increment "new doc" counter
5)     Increment source doc counter
6)     Repeat 3-5 until all pages in source doc have been analyzed
7)     Create new file
8)     Extract pages noted during step 4 to new file.
If someone could help me create the above script, I would probably be smart enough to get it to meet my needs.  What I'd really like are two versions of that script.  If asking for the community to simply provide me with code is not a cool thing to do, could someone link me to a good tutorial and/or existing scripts so I could try and figure it out myself?
1)     One that extracts only pages with text comments (using the typewriter tool).
2)     One that extracts pages with highlights or text comments.

In the second to last line of my OP I meant "using the 'Add text comment' tool" not "using the typewriter tool".

Similar Messages

  • How can I extract page with showing the e-sign signatures?

    How can I extract page with showing the e-sign signatures? When I extract pages, the e-sign signatures are all disappear.  Or can I save the documents without verify the signatures?  When I open the documents, it need verify the signatures and then open it now.

    Hi Ada,
    The thing you have to realize is when using Acrobat or Reader to create a digital signature you are signing the whole document (all of the bytes in the document). You are not signing just the page where the signature appearance resides.
    Another thing to realize is the signature appearance (what you see on the page in the signature field) is not the signature itself. The signature proper is a block of hex encoded bytes written into the PDF file and not something you see (unless you open the file in a text editor). What you see on the page is just a graphical representation of the actual signature, but it's not the actual signature.
    When you extract a page (even if it had the signature appearance on it) it is just a sub-set of the signed bytes, and if the signature were to be extracted as well it would be invalid because the bytes in the extracted file would not match the bytes in the signature. Because the signature in the extracted document would always be invalid we just remove it.
    Steve

  • Script for extracting pages into separate documents?

    Hi,
    Using Acrobat 9 Pro on an XP machine, my job entails taking PDFs over 2000 pages long, sorting them into smaller documents based on their contents, and (once they are sorted) breaking down any documents longer than 25 pages into individual PDFs of 25 pages each. So, for instance, if I have a document of 110 pages, I end up with four 25-page documents and one 10-page document. Right now I do this by extracting pages 26-50 and deleting them from the original, then saving the extracted pages. Would it be possible to write a script that could accomplish the same end result? (I have CS4 Design Premium, so if anyone knows how to do this with another CS4 program, that would work also.)
    Thanks!

    Yes, it can done. If you want to do it yourself look in the JavaScript Reference file under the Document object, extractPages() method.

  • Adobe Acrobat X Std. How do I save modified pages with comments only?

    I have a 500 page document which I edited few pages. I was wondering if there is a way to save  (in pdf format) only the modified pages that includes the text comments + add file or pictures.
    I would appreaciate any assistance with this question.

    You'll want to ask in the forum for Acrobat. This one is for the free Reader which cannot do any of this.
    But to get you started, you can use Document>Extract pages to create a new file of the modified pages...

  • Need script to insert pages with specified master

    Several years ago, someone here (I think Dave, maybe Ole) helped me out by giving me a short script that when run added a blank page (with a specified master page different from the previous page) after each page of a document.
    I've had an emergency reformat of my system and have lost that script which I need constantly for work projects. I tried searching here, but it was before the current forum setup (I think around 2 years ago) and I can't find a way to get to the archives.
    If anyone can either provide me with the java script code for this or point me to the old messages about it, I'd be very appreciative.
    And, BTW, I am now using CS4 (though I'm sure the script I've been using was from an older version).
    Thank you.

    Aaahhh ... PageMaker scripting. Now there was a challenge -- I don't think I ever could write the thing I intended with that.
    This quick javascript works on CS, but I don't think the syntax has changed (much) for CS4. Yell if it doesn't work.
    Be sure to fill in the right 'blank page' name in the first line! That includes the prefix and the hyphen -- the script will alert you if you got it wrong
    //DESCRIPTION: Add Blank Master Page after each page
    masterPageName = "A-AddMe";
    masterPage = app.activeDocument.masterSpreads.item(masterPageName);
    if (masterPage == null)
    alert ('"'+masterPageName+'" is not a valid master...');
    exit(0);
    // Start at the end:
    currentPage = app.activeDocument.pages.length-1;
    while (currentPage >= 0)
    theNewPage = app.activeDocument.pages.add (LocationOptions.AFTER, app.activeDocument.pages[currentPage]);
    theNewPage.appliedMaster = masterPage;
    currentPage--;
    Copy, paste into a plain text editor (InDesign's ESTK is good) and save as "insertBlanksAfterAll.jsx" in your Scripts folder. When saved in the right folder, it will automatically become available in the Scripts Panel.

  • Extracting pages WITH Metadata

    The task is to see if there is a way to extract pages or make new PDF’s easily while keeping the meta data.  Example, a client has a 120 page PDF which contains 12 documents.  It’s been bates stamped.  Is there a way that they can extract and create those 12 PDFs and keep the meta data without having to re-bates stamp after extracting?
    Any help would be appreciated!
    TIA!

    I don't see bates stamps as metadata, but an addition to the page. Most methods of extracting pages should keep them. What method are you using, and what happens? How were the stamps added?

  • In Acrobat Reader for Mac is there a way to print just the page with comments?

    What I mean is with my old Acrobat Pro for Mac, if I had a PDF that was 12 pages but only had comments on 3 pages, I could get a print out of the 3 document pages and the comments for those 3 pages.
    Thanks

    Following EL will do what you want:
    #{composerContext.inEditMode}In other words, the composerContext bean is available, even in a WebCenter Portal application. If you take a look at the default template (pagetemplate_globe.jspx) that is created when you create a webcenter portal application. On line 16, you see an example of the usage.
    edit: sorry... Didn't see you meant the contribution mode...
    Edit mode is by pressing ctrl+shift+e
    ctrl+shift+c is called contribution mode...
    I just looked at the source code of the content presenter taskflow and this is what they are using to show the dotted line:
    inlineStyle="#{composerContext.subView == 'contentContribution' ? 'border:2px dashed blue' : ''}">So I guess #{composerContext.subView == 'contentContribution'} will return true if you are in contribution mode. This should work both in spaces as in framework.
    Hope this helps.
    Edited by: Yannick Ongena on Jan 25, 2012 8:10 PM

  • Acrobat 7 Extra pages with comments

    Using Acrobat 7 and adding a coment using the Text Tool.  When printing the document (14 pages) an extra page is printed after each document page. This extra page say, "No cpomment on this page." Any know how to prevent the extra pages from printing?

    Look at the options in print dialog.

  • Script for extracting multiple pages

    Hi,
    I'm working with the default "extract pages" script: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_A croJS.88.465.html
    I want to modify it to extract 2 pages at a time.  For example, say I start with a 6-page document.  I would like the script to extract pages 1,2 as one document, then pages 3,4 and 5,6.
    How would I modify the script to do this?
    Thanks!

    You could use a loop, but you don't need to for what you want. Do something like:
    // Extract first two pages to a new file
    extractPages({nStart: 0, nEnd: 1, cPath: "/F/temp/file1.pdf"});
    // Extract 3rd and 4th pages
    extractPages({nStart: 2, nEnd: 3, cPath: "/F/temp/file2.pdf"});
    // Extract fifth and sixth pages
    extractPages({nStart: 4, nEnd: 5, cPath: "/F/temp/file3.pdf"});
    Obviously, you need to change the file paths.

  • Extract Pages Action for PDFs

    Has anyone used the Extract Odd/Even Pages action for PDFs? I'm trying to use it to extract pages from a PDF and save as separate files. When I use it the action spins for a moment, says it succeeded, but I don't get any new files.

    I know of the java script method, just wondering why it can't be found as standard wizard tool ;-)
    I have a java script to extract pages.
    Is it possible to somehow create a droplet for it (as is possible with preflight profiles)?
    Thanks.

  • Action wizard extract pages

    Hey all,
    trying to extract pages with an action.
    Why is extract not visible in the pages tools to add?
    How can I accomplish this?
    Thanks.
    Regards
    Achim

    I know of the java script method, just wondering why it can't be found as standard wizard tool ;-)
    I have a java script to extract pages.
    Is it possible to somehow create a droplet for it (as is possible with preflight profiles)?
    Thanks.

  • Just had Adobe Reader 11 installed on my Mac desktop.  How do I extract pages from a PDF?

    Just had Adobe Reader 11 installed on my Mac desktop.  How do I extract pages from a PDF?

    You can extract pages with Adobe Acrobat, not Adobe Reader.

  • Print only sheets with comments

    How can I select and print only sheets with comments.  If I have a plan set that is 300 pages long and I make comments on random pages and want to select and print just those pages, how can I do that without manually searching through the document and writing them down them printing them.  The comment summary options don't help because I want to print the sheets as they are, without adding the little numbers next to them like it does. Thanks for the help!

    Marcus:
    There's no direct way to do what you want to do but there are a couple of workaround that can work.
    1 - create a book with the Yearbook theme. That will allow you to have a page of multiple photos and text underneath. Do a Print to PDF. Open the pfd file with Preview and print the individual pages you need.
    2 - create a gallery with the built in html layout or use BetterHTMLExport or Galerie to create a thumbnail page with comments. Galerie and BetterHTMLExport both have much nicer themes and layouts for you to control. Then open the gallery in Safari and print the thumbnail page.
    Do you Twango?

  • Summarize Comments or Print With Comments -- Wasting Paper

    In 6.x pro, when I would summarize (or print with) comments and connector lines on a single page, the output file (or printed output) would include only those pages with comments. In 7.0, you get a page that says "no comments on this page."
    It would be nice to have the option of not printing pages without comments. If you have a book, finding the one or two pages with comments can be a pain.

    I've developed a tool that allows a much more efficient comments summary to be created.
    Have a look here and contact me by email if you're interested in it:
    http://try67.blogspot.com/2008/11/acrobat-create-comments-summary-txt-pdf.html

  • Extract PDF pages with it's actual page numbers...

    Hi scripting gurus,
    We have more than 40 of PDF documents each document contain multiple pages. Using Acrobat Professional 7.0 and 8.0 with MAC platform. We have the script to extract the pages and to suffix running numbers with the document name, please find the script below. For example CH01.pdf document total number of pages is 10, but the actual page number starts with 11. So We have to extract each pages as individual documents and the page number will followed by document name with "_" separation, (Eg: CH01_11.pdf). I have tried so many ways to include the page numbers with the document name but i can't.
    /*Split pdf pages with pNum suffixed*/
    var rename = /.*\/|\.pdf$/ig;
    var startName = this.path.replace(rename,"");
    for (var i = 1, j = 0; j < numPages; i += 1, j += 1) {
    extractPages ({
    nStart : j,
    nEnd : j == numPages - 1 ? j : j + 0,
    cPath : "/Macintosh HD/Users/Beaconpmg/Desktop/ExtractFolder/"+startName+"_"+i+".pdf"
    So please can anyone look into this and help for me.
    Thanks in advance.
    Regards
    Thiyagu

    try67
    First of all, replace numPages with this.numPages
    Also, this doesn't make any sense:
    nEnd : i == numPages - 1
    I have tried what you have said above, but it is not working. Its showing the same error (missing ; before statement)in 4th line of the script.
    Please find the complete code below;
    // see if we need to define a global offset first file
    if(global.fPageOffset == undefined) {
    var global.fPageOffset = 10; // start at 10
    /*Split pdf pages with pNum suffixed*/
    var rename = /.*\/|\.pdf$/ig;
    var startName = this.path.replace(rename,"");
    for (var i = 0; i < this.numPages; i++) { this.extractPages ({ nStart : i, nEnd : i == this.numPages - 1 , cPath : "/Macintosh HD/Users/Beaconpmg/Desktop/ExtractFolder/" + startName + "_" + (i + global.PageOffset) + ".pdf" }); }
    // add finished file's number of pages to global page offest
    global.fPageOffest += this.numPages;
    Regards
    Thiyagu

Maybe you are looking for

  • DataGrid does not display XML data

    Hello, and thanks for reading this... I am having a problem displaying XMLList data in a DataGrid. The data is coming from a Tree control, which is receiving it from a database using HTTPService. The data is a list of "Job Orders" from a MySQL databa

  • Syncing Documents between MacBook & 1st gen iPad

    Is there any way for me to access documents on my MacBook Pro on my first generation iPad?  My MacBook came with the Preview program that allows you save highlighting...is there a similar app for iPad?

  • E-520 images still not showing up after latest RAW update.

    Hi, I did the new RAW update today, but still just blank boxes when I try to import images from my Olympus E-520. Anyone else having this problem? I'm running 10.4.11

  • Aperture - Browser, Split View, and Viewer

    Photos in my browser will not wrap around into rows. I have just one row which goes right off my screen. I also have this problem in the split view with the thumbnails. And in viewer I have no photo at all. Can anyone suggest a way to fix this proble

  • Screen Saver Names Changed to "fssx"

    I've upgraded a MBP and a G4 Al PB to 10.5 from 10.4.10. Both contained the system-supplied screen savers plus a dozen or so Flash-based 3rd party savers (and a couple of non-Flash 3rd-party savers too). On both machines after the upgrade (in place,