Extracting the first page from all pdf's in a folder and save them to a new file

Hi,
As Bridge apparantly is unable to create a decent-looking PDF from a bunch of other PDF's, we're looking for alternative solutions. The problem is, that I haven't done much scripting in Acrobat.
Pseudocode:
Select Folder where PDF files are stored
Create list of PDF files
Get first page from each and add it to temporary new PDF
Save temporary new PDF in high quality
Would that be possible in Acrobat? And where would I start? I can't even find a Scripting Guide for Acrobat (like the ones for Illustrator and InDesign).. and there seems to be no sample scripts included either :-(
Thanks,
Thomas

This can be done using a combination of an Action and a script. The script in the Action will collect the paths of the files you want to process and the folder-level script will extract the first page from each file and generate a new PDF from it. You don't need a plugin for this task, so you don't really need the SDK.
The Acrobat JavaScript Reference can be found here: http://www.adobe.com/devnet/acrobat/javascript.html

Similar Messages

  • Extracting the first page of multiple PDFs & saving them as jpegs.

    Dear all,
    First post - hope its in the right place.
    I work in Publishing, and I have been given the following task - I have about 400 ebooks, all in pdf format, and my task is to extract the cover from every one of them (which is the first page of every pdf) and export them all as separate jpeg files (file names can remain exactly the same - ie, the name of the pdf book will be the same as the jpeg file). So I will end up with 400 ebooks and 400 jpegs of their covers.
    Anyone have any idea how to do this ?
    i have Windows and acrobat 8
    I have looked at batch processing in acrobat, but the option to extract the first page of multiple pdf files is not one of the options. there is an option to create your own script which im guessing is my best bet ? (hence why i have posted my question here)  Though I don't have the first clue about this. Have done some google searches, and some people have created similar things, but I cant seem to get them to work.
    Any advice greatly appreciated.
    Cheers,
    Rich

    ok, i have found a set of acrobat batch sequence and come across the following :
    Batch sequence name: Extract Pages to Folder.sequ. Task: For each file from the selected files, extract each of its pages and save the extracted pages to a particular folder.
    Example 2.10 Insert navigation icons
    /* Extract Pages to Folder */
    // A regular expression to acquire the base name of the file.
    var re = /.*\/|\.pdf$/ig;
    var filename = this.path.replace(re,"");
    try
      for ( var i = 0; i < this.numPages; i++ )
      this.extractPages
      nStart: i,
      cPath: "/C/temp/myDocs/"+filename+"_"+i+".pdf" // change this });
    catch (e)
       console.println("Batch Aborted: " + e )
    looks like i need something like this, but tried the above earlier, and couldnt get it to work (prob cause I didnt replace the words exactly correctly). I am guessing that i am entering this in the correct place though (ie - create new sequence, and got into the script editor box)

  • How to delete the first page from a large number of documents

    Hello all,
    My company has migrated from Adobe Acrobat pro 8 to 11. In version 8 we had
    used Document Processing to remove the first page from all pdf's within a
    directory (5000+). This process took about an hour.
    Now my research has led me to use Actions in version 11, however it appears
    that the action require each document to be open and saved (one after another)
    in Acrobat in order for the first page to be removed.  This thrashing has made this process very
    slow to the point where it's useable.
    Is there any way to run actions from the command line
    so time isn't wasted opening up each document in Acrobat? 
    Is there another way to quickly remove the first page
    from a PDF in bulk?
    I'm outside my expertise area here, so if you need any additional
    information let me know.
    Thanks in advance.

    Indeed, batch processing in Acrobat XI is inferior in many ways to what it was previously.
    To answer your questions:
    1. No.
    2. Yes, it can be done using a stand-alone app much more quickly and more efficiently, but it's somewhat more complicated to develop such an app than to set up an Action in Acrobat.

  • How do I see the first page of a PDF file without opening it in Windows 8.1

    I have Windows 8.1, I used to have XP, and there was a place to click, so I could see the first page of all the PDFs instead of the Adobe icon, can you help please, thanks

    Hi Marys_Yam,
    Perform the following steps to enable thumbnails to be shown:
    1. Launch File Explorer (Winkey+E).
    2. Click the View tab at the top of the window.
    3. Click the Options button.
    4. In the Folder Options window that appears, click on the View tab..
    5. Uncheck the "Always show icons, never thumbnails" option.
    6. Click Apply, then OK.
    Regards,
    Rave

  • How do you extract non consecutive pages from a pdf document. I can highlight in thumbnails but only extract consecutive.

    How do you extract non consecutive pages from a pdf document?
    I see its easy to do it with consecutive pages by highlighting thumbnails then 'extract' but this does not allow for non consecutive pages.
    Thank you

    After highlighting the pages you can drag them and drop them somewhere,
    like on the desktop, and a new file will be created with just those pages.
    If highlighting the pages is not feasible, or too tricky to do, then a
    script can be used where you specify which pages to extract and the script
    extract them to a new file.

  • How can I print only the first page of multiple PDF files at once in my PC?

    That is, without having to open each file individually.
    Thanks!

    Create an Action with the following JS command:
    this.print({bUI: false, nStart: 0});
    This will cause the first page of all the files you process with this Action to be sent to your default printer.
    If you need to specify more complex parameters, you'll need to use a more complex code...

  • I had a trial version of Pages for 30 days and then purchased the actual software without removing the trial. Now when I try to edit documents and save them it wont because it tells me I am using a trial version.... How can I remove the trial version?

    I had a trial version of Pages for 30 days and then purchased the actual software without removing the trial. Now when I try to edit documents and save them it sometimes wont because it tells me I am using a trial version.... But sometimes it lets me!! How can I remove the trial version? I cannot tell which one I am using when I open it....

    Question asked and answered quite once a week.
    Go to my iDisk (address below)
    and download :
    For_iWork:iWork '09:uninstall iWork '09.zip
    Run it then reinstall the purchased software.
    Yvan KOENIG (VALLAURIS, France)  vendredi 2 janvier 2011 16:21:41
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please :
    Search for questions similar to your own
    before submitting them to the community

  • Developers I need an applescript that opens documents in excel from a specified folder and saves them as .xlsx from their current .xlsb

    mule13470 
    Apr 3, 2014 11:12 AM 
    I tried simply renaming them however it just corrupts the files when I do it like that so I need the applescript to open the files in excel and the save them as .xlsx to test I only need it one folder but if it works I'd like to be able to do it for all documents with .xlsb extentions that are in a huge folder with subfolders that contain a mix of .pdf, .docx, .xlsx and .xlsb. Please Help.
    Applescript Editor, Mac OS X (10.6.8) 
    I have this question too (0) 
    Reply
    Categories: Using OS X MavericksTags: mac, help, finder, excel, applescript_editor
    Level 1 (0 points)
    mule13470
    Re: I need an applescript that opens documents in excel from a specified folder and saves them as .xlsx from their current .xlsbApr 3, 2014 11:19 AM (in response to mule13470) 
    In that huge folder I only need the .xlsb files opened and saved to .xlsx not the others, in case that wasn't clear above.

    In that huge folder I only need the .xlsb files opened and saved to .xlsx not the others, in case that wasn't clear above.

  • HT203167 My computer died.  How do I recover all of my itunes store purchases and install them on my new computer?

    My old computer died.  How do I recover all of my itunes store purchases and install them on my new computer?

    Restore them from your backup, or use these instructions to redownload them through the iCloud.
    (73336)

  • I am unable to print PDF's using either Adobe Reader or Safari. In Adobe Reader, I get an error message from my Cannon printer that says, "/usr.libexec/cups/filter/pstocupsraster failed". In Safari, I can only print the first page of a PDF.

    To try to resolve this problem, I have done the following actions.
    1 - I have run Disk Warrior.
    2 - I have repaired permissions.
    3 - I have deleted all plist that are either Cannon or Adobe.
    4 - I have downloaded and installed the lastest versions of Adobe Reader and the Cannon printer drivers.
    I am still unable to print PDF's.
    In Safari, I can print only the first page. In a multipage PDF, Safari only seems to recognize the first page.
    In Adobe Reader, I get an error message from my printer: "/usr/libexec/cups/filter/pstocupsraster failed".
    Any help would be greatly appreicated!

    Quit Safari.
    Open the Library folder in your home folder as follows:
    ☞ If running OS X 10.7 or later, hold down the option key and select Go ▹ Library from the Finder menu bar.
    ☞ If running an older version of OS X, select Go ▹ Go to Folder… from the Finder menu bar and copy the line below into the text box that opens:
    ~/Library
    Delete the following items from the Library folder:
    Caches/com.apple.Safari/Cache.db
    Preferences/com.apple.quicktime.plugin.preferences.plist
    Preferences/QuickTime Preferences
    Relaunch Safari and test.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running OS X 10.7 or later, open LaunchPad. Click Utilities, then Console in the page that opens.
    Select "/var/log/cups/error_log" from the file list. Post the messages from the time of the last printing attempt.
    Post the log text, please, not a screenshot. If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.

  • Displaying more than the first page of a pDF

    My firm posts pdf's online for users to access. One of the Ipads in the firm can view all the pages of any document. The others only access the first page which is a problem. What's strange is that the one that can view the file's entirety does not have a PDF viewer - no Good Reader or even ibooks. Basically it's factory settings because it's user isn't very active. I've got two Ipads to compare and for anything that seems related (general and safari) the settings are the same between the one that works and one that doesn't. The one that is working is 3G and the non-working one is not. Nither is an ipad 2. (Aside - Does that make them Ipad 1?)
    What else

    Correction to my earlier post- they are both 3G so that can't really be the problem source either.

  • How do I print only the first page of multiple PDF documents?

    I have about 1,500 PDF files (scientific papers) that I need to print only the first page of... Any suggestions on how to do this as a single job or as a few jobs? The files are organized in a bunch of different folders, so if there was some way to do this folder by folder, that would be ok too. Thanks!

    Make sure that in System Preferences Printing & Fax pane you set the default printer to the one you want to use, then put all of these PDF files into their own folder, then open terminal and type the following (without hitting return afterward):
    lpr -o page-ranges="1-1"
    Then drag one of the PDF files into the terminal window (it will add it's path to the end of your command) and replace the file name with *.pdf, so it will look like this:
    lpr -o page-ranges="1-1" /Users/todd/Documents/My\ Folder/*.pdf
    Then hit return.

  • How can I make the first page of a PDF load before the whole file on a website

    I work for a company that loads they brochures in PDF format on their website and the PDF's were formerly created in Indesign and converted.
    When the files were  viewed on the website, the first page loaded right away while the others loaded. Now I have created an interactive PDf with buttons in Fireworks, but when I convert the file to PDF and load it on the web, the first page does not load until the whole file loads which is about 5MB.
    My employer likes the buttons and interactivity, but does not want teh customer sitting there for a few minutes looking at an empty screen while the whole file loads to view.
    Does anyone know what I mean? I could use some help.
    Thanks!

    Make sure that fast web view is enabled.

  • Safari it will not advance past the first page of a PDF Document

    Running Safari 5.1 under Snow Leopard 10.6.8 on a d MacBook Pro when I try to read a PDF document in Safari it will not advance past the first page. I get the first page of the document in the browser window. No navigation in the toolbar, the up, down, right and left arrows do nothing nor does the return/enter key.

    If you are using Adobe Acrobat >  Apple Safari 5.1 and Adobe Reader/Acrobat Advisory

  • How can I put a footer that links to the first page of a pdf from the other pages?

    I am trying to create a pdf that has the option "Return to Table of Contents" at the bottom of each page from 2 to 23.  I know how to add a footer, and I know how to add a link, but is there a way to put a link as a footer?  I don't want to have to go in and create 22 links for each file. 

    Then duplicate that button to pages 3-23.
    To do that effectively go to Form Edit mode, right-click the button and select Duplicate Across Pages.

Maybe you are looking for

  • How can I get an Airport Extreme card to recognize a Nintendo DS WiFI?

    With an Airport Extreme Base Station the Airport Admin Utility lets you enter the hexidecimal code for the DS (Nintendo calls this the "MAC Address".). The Airport Admin Utility will not open because I do not have a base station. My iMac is connected

  • Vga switch causing resolution problems

    Hi, I recently bought a VGA switch by MayFlash so that i could share my 22" widescreen LG monitor with both my x360 and my mac mini. The problem I have is that when i was running my mac mini directly into the monitor via vga cable (with a built in DV

  • Vendor Master Data - Bank Data Report including IBAN

    Is there anyway to pull a report out of SAP to show all vendors with a IBAN existing for their bank master data?

  • Opening a flash movie in dreamweaver

    Hello, I am a professional photographer and I am trying to open a flash image viewer automatically created in Lightroom using the airtight image view. The viewer creates a top folder named simple viewer and two sub folders. one with images and one wi

  • HR ABAP Documents

    Hello All, I have been searching HR ABAP document for quite a long time. I haven't found a good one . Could some one please send some good documents . My mail id [email protected] Thnx in adance.