participate


Java Programming - Java API's to Read PDF document
<<   Back to Forum  |   Give us Feedback
This topic has 14 replies on 1 page.
Naveen_Gubbala
Posts:1
Registered: 1/20/06
Java API's to Read PDF document   
Jan 20, 2006 2:52 AM

 
Could you please tell me about the JAVA API's to read a PDF document
 
CeciNEstPasUnProgrammeur
Posts:31,808
Registered: 7/23/02
Re: Java API's to Read PDF document   
Jan 20, 2006 2:56 AM (reply 1 of 14)  (In reply to original post )

 
I can,'t but www.google.com can.
 
mlk
Posts:10,971
Registered: 8/15/01
Re: Java API's to Read PDF document   
Jan 20, 2006 3:00 AM (reply 2 of 14)  (In reply to original post )

 
[url=http://www.google.co.uk/search?hl=en&hs=a5D&client=firefox-a&rls=org.mozilla:en-GB:official&q=java+pdf+list+of+libraries&spell=1]life skill[/url]
 
intelchip
Posts:1,367
Registered: 1/5/04
Re: Java API's to Read PDF document   
Jan 20, 2006 3:04 AM (reply 3 of 14)  (In reply to #2 )

 
http://www.lowagie.com/iText/
 
casperl
Posts:276
Registered: 8/3/05
Re: Java API's to Read PDF document   
Jan 20, 2006 3:08 AM (reply 4 of 14)  (In reply to #2 )

 
You may check this list:

http://www.java-tips.org/content/category/9/117/45/
 
surendra_indore
Posts:1
Registered: 3/2/06
Re: Java API's to Read PDF document   
Mar 2, 2006 6:48 AM (reply 5 of 14)  (In reply to original post )

 
Please Try this link:

http://today.java.net/pub/a/today/2005/10/20/accessing-pdf-with-acrobat-viewer-javabean.html

Regards
Surendra
 
kilyas
Posts:3,340
Registered: 28/08/00
Re: Java API's to Read PDF document   
Mar 2, 2006 6:51 AM (reply 6 of 14)  (In reply to #3 )

 
http://www.lowagie.com/iText/

thats a good one!!!!
 
gimbal2
Posts:5,223
Registered: 9/10/03
Re: Java API's to Read PDF document   
Mar 2, 2006 8:21 AM (reply 7 of 14)  (In reply to #6 )

 
iText is generally used to create pdf files, not to read them. The only free API I found to read PDF files is pdfbox.

http://www.pdfbox.org/
 
loveapple@sina.com
Posts:1
Registered: 2/7/07
Java API's to Read PDF document   
Feb 7, 2007 6:08 PM (reply 8 of 14)  (In reply to original post )

 
???
 
credo_sush
Posts:24
Registered: 5/4/07
Re: Java API's to Read PDF document   
May 23, 2007 6:09 AM (reply 9 of 14)  (In reply to #7 )

 
hi gimbal2..

i downloaded thePDFBox zip file... ii wana read a PDF File.. i searched for the code today..i didnt get. if u got the solution., . from whr u got the code for read PDF File.. can u pls send the link for that.

thanx in advance
sush
 
mlk
Posts:10,971
Registered: 8/15/01
Re: Java API's to Read PDF document   
May 23, 2007 6:19 AM (reply 10 of 14)  (In reply to #9 )

 
i downloaded thePDFBox zip file... ii wana read a
PDF File..

Give that I have no idea what you actually mean by "read", I'll have to guess.

I think you mean [url=http://snowtide.com/]convert the document into text[/url] then [url=http://www.adobe.com/products/acrviewer/acrvdnld.html?name=Accept#java]display the PD to a user[/url] before [url=http://www.lowagie.com/iText/]cutting the PDF up into pages[/url].
 
mlk
Posts:10,971
Registered: 8/15/01
Re: Java API's to Read PDF document   
May 23, 2007 6:21 AM (reply 11 of 14)  (In reply to #7 )

 
iText is generally used to create pdf files, not to
read them. The only free API I found to read PDF
files is pdfbox.

Depends on what you mean by "read", it can not display the PDF to an end user, can it can watermark, cut out pages and replace images.
 
credo_sush
Posts:24
Registered: 5/4/07
Re: Java API's to Read PDF document   
May 24, 2007 3:52 AM (reply 12 of 14)  (In reply to #11 )

 
hi..Mlk..

thanx for ur reply..

i mean read (get) the content of PDF File..


sush
 
lil_genius
Posts:1
Registered: 12/4/07
Re: Java API's to Read PDF document   
Dec 4, 2007 3:40 AM (reply 13 of 14)  (In reply to #12 )

 
Hey...maybe u can try this ::

private static string parseUsingPDFBox(string filename)
{
PDDocument doc = PDDocument.load(filename);
PDFTextStripper stripper = new PDFTextStripper();
return stripper.getText(doc);
}

hope this works...i found it on {http://sourcecode.aivietnam.net/SourceCode/tabid/54/GroupDetailId/40/ContentId/3522/Default.aspx} so u can try this.
 
firebunny
Posts:108
Registered: 2005.10.25.
Re: Java API's to Read PDF document   
Jan 25, 2008 4:08 AM (reply 14 of 14)  (In reply to #13 )

 
Hello,

I've read this thread carefully and for now I have another question. Is it possible to find and download a free PDF API to display PDF files (like https://pdf-renderer.dev.java.net/) and which supports HTML links and embedded objects? I need such an API to be able at least to support HTML links/anchors in document. I've tested Acrobat PDF bean and it is not so flexible, it shows only PDF on predefined fonts. It did not display my document properly, just blue background. I need something less buggy. I am implementing PDF viewer and 1 of core features is to support HTML links/anchors in documents and to display them properly. So i can click on them and URL will open, or an embedded object will open in another app.

Thanks a lot.
 
This topic has 14 replies on 1 page.
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics
    Users Online : 25
  • Guests : 132

About Sun forums
  • Oracle Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Oracle Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums