×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Not sure if I should put this in Java-400..
I have used PDFExtract from the jar successfully to extract the text from a
PDF
I'm now trying to use PDFToImage as part of my web page printing problem.
When I run this command
/JavaPDF/pdfbox-app-1.6.0.jar PDFToImage -imageType jpg -outputPrefix
/artjr/ -startPage 1 -endPage 1 /jack/test.pdf
I get the following errors. I have java.awt.headless=true in my
/QIBM/UserData/Java400, and it works for the PDFExtract
Any ideas? Thanks
Exception in thread "Thread-0" java.awt.AWTError: AWT class or API used
witho
ut specifying property os400.awt.native=true or java.awt.headless=true
at java.lang.Throwable.<init>(Throwable.java:196)
at java.lang.Error.<init>(Error.java:49)
at java.awt.AWTError.<init>(AWTError.java:30)
at
com.ibm.as400.system.NoGraphicsEnvironment.<init>(NoGraphicsEnviro
nment.java:48)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstr
uctorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delegati
ngConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:375)
at java.lang.Class.newInstance(Class.java:328)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsE
nvironment.java:68)
at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:113)
at java.lang.Class.forName(Class.java:189)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.