Can I write a macro that will extract pages

I'm pretty good at using Microsoft's VBA for writing macros in Excel.  I'm wondering if Acrobat has anything similar to manipulate pdf files.  My company has a lot of PDFs that we want to split up into small documents.  I'd like to be able to write a script that would look for certain text, then based the page where it found the text, it would extract a range of pages into a new document.  Think of it as taking a book and having the macro break it up into chapters so each chapter would be it's own PDF file.  Even better would be for the macro to do this to all files in a folder.  Is something like this possible in Acrobat?

It's possible with JavaScript. JavaScript can be using in a batch sequence (aka Action), to deal with a collection of documents.
Here are the basic methods you'd use:
doc.extractpages: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.465.html
doc.getNthPageWord: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.486.html
doc.getPageNumWords: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.488.html

Similar Messages

  • How do I write a macro that would look for a string in an entire column

    how do I write a macro that would look for a string in an entire column. If the string is found, it will copy that entire row to a new sheet in that same file?
    I want to look in an entire column lets say "C" for different strings of numbers like 246, 88, 68, 82246 etc... and copy them to a new sheet
    Thanks

    Hello Larbec,
    Try this:
    Option Explicit
    Sub test()
        Dim myNumber As Integer
        Dim myNumbers() As Integer
        Dim i As Integer
        Dim c As Range
        Dim firstAddress As Variant
        myNumbers = Array(246, 88, 68, 82246)
        For i = 0 To UBound(myNumbers)
            myNumber = myNumbers(i)
            With ActiveSheet.Range("C:C")
                Set c = .Find(myNumber, LookIn:=xlValues)
                If Not c Is Nothing Then
                    firstAddress = c.Address
                    Do
        ' Copy c.value to OtherSheet here !!!!
                        Set c = .FindNext(c)
                    Loop While Not c Is Nothing And c.Address <> firstAddress
                End If
            End With
        Next i
    End Sub
    Best regards George

  • Want to write a program that will count no. of comments line in a program

    Hi,
    I want to write a program that will count the no. of comments in a program which is given as an input from command line.
    Any help is appreciated.
    Jacky

    hi..
    I mean to say that If you can help me in writing the
    program as I cannot think of any approach right nowI can only guess that right now your definition of "help" is "write it for me", which of course I will not do, nor will anyone else (at least they shouldn't). Is this how you approach life - do you just walk over to your classmate's desk and say "Here's my homework assignment - I don't know how to do it, just basically do it for me and I'll check back later"? I hope not.
    You need to get started on your own - apparantly you're in some class and they've tried to teach you some stuff to get this done and you've been doing something else other than pay attention in class?

  • The circuit of my macbook is dead yet the hard drive is fine.  I need to access a file from the hard drive, how can i do this? is there a cable i can connect to another mac that will let me transfer the file?

    The circuit of my macbook is dead yet the hard drive is fine.  I need to access a file from the hard drive, how can i do this? The mac turns on the screen freezes as bright blue.  Is there a cable i can connect to another mac that will let me transfer the file?

    There is another option if the Macbook will start up in Target Disk Mode.
    Restart the computer while holding down the T key. If you see the firewire symbol moving around on the screen you can connect this one to another one in TDM. You will need a suitable cable to connect the two Macs.
    http://support.apple.com/kb/ht1661
    Firewire symbol:

  • I need to use an hp 6215 printer with my mac book pro.  the driver installation disk doesn't work.  where can i get a driver that will work?  i use OS X

    i need to use an hp 6215 printer with my mac book pro.  the driver installation disk doesn't work.  where can i get a driver that will work?

    With the Lion it is essentially unnecessary to resort to external driver disks. What's more, most of those disks are incompatible with the OS and should not be used. The system already carries a wide variety of printer description files (aka PPDs, which is what modern printing systems use as "drivers") for a lot of brands. And there was an HP printer update just two days ago.
    Just checked in mine and did indeed find that the HP OfficeJet 6200 Series, with or without Fax, is covered with the latest update.
    So just go thru the motions of creating a proper printer instance:
    Make sure the Mac "sees" the printer on the network.
    System Preferences / Print & Scan
    Click on the + button on the left column
    Select the appropriate type of printer, will use IP for the rest of this
    Select HP Jetdirect - Socket, default for HP network printers
    Type the IP address or look it up
    Name the printer for easy identification on the print dialog
    Let the Mac identify the printer model or manually choose the driver
    Click Add.
    Once the instance pops up in the list, can click on Options & Supplies for further config.

  • I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics

    I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics with "Alternative Text".
    I know that with a Microsoft product graphics can be tagged before a PDF is made. I need to know how to do this with my programming.

    The Acrobat SDK might be a starting point.
    From there, perhaps a plug-in (built with C+).
    Perhaps with a licensed release of a PDF Library (this could be $$).
    The viable and cost effective alternative is use the tried and true.
    Authoring in an appropriate authoring application with appropriate tag management.
    Example:  Adobe InDesign; Adobe FrameMaker or MS Word with PDFMaker (comes with install of Acrobat).
    This way you place "Alternative Text" when mastering content in the authoring file.
    Going the route and with some look-see (research) you may find programmatic approaches to placing the alt txt in the authoring file.
    Note: as discussed in the Matterhorn Protocols there is no programmatic method that provides a fully accessible PDF (specifically, that is an ISO 14289-1, PDF/UA-1 compliant PDF).
    Regardless, here you have a sub-forum for discussions on Acrobat usage.
    Consequently discussions on/of 3rd party software is rather out of scope eh.
    Be well...

  • I accidentally deleted my old fb app on my iPhone 3g. Now i cant download new fb app as it requires ios 4.3. How can i get old app that will work on my old phone. Any suggestions???  plz help!!!

    i accidentally deleted my old fb app on my iPhone 3g. Now i cant download new fb app as it requires ios 4.3. How can i get old app that will work on my old phone. Any suggestions??? plz help

    As already provided, if you don't have such in your iTunes library, on your computer, then there is no way to put it back on your phone. Apps are DRM protected, so even if you found a copy somewhere, you wouldn't be able to use it.

  • Using Numbers, can I calculate the date that will be eg 45 days ahead of a given date?

    Using Numbers, can I calculate the date that will be eg 45 days ahead of a given date?

    MWB,
    Certainly. Let's say that your given date is in B2. The date 45 days earlier can be found with:
    =B2 – 45.
    Almost seems too simple.
    Jerry

  • I want to create a form that I can change at an instance that will store the information without replacing it

    I want to create a form that I can change at an instance that will store the information without replacing it: Here are examples of what i have:
    This is the form:  The True/False in column B are actually check boxes
    Date
    Job Name
    Start
    End
    Hours Worked
    Per Diem
    Wednesday, Mar 5, 2014
    Duke University
    7:30 PM
    2:30 AM
    7.00
    Arellano, Paul
    TRUE
    Wednesday, Mar 5, 2014
    Duke University
    7:30 PM
    2:30 AM
    7.00
    0.00
    Blackwell, Zach
    FALSE
    Christian, Charles
    TRUE
    Wednesday, Mar 5, 2014
    Duke University
    7:30 PM
    2:30 AM
    7.00
    0.00
    Christian, John
    FALSE
    Currence, John
    FALSE
    Curtis, Brandon
    FALSE
    Hawkins, Tyre
    FALSE
    King, Corey
    FALSE
    Nunez, Jose
    FALSE
    Rangel, Antonio
    FALSE
    Rice, Eric
    FALSE
    Salgado, Ricardo
    FALSE
    and the sheet that the index to looks like:
    Saturday, Mar 15, 2014
    Rice, Eric
    Providence College
    9:00 AM
    7:30 PM
    10.50
    1
    Saturday, Mar 15, 2014
    Rice, Eric
    Virginia Beach
    7:30 PM
    2:30 AM
    7.00
    Saturday, Mar 15, 2014
    Salgado, Ricardo
    0.00
    Sunday, Mar 16, 2014
    Arellano, Paul
    Providence College
    7:00 AM
    8:00 PM
    13.00
    1
    Sunday, Mar 16, 2014
    Blackwell, Zach
    0.00
    Sunday, Mar 16, 2014
    Christian, Charles
    0.00
    Sunday, Mar 16, 2014
    Christian, John
    0.00
    Sunday, Mar 16, 2014
    Currence, John
    Providence College
    7:00 AM
    8:00 PM
    13.00
    1
    Sunday, Mar 16, 2014
    Curtis, Brandon
    0.00
    I want to be able to fill out the form and it place itself into Sheet 1 without changing everytime.  I can index the array from the form, but it changes everytime.

    You think it would be the other way around.
    Just speculation, but forms probably came to iOS first because of likely use for data entry in the field that syncs back to the Mac.  On a small screen with a touch interface, forms make inputing values easier.
    On the Mac, with its bigger screen, typing directly into a data table often works well enough.
    SG

  • Can I create a button that will take me to a random slide in a sequence?

    Let's say I have three simulations setup and the simulations start on slide 5, 15, and 23. Can I make a button that will randomly jump to one of those slides?

    You have to execute that script using an event, in this case you'll use the Success event of the button that you created to 'jump'. And it will probably be an advanced action, unless you execute the JS with the On Enter event of the slide. You have two commands: first to execute the script, second to jump to that slide, for which you'll have to use a system variable cpCmndGotoSlide and the value of the variable returned by the JS. Slide numbering starts with index 0.
    http://blog.lilybiri.com/system-variables-in-captivate-6
    http://blog.lilybiri.com/events-and-advanced-actions
    Lilybiri

  • I am currently running OS X 10.5.8 on my MacBook (early 2008) and want to know if I can upgrade to a version that will allow me to use iCloud to sync with my new iPad?

    I am currently running OS X 10.5.8 on my MacBook (early 2008) and want to know if I can upgrade to a version that will allow me to use iCloud to sync with my new iPad?

    I believe to use iCloud you need to run at least Lion (10.7). (Only the Find My iPhone or Find My Mac parts of iCloud work with OS earlier than 10.7/Lion).
    I think you can run Lion but you should check each of the following:
    "To use Lion, make sure your computer has the following:
    An Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
    Mac OS X v10.6.6 or later to install via the Mac App Store (v10.6.8 recommended); you can install without Mac OS X v10.6 by using an OS X Lion USB Thumb Drive, available on the Apple Online Store
    7 GB of available disk space
    2 GB of RAM
    If your Mac does not meet these requirements, you will need to upgrade your Mac before installing Lion"
    You have a Core 2 Duo. You can upgrade to 10.6 and then install Lion, or use the thumb drive approach mentioned above (thumb drive Lion costs about $70 I think). You need to check your RAM to see if you have enough.
    Folks have reported that 4 GB RAM is really a minimum for a decent experience with Lion.
    For Mountain Lion, see this ( http://support.apple.com/kb/HT5444 ) for what you need to have to install OS 10.8. I don't think you can use Mountain Lion (10.8) with your early 2008 Macbook.

  • Upon launching Thunderbird, how can I set a password that will prevent viewing of my emails if someone uses my computer?

    Upon launching Thunderbird, how can I set a password that will prevent viewing of my emails if someone uses my computer?

    100% this addons can help you
    https://addons.mozilla.org/en-us/thunderbird/addon/master-password/
    look at my Thunderbird when I open it

  • HT1414 I have disabled the auto synch on connection of the IPhone5 and now ITunes will not show the iphone  as available. How can I find the dialog that will give me control over backup's?

    Where -on iTunes - can I find a control that will enable me to synch the Iphone.
    The auto synch on attaching is turned off

    There is no merge feature for itunes content, never was. Merge applies only to contacts and calendar entries.
    The itunes content sync is one way - computer to iphone. The exception is itunes purchases
    You can transfer the purchases from the iphone to itunes before you sync. File>Transfer Purchases

  • How can I export a video that will loop indefinitely when played from a usb drive?

    how can I export a video that will loop indefinitely when played from a usb drive?

    As far as I know, PPro does not have that capability
    If you were creating a DVD in Encore, you could put an "end action" on the video timeline to itself... so at the end of the DVD video it would go back to the beginning
    I am not aware of any way to do that for a simple file

  • Is there an Adobe Exchange app that I can use in Dreamweaver CC that will read .ASPX extensions?

    Is there an Adobe Exchange app that I can use in Dreamweaver CC that will read .ASPX extensions?

    Apparently, you need to activate the features [ by installing an extension] that are not supported in DW CC.  I suggest read this blog:
    <http://blogs.adobe.com/dreamweaver/2013/06/a-look-at-the-modernized-dreamweaver-cc.html>
    Hope this gets you started.
    Good luck.

Maybe you are looking for