File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes accessing a pdf file using file upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "accessing a pdf file using file upload" Watch "accessing a pdf file using file upload" New topic
Author

accessing a pdf file using file upload

Arian Gerryts
Greenhorn

Joined: Mar 22, 2012
Posts: 11
I want to access a pdf file for the purpose of splitting it by using JFileChooser but PdfReader cannot read the file. The IOException reads "Publishing Letter.pdf not found as file or resource".



Is it possible to access the pdf file by using the JfileChooser for the purpose of splitting it?, how would I do it?
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

Where is the file?

Where are you executing the Class from?

Without a full path, it could be looking in the wrong place(s).

WP
 
 
subject: accessing a pdf file using file upload