Adam: > > Skim clearly holds a single parameter defining the display orientation > > of ALL pages for the entire document. It is NOT, I repeat, NOT the > > rotation of individual pages independently. > > Your repetition of this reminds me of a favorite quote [1]. I just > looked at the code, and you are clearly wrong, as Christiaan has > said; I even ran this with gdb to make sure I had the right method > :). Obj-C is fairly readable, so it should be obvious that rotating > all pages by 90?? sends the setRotation: message to /each/ page of > the document, and rotation is a property of the PDFPage object.
I stand corrected! There is a single function (rotateAllBy) that rotates each page (using a 'for' loop). Thanks for pulling up the code. All pages are rotated, but the memory of it is stored in each page. > Since AppleScript exposes a rotation property for pages, presumably > you can set this yourself from a script, as I suggested previously. Unfortunately I don't know AppleScript, though it sounds like it would be trivial. > Alternately, you could hack Skim to get each page's rotation and > apply it to the new document when you reload, or store a flag > somewhere indicating that you had previously rotated pages. I looked at the available tools and checked again. The Rotate Right, Rotate Left and Rotate buttons all rotate every page of the document. There are no tools for rotating just one page. Is this something that was going to be implemented later? If not, then the preexisting rotations are always going to be for all pages so couldn't a single variable hold the memory of that? > However, what you want is obviously wrong for the general case; when > you create a new document, you get a new PDFDocument object with all > new PDFPage objects, which may or may not have a preexisting > rotation. I don't understand this given that all pages get rotated using the Rotate button. Why is Skim remembering the page it is on after a refresh? There could be more or less pages. What is different about remembering page rotations from rembering the current page? > [1] "Hypothesis, my dear young friend, establishes itself by a > cumulative process: or, to use popular language, if you make the > same guess often enough it ceases to be a guess and becomes a > Scientific Fact." Mr. Enlightenment, in "The Pilgrim's Regress" In actual science a hypothesis doesn't change by repeating it. At http://skim-app.svn.sourceforge.net/viewvc/skim-app/trunk/?view=log > Revision 7054 - Directory Listing > Modified Fri Jan 7 16:13:52 2011 UTC (74 minutes, 9 seconds ago) by hofman > > Disable more menu and toolbar items when the document is locked. Fix > rotate toolbar items. Hmm. Tom Thomas D. Schneider, Ph.D. National Institutes of Health National Cancer Institute Gene Regulation and Chromosome Biology Laboratory Molecular Information Theory Group Frederick, Maryland 21702-1201 [email protected] [email protected] (permanent) http://alum.mit.edu/www/toms (permanent) ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Skim-app-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/skim-app-users
