This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes PDFbox gives headless exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "PDFbox gives headless exception" Watch "PDFbox gives headless exception" New topic
Author

PDFbox gives headless exception

Stan F Smith
Greenhorn

Joined: Jun 28, 2011
Posts: 20
Hello,

I am tying to create a site that at one point automatically opens the browsers printing dialog box with a streamed PDF.
It currently works on my machine but when we deploy to the test server i get the error:

java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it. at sun.print.PSPrinterJob.printDialog(PSPrinterJob.java:401)
     at org.pdfbox.pdmodel.PDDocument.print(PDDocument.java:......

Can someone please help me solve this.

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PDFbox gives headless exception
 
Similar Threads
Cant use object from another class
WA #1.....word association
Posting to bump up my count...
Text box value is not being completely filled with request attribute
The x900 effect ?