Hello everyone
i want to convert pdf file in docx file, which contain table, text as well as image
can you tell me any any class or method which help to me to extract in the same way as it pdf file have
i m using pdfbox api

Recommended Answers

All 3 Replies

Hello everyone
i want to convert pdf file in docx file, which contain table, text as well as image
can you tell me any any class or method which help to me to extract in the same way as it pdf file have
i m using pdfbox api

I think these links should get you on the right track:http://www.printmyfolders.com/Home/PDFBox-Tutorial, next is:http://www.prasannatech.net/2009/01/convert-pdf-text-parser-java-api-pdfbox.html and this:http://stackoverflow.com/questions/2161438/generating-docx-in-java and finally here for some extra information:http://stackoverflow.com/questions/2793757/how-to-convert-pdf-to-doc-file-in-java

hi there
First of all thanks for the reply

now i want to tell you that
my file is look like that

OPEN SC ST NT1 NT2 NT3
00108 DEF1O
GNT1O 8742 137
GNT2O 15860 121
GNT3O 8279 139

but the output look like

OPEN SC ST NT1 NT2 NT3
00108 DEF1O
GNT1O 8742
137

GNT2O 15860
121

GNT3O 8279
139


Which is not acceptable
I use PDFTextStripper stripper = new PDFTextStripper();
please suggest me as soon as possible

I would said that conjuring code out of thin air is hard to do. What about you share with us the code you use, attach example PDF document you use and maybe we will look into it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.