Combine PDF Pages automator step strips annotations

Oh, I was so excited when I noticed the Combine PDF Pages command in Automator.
Then I was less excited when I discovered that if any of the pages has annotations created in Acrobat Pro, those annotations are removed from the newly combined PDF.
Since Preview, for some strange reason, is not AppleScript-able, Automator is the only way I see to do this.
Acrobat is somewhat scriptable to a degree but does not have a combine PDFs command in the dictionary.
So, has anyone figured out a way to automate the merging of PDFs via a script, workflow, app, etc -- while RETAINING the annotations? I am triggering this from FileMaker as part of a work process we're developing, so manually merging the PDFs kind of defeats the purpose.
Anyone have any suggestions?
Thanks,
Jeff

Found It!
Ok, so it seems "insert pages" is in the Acrobat dictionary; I was looking for an equivelant of "Combine Files into Single PDF".  Anyway, here's draft one of the script. I'll probably make it less clunky next week, but this is basically how it works:
set nFile to ""
set pCount to 0
set pdfList to {}
set pdfNameList to {}
set sourcePath to "SL:Users:joeuser:Desktop:fix ccd:Source:"
set targetPath to "SL:Users:joeuser:Desktop:fix ccd:Target:"
set coverFileName to "cover.pdf"
tell application "Finder"
move file (sourcePath & coverFileName) to folder targetPath
          set my pdfList to every file in folder sourcePath
          repeat with f in pdfList
                    set pdfNameList to pdfNameList & (name of f)
          end repeat
end tell
tell application "Adobe Acrobat Pro"
--activate
open (my targetPath & my coverFileName) with invisible
          set targetDoc to last document
          set my pCount to (number of pages) of targetDoc
          get my pdfNameList
          repeat with f in my pdfNameList
                    set c to number of documents
                    open (sourcePath & f) with invisible
                    repeat until c < (number of documents)
                    end repeat
                    set newDoc to last document
                    set nPages to (number of pages) of newDoc
  insert pages targetDoc after my pCount from newDoc starting with 1 number of pages nPages
                    set my pCount to (my pCount) + nPages
  close newDoc
          end repeat
save targetDoc
close targetDoc
end tell
tell application "Finder"
          set f to file (my targetPath & my coverFileName)
          set name of f to "New Merges PDF.pdf"
end tell

