So you loaded a PDF in PDF.JS and you want to load another one without refreshing the browser and automatically go to a specific page.

Problem is, when you call PDFViewerApplication.open(), it will jump to the last page visited by the previously opened PDF.

To override this, set the initial bookmark like this.

Then call .open();

You figure importing a non-Eclipse project into Eclipse was easy, so is NetBeans. Ironic but when I tried to do so in NetBeans, it took me some time to figure it out.

To do so, just go to File menu and select New Project.

howto_import_nonnetbeans

Under “Categories” select “Java”

Under “Projects” select “Java Project with Existing Sources”

Then set the folder where your source files are located.

That’s it!

There may be cases when you call the delete() method in Java and your program does not delete the file. A case like this can  only mean that the file is still being used provided that the file exists.

Suggestions indicate that you need to close the stream that uses the file. However, if all else fails, a simple hack can be done to fix this problem.

Just call System.gc() and it should do the trick.

Related Posts Plugin for WordPress, Blogger...