× 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.



That worked. Thanks!

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Dan Kimmel
Sent: Thursday, June 06, 2013 9:58 AM
To: Midrange Systems Technical Discussion
Subject: RE: PDFBox JAR question

There's missing information that makes this almost impossible to decipher.

/JavaPDF/pdfbox-app-1.6.0.jar PDFToImage -imageType jpg -outputPrefix
/artjr/ -startPage 1 -endPage 1 /jack/test.pdf

This isn't a CL command and it isn't a valid QSH line. Did you mean

java -jar /JavaPDF/pdfbox-app-1.6.0.jar PDFToImage -imageType jpg
-outputPrefix /artjr/ -startPage 1 -endPage 1 /jack/test.pdf

That would make it a valid QSH line, I think, depending on how the manifest
in the jar was set up.

If so, try it like this

java -Djava.awt.headless=true -jar /JavaPDF/pdfbox-app-1.6.0.jar PDFToImage
-imageType jpg -outputPrefix /artjr/ -startPage 1 -endPage 1 /jack/test.pdf
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jack Tucky
Sent: Wednesday, June 05, 2013 2:31 PM
To: Midrange Systems Technical Discussion
Subject: PDFBox JAR question

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)




--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.