Hi,

I wasn't able to copy and paste a page from a PDF document into another with
Skim. Is there a way?

I *can* copy any *single* page from a document, and then use the "new from
clipboard" menu item, but:

1- I cannot copy *several* pages in the first step. Is there a way?
2- I cannot do it one page at a time because I cannot paste a page into an
existing document. Is there a way?

To give you some background:

I started to use Skim just a few days ago, mainly because of its Applescript
support. I need to be able to split very large PDF files (over 4000 pages)
into smaller pieces. Each piece may have a variable number of pages,
depending on the context (text) of the specific pages.

My script is sucessful in identifying the starting page and the ending page
of each segment.

However, I am stuck, as I cannot manage to extract those pages into a new
document.

I tried things like:

tell application "Skim"
    make new document with data (pages 3 thru 5 of document 1)
end tell

But it failed with error message "Skim got an error: Applescript handler
failed".

Note that "make new document" works fine: Skim creates an empty document,
but then I cannot populate it, as I seem to misunderstand the "join"
statement, as in:

    join pages 1 thru 4 of document "source.pdf" to document "dest.pdf"

Which fails with "can't get document "dest.pdf""

I am still not finished exploring, but I can't really see a promising track
a this point. I hope I don't have (for performance reasons), to fall down to
an algorithm along the lines of:

For each page subrange
    duplicate source document
    remove from duplicate all pages not belonging to current segment
    rename and save duplicate document

I'd welcome some help.

Thanks,

Jean-Denis


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to