Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inserting pages into Adobe Acrobat...



I am trying to insert all pages from all selected PDF files into the
first file (e.g. merge) using Adobe Acrobat 5.

I have one big problem -- I can't get "insert pages" to work.

A secondary problem is how to find the last page number, neither the
'insert pages' command seems to have any support for this, nor can I
find a syntax that directly finds the last page. Executing a 'goto
page' for 99999 and then finding the page number seems to be the best
that I can do.

Any suggestions, particularly on how 'insert pages' can be made to
work would be appreciated.

- David Crowe


on MergePDFFile(FileList)
tell DCroweUtilities
set FileList to ASCII_Sort(FileList)
end tell
tell application "Acrobat 5.0"
activate
open first item of FileList
repeat with aFile in FileList
if aFile  first item of FileList then
tell PDF Window 1
goto page 99999 -- i.e. last page
set LastPageNumber to number
insert pages after
LastPageNumber from aFile
end tell

end if
end repeat
end tell
end MergePDFFile
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.