Link to home
Start Free TrialLog in
Avatar of Michaelwr90
Michaelwr90

asked on

Print out annotated pages only from Adobe Acrobat X

So lets say I have a 500 page document, and I annotated 30 random pages... is there anyway to print just those 30 pages?
Avatar of c1nmo
c1nmo
Flag of United Kingdom of Great Britain and Northern Ireland image

don't know of a way to do it through the ui, but it could be achieved using the acrobat sdk or 3rd party pdf sdk
Avatar of Michaelwr90
Michaelwr90

ASKER

Yeah, I know there has to be some way to achieve this.   Any help on how to would be greatly appreciated.
@c1nmo

I saw that, but no I don't own an iPad :(
I've used this library a fair bit:

http://www.quickpdflibrary.com/help/quickpdf/AnnotationCount.php

You could check the annotation count of each page, copy the page to a new file if it has any annotations, then print the new file once you've checked/copied all pages.
c1nmo, where exactly do I use that code at? I've never dealt with coding in Adobe before. How do I open the SDK?
This is a com / dotnet library that can be used from vb / c# etc.  I'm sure something similar could be achieved with the adobe sdk, I've used the javascript interface in the past:

http://www.adobe.com/devnet/acrobat/javascript.html

Is this just a one off requirement or is it being built into a system?

If I could put it into a system that I can constantly keep using like a button, that would be awesome.

I will check out that link in around 20 minutes, need to put the kids to rest.

Thanks a whole bunch.
I create a summary of comments and I just print out the odd pages, however, they have these annoying sequence numbers and they can't seem to be removed.
The comment summary doesn't even work...

I don't know why Adobe doesn't have this implemented.


When I print out a sticky note normally, it shows all the text next to it... I need it to be like that.  Man this is giving me a headache! :)
Put the following in a js file e.g. PrintAnnotatedPages.js and place it in acrobat's javascript folder, for 6.0 it is C:\program files\Adobe\Acrobat 6.0\Acrobat\Javascripts.  (This is the only version I have to test).  It will add an option to acrobat's file menu called 'Print Annotated Pages', this option will go through the current document and print any annotated pages to your default printer without prompting (one at a time).  I believe in acrobat 7 and higher you need to add some security code to this, I'll post what I think this is in my next post to keep it separate.

//////////////////////////////////////////////////////
//
// Print all pages of current document with annotation on
//
//
//////////////////////////////////////////////
//
//  ** GENERAL INSTALLATION INSTRUCTIONS:
//
//  This Acrobat Automation Script will only work when
//  placed in one of the Acrobat JavaScript Folders. Execute
//  the following code from the Acrobat JavaScript Console to find
//  the location of the JavaScript folders.
//
//  To display the Acrobat JavaScript Console use Ctrl+J on
//  Windows and Command+J on the Mac, does not work properly on newer Mac Books
//
//      app.getPath("user","javascript");
//
//      app.getPath("app","javascript");
//
//  You may place this script file in either one of the folders.
//  However, the "user" folder is shared by both Acrobat and Reader
//  Placing the file in the user folder will make the menu item
//  availible to both Acrobat and Reader
//

///////
// Print annotated pages
//
var PrintAnnotatedPages = (function()
{
      for(var pg=1; pg<this.numPages; pg++)
      {
      var countAnnots=this.getAnnots();
      if (countAnnots.length>0)
            {
            this.print({
                bUI: false,
                nStart: pg,
                nEnd: pg,
                bSilent: true
                });


            }
      }
});

///////
//  User Interface, places menu item on File menu
//
app.addMenuItem({cName:"Print &Annotated Pages",
                 cParent:"File",
                 nPos:"Close",
                 cExec:"PrintAnnotatedPages()",
                 cEnable:"event.rc = app.doc != null"
});
ASKER CERTIFIED SOLUTION
Avatar of c1nmo
c1nmo
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I use Acrobat 10.0, I tried what was in your last post.

It opened my default printer (Adobe PDF at this point) and it printed the annotated page, but it didn't keep the annotations on there.  It also kept prompting me to keep printing and saving (like a loop).

Other than that, I think I/We can work from this and get this to work.. this was insanely helpful!! I'm up now looking / modifying the code.
Worked ok other than creating single page prints in 6, obviously behaving differently in Acrobat 10, getPrintParams may be of use?

var pp = this.getPrintParams();
pp.firstPage = 0;
pp.lastPage = 9;
this.print(pp);
Trying that, I'm noob with Javascript, especially for Acrobat, I'll place it some places and try to execute it from different parts.
Avatar of James Murrell
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.