Skip navigation.
 
mlRe: extracting a piece of a PDF page (PDFDocument, PDFPage, etc)
FROM : Chad Leigh
DATE : Wed Jul 26 01:51:15 2006

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
>
> To position it where you want use an affine transform to translate 
> the coordinate system as need before you draw.



Ok, I have this working with the NSAffineTransform.  I am still 
tweaking placement but the desired effect is there...  Thanks!

I am also going to see if I can get a version working with an 
NSPDFImageRep.  Previously I had an NSImage with a PDFImageRep as the 
only rep in the image but for some reason on printing I had a low res 
screen resolution bitmap version of the PDF contents...

Thanks all for the help!

Chad