• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Read the pdf file using java

 
Megan James
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
could any one help me how to read the pdf file with the corresponding font family, stlye and size using JAVA.
 
Daron Tan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try apache pdfbox
But there could have some issue if you want to edit the file
 
Megan James
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
could give the sample code for convert pdf text to String using java with the font style and size.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think there's a Java library that provides access to layout and styling information of a PDF file. The best that can be done is to extract the text; both JPedal and PDFBox can do that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic