|
Project Information
-
Project feeds
- Code license
-
Apache License 2.0
-
Labels
Java,
PDF,
Browser,
embedded,
Viewer,
html,
javascrip,
AJAX,
jQuery,
FlyingSaucer,
iText,
fast
Featured
Links
|
do-pdf - The solution to all web based PDF viewing problemsShowing a pdf on a web page is a pretty standard requirement for a lot of applications. Usually people take following approaches for showing the pdf - Render the PDF document directly on the page
- Let users download the PDF document
- User iframes to embed the PDF document in the part of your web page and rest of the space is used by other content.
Following are the cons associated with these approaches - User loses context of the site he was browsing
- User is navigated away from your web page
- Only after downloading the entire complete document, user can start viewing it
- It is not possible for the user to view only parts of the document quickly.
- If the document is very big, this would mean a significant waiting time
- Special browser plug-in is required to view the PDF directly in the browser.
- Host website has to let user download the PDF. May be the host website wanted users to read the PDF document but not download it. Because once the PDF document is downloaded, thousands of copies can be made and distributed.
do-pdf is the solution to all of the above problems! do-pdf enables users to embed a PDF viewer directly in the browser. It will integrate seamlessly on the web page where the viewer is embedded. Features- Embed a PDF reader directly in a web-browser
- Allow users to navigate between pages. This is improved, performance should be much better now
- Zoom in and Zoom out on a PDF page
- Uses only HTML, Javascript and CSS to show the viewer
- Use AJAX to get the PDF pages only when required. do-pdf uses the Just in Time approach to load the PDF pages as and when required.
- Users do not have to wait for the entire PDF document to be downloaded
- No matter how big is the PDF document, users can start reading it as soon as the first page is loaded.
- do-pdf is very very fast.
- Allows users to download the original PDF if required
- Allows users to scroll between pages
Want to see it in action- The demo shows a PDF document embedded in the webpage. See for yourself how fast it loads up here
- I have uploaded some screen shots of the demo application here
Love it! What to use it already! The download wayThe build from source way- Clone the repository
- You will need Mercurial to download the sources
- Look at the ReadMe.txt under core and demo directories for build instructions
- You will need Maven to build the application
- Go inside the demo directory and run the startTomcat.cmd. This will build the application and run the demo application in an embedded tomcat server.
- To browse the demo application use the url http://localhost:8080/demo
|