Hi @ all,

 

I am using PDFBox v1.2.1 in .NET and I want to print a PDF-document like
that:

try

            {

                PDDocument pd = null;

                pd = PDDocument.load("C:\\Temp\\test2.pdf");

                pd.print();

            }

            catch (Exception ex)

            {

            }

 

But when I execute the program I got the following exception:

 java.security.AccessController.doPrivileged(Object , AccessControlContext ,
CallerID ) 

 java.security.AccessController.doPrivileged(PrivilegedAction action,
CallerID )

 java.awt.print.PrinterJob.getPrinterJob()

 org.apache.pdfbox.pdmodel.PDDocument.print()

 

I tried it with the java version and it is working great. But when I use it
with the .NET binaries  got the error above.

 

Do you have any ideas whats going on here resp. how I can solve this
problem?

 

Hope for fast reply

 

Thx, cheers chris

 

 

Reply via email to