Ivan Ooi wrote:
> hmm.... this really interesting.... PDF Kit... I didn't know anythings
> about this...
>
> Thanks for your tips!
>
> On 1/30/07, Doug Zwick <email@hidden> wrote:
>> Ivan Ooi wrote:
>>
>> > In Windows, I can embed acrobat reader in SWT using ActiveX but...
>> > how bout in Mac ?
>> > How can I do that ?
>>
>> Starting in 10.4 (IIRC), the Mac OS X frameworks includes "PDF Kit".
>> If it works at all like WebKit it should be embeddable using the
>> CocoaComponent class (included by Apple in the JVM). This is not a
>> trivial project, however. See the Java WebKit project on Source Forge
>> to see how it was done with WebKit.
I just noticed the "SWT" note. CocoaComponent is for use with Swing,
so that route might not help you. If SWT offers something similar
(i.e. a way to embed a Cocoa NSView) you might be in luck. Otherwise,
you may need to look at a pure-Java solution like Multivalent (IIRC
it is open source under GPL) and do your own SWT-based rendering. If
the SWT Browser (mentioned by another poster) embeds WebKit, you
might be able to get it to render PDFs via the browser plugin.
For more info on the native Cocoa frameworks (PDFKit, WebKit), do a
search on developer.apple.com.