Similar Messages

  • Bug in Automator's Combine PDF Pages action?

    Hi guys,
    I've been playing around with 10.6's new Automator and Services. I decided to make an Automator Service so that if I have some PDFs selected in Finder, I can combine all the pages into one PDF and save it to a location. So I created the following service:
    * Get Selected Finder Items
    * Combine PDF Pages (appending pages)
    * Move Finder Items (to Desktop by default, show this action when the workflow runs)
    * Rename file (comes up as Name Single Item in Finder Item Names, show this action when the workflow runs)
    I tested this in Automator by selecting some PDFs on my desktop and hitting the Run button; everything worked out well. So I saved it as an Automator Service, only available for PDF files but in all applications (drop down lists at the top of the Automator window).
    I noticed however when I ran this workflow as a service, the pages in the resulting PDF file is actually duplicated. For example, if I had page 1 in page1.pdf, and page 2 in page2.pdf, running the service on these two files will produce a PDF with the following pages: page 1, page 2, page 1, page 2.
    Does this happen to anyone else in here, or is it just me? I tried saving the workflow as an application, placed it in the Dock, and then dropped my test files on it and it does the same thing. And this happens with other PDF files too.
    Is this a bug? Can someone confirm that it happens on their machine too?
    Thanks.

    Anyone? It doesn't take long to create an Automator workflow with the 4 actions above. Probably 2 minutes max. Can someone test on their machine?
    I tried to do the same with my MBP, which I also upgraded to Snow Leopard, and it does the same thing there. For some reason, it works perfectly when the workflow is run within Automator, but when it's exported as an Application or a Service, it duplicates pages.
    I tried to submit a bug report to Apple, but I couldn't log in with my current Apple ID -- it shows me an error page to submit a bug report! That's what I've been trying to do in the first place, but it seems the bug report process has bugs that they want you to report on. Chicken and egg scenario methinks.

  • Combine PDF trough Automator

    How do I combine PDF's trough the Automator - Step for Step.... thx alot
    Greets Simon

    Simply double-click or drag the "Combine PDF Pages" action from the "PDF" action library into your workflow. Then do the same for Finder's "Open Finder Items" action. Click File > Save As Plug-in, give it a name, confirm that it's a plug-in for Finder, and click Save.
    Now whenever you control-click on a selected group of PDFs in Finder, you can click Automator > [your workflow] and it will open them as a combined document.

  • 2Sided Original 1Sided ADF Scanner -Combine PDF Pages -  Data Error?

    I just purchased a scanner with an Auto Document Feeder, ADF, of 25 pages after trying to use it I found out through the company that it only scans one side. I have another ADF scanner where the software allows the user to flip the pages over and then reinserts them for the final PDF file. Instead of spending more on a double sided scanner I figured I would create a program using Automator.
    The script I created worked a few times but after some tweaking it stopped.
    The problem is just before the Combine PDF Pages where I have two "Get Value of Variables" which I set as PDF Documents at the beginning of the script.
    The log reads before and at the point of error;
    Conversion from Files/Folders (com.apple.applescript.alias-object) to PDF files com.apple.applescript.alias-object.pdf) completed.
    . ! The action "Combine PDF Pages" was not supplied with the required data.
    The variables are showing the entire path to include the filename and extention of my selected PDFs, but the log above the error seems to change the variable to the appropriately desired object.
    ? What I need to do to correct this error because it seemed to work earlier by using variables?
    The script would be useful for any type of ADF scanner that outputs one-sided to PDFs and the originals are two-sided.
    Your help is appreciated.
    KGz
    Message was edited by: KGz

    Red
    I have been working in Automator for this program and saved it as an Applescript plug-in for the Scripts Menu. I don't have to have it as a script I just need it to work.
    The pecular thing was while testing the program in Automator before exporting it to the plug-in the program was skitish meaning that at first it didn't work then I added 'view results' and then afterwards it seemed to work. After this I removed 'view results' and it worked then I exported it but since then I can't get it to work again even after reinserting 'view results'.

  • How to combine pdf pages into a single pdf document

    I´ve done this before but I forgot. Can anyone help me?

    Hi profesora.2014.2015,
    Adobe Reader is a free trusted standard for reliably viewing, printing, and annotating PDF documents. It’s the only PDF file viewer that can open and interact with all types of PDF content, including forms and multimedia.
    In order to combine PDF pages into a single PDF file, you need to either use Adobe Acrobat (Merging and combining PDF files | Acrobat XI - Adobe India) or Adobe PDF pack (Reliably Create PDFs, Convert PDFs, & Merge PDFs Online | Adobe PDF Pack).

  • PDF converter and combine PDF pages are blank?

    I signed in to Adobe and tried to use the PDF converter, but the page is blank.  The combine PDF page is blank also.  What happened?  I can see the other tabs, but these two are blank.  Need to know what is going on. Thanks.

    Now it shows up after 30 minutes of trying. 

  • Combined PDF page display speed difference between Acrobat 8 Pro and Acrobat X Pro

    I have encountered a display speed issue with regards to combining Tiffs with Acrobat X Pro.  The Tiffs are between 200 KB and 600 KB.  Tested the issue by using a series of Tiffs originally combined using Acrobat 8 Pro but used Acrobat X Pro to combine them.  When I open the combined PDF files using X, I can cycle through the pages of the one created using 8 significatinly faster (i.e. about as fast as I can click) but the file created using X is significately slower.  Note: PDF file size is smaller using X (30.9 MB) than same combined files using 8 (46.1 MB).  Any ideas on what might be causing this issue?

    Found a Tips & Tricks document for Acrobat 8 which indicated the default Monochrome Compression setting for Acrobat 8 is CCITT G4.  Recreated the combined PDF file from the original Tiffs using X Pro with the modified setting and works like a charm.  Thanks for the point in the right direction.

  • Combine PDF Pages Folder Action

    I am running OS 10.6.8, using Automator to create a Folder Action.
    The input is a single folder containing 2 or more PDF files. I drop this folder onto the folder with the action attached. All of the PDFs are combined and the resulting PDF is copied to a new location.
    It works very well with one problem. The name of the combined PDF is an automatically generated system name. I would like this PDF file name to change to the name of the original folder that contained the original PDFs.
    To summarize: "Folder A" has the action attached. "Folder B" contains 2 or more PDFs. I drop Folder B onto Folder A. Automator creates a new combined PDF. I would like this to be named "Folder B.pdf"
    Thanks in advance, any help is appreciated.

    Here's a way (at least on Mac OS X 10.7.3) to do what hubionmac suggested:
    Message was edited by: Pierre L.

  • Getting File Name in Automator workflow - combine PDF

    I am using Automator to combine 2 PDF files.
    I would like to inherit one of the file names in the new PDF and append a standard text to the front of the file name.
    I am not sure how to do this. I can combine the PDFs the way I would like, but I am not sure how to plick the file name.
    my workflow is as follows.
    Folder Action targets folder where 1st PDF is added(I want this FILE NAME).
    Ger Specified finder item selects 2nd PDF to be combined.
    Sort Finder Items makes sure the new PDF pages are ordered properly.
    Combine PDF Pages combines the pages.
    Move Finder Items saves the files where i want it.
    Name single item is whre i thought to add my standard text plus the variable of FILE NAME.
    Open File in mail to set up my email.
    Anyone can help with this?
    thanks,
    Aaron

    Here is an automator workflow that does something similar so I believe you can adapt to your needs.  This workflow is setup as a service workflow. It will combine PDFs in the order in which they are selected/clicked via the Shift key.  The default name of the combined output file will be the name of the first file clicked.  Automator can be activated by CTRL clicking any of the selected PDFs.
    1. Service receives PDF files in Finder
    2. Automator Action: Run AppleScript
    on run {input, parameters}
              display dialog "Files will be combined in the order selected via the Shift key" as text
              return input
    end run
    3.. Automator Action: Trim input items
    keep the first one
    you will need to download and install this autotmator action from here:
    http://www.menace-enterprises.com/Files/Automator/Actions/Trim%20Input%20Items.d mg
    4.  Automator Action: Run AppleScript
    (* Note & Definitions
    This Applescript extracts the basename of the first selected file without its .pdf extension
    "path_basename_ext" is full path and name, e.g. User/desktop/file.pdf
    "NmExt" is filename with extension, e.g. file.pdf
    "baseName" is the base filename without extension, e.g. file
    "Ext" is the file's extension, e.g. pdf
    on run {input, parameters}
              set path_basename_ext to input
              tell (info for path_basename_ext) to set {NmExt, Ext} to {name, name extension}
              set baseName to text 1 thru ((get offset of "." & Ext in NmExt) - 1) of NmExt
      baseName
              return baseName
    end run
    5.  Automator Action: Set Value of Variable
    define baseName as the variable
    6.  Automator Action: Get selected finder items
    Options: check ignore input
    7. Automator Action: Combine PDF pages
    choose Combine by appending
    8. Automator Action: Move Finder Items
    choose To: Desktop
    Options: check show this action when workflow runs
    9. Name Single Items
    choose Basename only to: baseName
    Options: check show this action when workflow runs
    10. Open Finder Items

  • Trying to create a "Combine PDF" that also has a "save as" dialog box

    I am able to get the Combine PDF to work but it just saves them as randomly named files on the desktop that I then need to rename manually. Is there some way to make a "save as" dialog box pop up after combining the files? So if I had a bunch of PDFs it would go:
    Right Click on selected files > Automator > Combine PDF > Save As
    Is this possible?

    Set up you worflow as:
    Get Selected Finder Items
    Combine PDF Pages
    Open Images in Preview
    Run Applescript
    +copy this into the Applescript box+
    tell app "System Events"
    keystroke "s" using {command down, shift down}
    keystroke "d" using {command down}
    end tell
    I also like to add a Sort Finder Items after the Get Selected Finder Items.

  • Automator Service: Combine PDFs Then Delete Originals

    Hello All,
    I've managed to create a service using Automator that combines PDF files, renames the newly created file, and moves it (http://www.documentsnap.com/how-to-combine-pdf-files-in-mac-osx-using-automator- to-make-a-service/).
    What I am now trying to figure out is how I could have automator prompt me at the end to ask if I'd like to move the original files (PDFs) to the trash, and then do so upon confirmation. I haven't had any luck figuring this out on my own.
    Does anyone out there know if this is possible?
    Thanks!

    sure, it's possible.  what you need to do is:
    add in a Set Value of Variable action right at the beginning
    at the end, add in an Ask for Confirmation action that asks if they want to delete the original files.
    after that add in a Get Value of Variable action for the variable in step 1
    then add a Move Finder Items to Trash action
    first step stores the passed-in file references in a variable for later use, and passes them on to your script.  the second step gets user input, stopping the workflow if the user cancels.  the third step recovers the file references stored at the first step, and the last step deletes the files.

  • Combine PDF's witout downsizing page size

    Hi
    I have Acrobat 10 Standard and can combine multiple PDFs into a single PDF file fine, but the page size does not remain the same. I start with 841,594mm (A1 pdf's) and when the combined PDF is created the page size is 420,297mm (A3).  The files I am combining are CAD and therefore important that they remain the same size and not scaled.
    Can anyone help please?
    Buzz

    When you combine multiple PDF files to single PDF file it automatically reduce the font size to auto fit on the PDF page that's why it reduce from A1 to A3. Well you have Acrobat 10 so you need to edit PDF page to remain it A1 size.
    Update:
    If you want to print that particular PDF file to A1 size you can customize PDF page by following steps here http://forums.adobe.com/message/1181043#1181043

  • How do you move pages around in a combined pdf online.

    how do you move pages around in a combined pdf online

    Hi,
    To move pages in combined PDF file you can use Adobe Acrobat.
    1. Open your combined PDF file in Acrobat XI
    2. Click "Tools" from top right corner
    3. Select "Pages" tab
    4. Select "Page Thumbnails"
    5. Move the page thumbnails at Page Thumbnail pane at left side of  document page.
    6. Save the PDF page.
    You can download Acrobat XI Pro Trial version from www.adobe.com or upgrade your service to Acrobat Plus (Please see more information at https://www.acrobat.com/acrobatplus/en/features.html?promoid=KIUAY
    Hisami

  • How can I resize a pdf page content with annotations and highlights in Acrobat Pro?

    How can I resize a pdf page content with annotations and highlights in Acrobat Pro while maintaining page size and annotation/highlight interactivity? I've tried to use the crop tool in Acrobat Pro (9) and the page does resize, but the highlights and annotations go all over the place. I specifically need to scale the page content smaller (83%) but maintain page size and annotation/highlight to content connection and interactivity.

    An old trick (not recommended) would be to print to a new PDF with the page size selected but a scaling of the content. Only print the document, not the markup, to a new PDF. Close that PDF when done and reopen the old one (or maybe a copy of the old one for safety) and use Document Replace pages and select the new document to replace your current pages. You will then have to go back through the markup to locate it all correctly. There may be a more elegant way, but this may be the fastest.

  • When I combine PDFs I get different page sizes in the new PDF. Why?

    I used the Combine PDF feature today and found that the final version of two originals, combined, had different page sizes when viewed in Adobe. How do I fix this issue? Does it have to do with DPI resolution on scan?

    This will happen if the PDFs you are combining have different page sizes. You can check this by hovering the mouse in the bottom left of the screen, at least in Acrobat.

Maybe you are looking for