Re: Using CALayer to display a PDF ?

2025-01-05 Thread James Walker via Cocoa-dev
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

Re: Using CALayer to display a PDF ?

2025-01-05 Thread Alex Zavatone via Cocoa-dev
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

Re: Using CALayer to display a PDF ?

2025-01-05 Thread Gabriel Zachmann via Cocoa-dev
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