Skip navigation.
 
mlRe: extracting a piece of a PDF page (PDFDocument, PDFPage, etc)
FROM : Jonathan Grynspan
DATE : Tue Jul 25 22:09:19 2006

Might NSPDFImageRep be of use to you?

-Jonathan Grynspan

On 25-Jul-06, at 4:02 PM, Chad Leigh wrote:

>
> On Jul 25, 2006, at 5:52 AM, Antonio Nunes wrote:
>

>> On 25 Jul 2006, at 08:25, Chad Leigh wrote:
>>

>>> [labelPage drawInRect:labelRect 
>>> withBox:kPDFDisplayBoxBleedBox];  // labelPage is a PDFPage of a 
>>> document in the view
>>>
>>> *** -[PDFPage drawInRect:withBox:]: selector not recognized [self 
>>> = 0x16c9ea0]

>>
>> Draw the page with: - (void)drawWithBox:(PDFDisplayBox)box

>
> That is what I am doing.  It is just not in the right place :-)
>

>>
>> To position it where you want use an affine transform to translate 
>> the coordinate system as need before you draw.

>
> Thanks, I was not aware of that (most of my app programming in the 
> last million years has been UIless stuff so I am not up on all the 
> drawing bits);
>
> I took a look and will try to implement something this afternoon or 
> evening!
>
> Thanks!
> Chad
>
> _______________________________________________
> MacOSX-dev mailing list
> <email_removed>
> http://www.omnigroup.com/mailman/listinfo/macosx-dev