On 1/5/25 9:47 AM, Gabriel Zachmann via Cocoa-dev wrote:
Thanks a lot to both of you!
I'm sure there's more than one way to do it, but one way is to create an
NSPDFImageRep. You can then get a CGImageRef from that, or on macOS,
create an NSImage and set that as the layer contents.
I forget to
Try it out!
> On Jan 5, 2025, at 11:47 AM, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> Thanks a lot to both of you!
>
>> I'm sure there's more than one way to do it, but one way is to create an
>> NSPDFImageRep. You can then get a CGImageRef from that, or on macOS,
>> create an NSImage and
Thanks a lot to both of you!
> I'm sure there's more than one way to do it, but one way is to create an
> NSPDFImageRep. You can then get a CGImageRef from that, or on macOS,
> create an NSImage and set that as the layer contents.
>
I forget to mention that I am developing an app for macOS. So