Skip navigation.
 
mlRe: Multipage pdf and NSImage
FROM : Avi Cherry
DATE : Sat Oct 05 07:57:01 2002

At 10:28 AM -0400 10/5/02, Jim Leno wrote:
>Not quite sure how I would do that; if I scroll the image to the bottom,
>then it gets to the bottom of the image and there is no more.  I tried
>getting the image size, and it's only 600 or so pixels high, not what you
>would expect for a 32 page pdf file.
>
>What's interesting is that if I ask the associated image rep object for the
>page count, it does return 32.  So, it looks like I'm close, but missing a
>step.  Do I have to somehow resize the image myself?  It seems like NSImage
>should be doing that on it's own.


My suspicion is that a single NSImage will only ever display one page
at a time.  I suggest that you either put a 'next'/'back' button and
call setCurrentPage:, or create a separate NSImage for each page and
stick them all in the scroll view.

Related mailsAuthorDate
mlMultipage pdf and NSImage Jim Leno Oct 4, 06:21
mlRe: Multipage pdf and NSImage Jeff Disher Oct 4, 08:36
mlRe: Multipage pdf and NSImage Jim Leno Oct 5, 07:29
mlRe: Multipage pdf and NSImage Marcel Weiher Oct 5, 07:53
mlRe: Multipage pdf and NSImage Avi Cherry Oct 5, 07:57