Hi,
I doubt you're using 2.0 - PDFPagePanel does not exist in 2.0.
Your code now has three classes, two of them have a "main", and two of
them extend "JFrame". I assume that "NewJFrame" is the one to start.
You're closing the document while it is displayed. Even if I remove that
line "inputPDF.close();", the document is still being closed (that is
the warning "You did not close a PDF Document").
I suspect you're "losing" some object that (indirectly) holds the
PDDocument object. I did manage to avoid the effect by keeping this
object as static, but even I can't display the page :-(
The problem is that I'm not a java GUI specialist. Last time we needed
such expertise, we hired a guy and google paid the bill (Google summer
of code 2015).
Tilman
Am 26.12.2015 um 18:44 schrieb [email protected]:
Hi
Thank you for your kind reply.
Sorry that my code was incomplete, I have attached a fuller version to
this message.
I am using 2.0.0 .
When you say "PrepareFile is never constructed " . The constructor is
in the file or am I missing something?
Kind Regards
Gerry
On 12/26/2015 06:09 PM, Tilman Hausherr wrote:
Hi,
Assuming that you are using 1.8.10, use the PDFReader command line
application to check that PDFbox 1.8.10 can display your file.
The code you attached is incomplete. The imports and (probably) the
line "public class pdfViewer extends JFrame {" is missing.
PrepareFile is never constructed. (Maybe that too, is in the missing
lines - maybe some static code?)
Tilman
Am 26.12.2015 um 17:13 schrieb [email protected]:
Hi
I am trying to get a pdf file to display using pdfbox.
I can only get a plain box.
I am not sure what I am doing wrong, I have attached the two files
to this email, please forgive me if I have got something wrong I am
just a beginner.
Any help gratefully received.
Gerry
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]