IKVM has very limited AWT support and therefore I would be very
surprised if PDFToImage worked. I think you'll have to find a different
solution to convert your PDFs.

On the IKVM website can find this:
"IKVM.AWT.WinForms.dll: Very limited and broken implementation of a few
AWT peers. This is a low priority issue for me."

On 13.01.2009 19:46:47 A S wrote:
> Hi Everyone.  I had have written a simple program with the line:
> ....
> PDFToImage.main(new string[] {"C:\\Documents and 
> Settings\\Administrator\\Desktop\\myMergedPdf.pdf","-imageType 
> jpg","-password","-startPage 1","-endPage 1","-outputPrefix C:\\Documents and 
> Settings\\Administrator\\Desktop\\astronaut"});
> ....
> And it yields the following message from Microsoft CLR Debugger:
> ---
> "An unhandled exception of type 'java.awt.AWTError' occurred in 
> PDFBox-0.7.3-dev.dll
> Additional information: Cannot load AWT toolkit: ikvm.awt.NetToolkit, 
> IKVM.AWT.WinForms, Version=0.38.0.2, Culture=neutral, 
> PublicKeyToken=13235d27fcbfff58"
> ---
> All I can say for certain is that, inside my .NET SDK IDASM tool, I'm looking 
> right at a what appears to be an "ikvm.awt.NetToolkit" class.  The 
> Configuration.java I dug for ikvm-0.38.0.2/openjdk says:
> ---
> String default_awt_peer_toolkit = "ikvm.awt.NetToolkit, IKVM.AWT.WinForms, 
> Version=0.38.0.2, Culture=neutral, PublicKeyToken=13235d27fcbfff58";
> ---
> I am using a PDFBox DLL that I had to build from scratch (using Ant), because 
> my assembly cache wouldn't admit the bin dist. download of that file for like 
> of a "strong name."  One of the lines in the Ant command line feedback does 
> say this:
> ---
>     [javac] C:\ProgramFiles\PDFBox-0.7.3\src\org\pdfbox\PDFDebugger.java:346: 
> wa
> rning: [deprecation] show() in java.awt.Window has been deprecated
>     [javac]         viewer.show();
>     [javac]               ^
>     [javac] C:\ProgramFiles\PDFBox-0.7.3\src\org\pdfbox\PDFReader.java:224: 
> warn
> ing: [deprecation] show() in java.awt.Window has been deprecated
>     [javac]         viewer.show();
> ---
> I don't know whether this is related to my problem.
> Can anyone help?  Thanks.
> 
> 
>       




Jeremias Maerki

Reply via email to