Skip navigation.
 
mlRe: extracting a piece of a PDF page (PDFDocument, PDFPage, etc)
FROM : Chad Leigh
DATE : Tue Jul 25 22:14:39 2006

On Jul 25, 2006, at 2:09 PM, Jonathan Grynspan wrote:

> Might NSPDFImageRep be of use to you?


I first used NSImage which created an NSPDFImageRep (ie, when I 
looked at the NSImage the only ImageRep there was the PDF one) but 
when I actually printed I got a low res screen version of the PDF 
data and I did not see how to change that.  I was going to 
investigate that again as well as I thought about it when I went to 
bed at 4am this morning :-)

Chad

>
> -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

>
> _______________________________________________
> MacOSX-dev mailing list
> <email_removed>
> http://www.omnigroup.com/mailman/listinfo/macosx-dev