Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PDF to Text Conversion

Status
Not open for further replies.

mehrnosh

Programmer
Dec 17, 2002
35
HK
Hi
I know this sound tough but is there any way by which we can convert a PDF file to Text file. or is there a source code available showing the format of PDF file

Thanks
 
It really depends on the PDF file. If it is an image... you won't be able to. If it is text, then Adobe has a plug-in for the reader to see just the text (actually for an assesability plug-in). Or open it up in a text editor. iSeriesCodePoet
IBM iSeries (AS/400) Programmer
[pc2]
 
Xpdf, freeware offered under the GNU General Public License version 2, contains a component called "pdftotext" that writes any text in a Portable Document Format file to a plain text file. Physical (relative position) formatting can be preserved using the '-layout' configuration option.

ftp://ftp.foolabs.com/pub/xpdf/xpdf-2.02-win32.zip
 
If you simply looking for the text content, Acrobat Edit|Copy File to Clipboard, will copy all the text in the PDF file to the Clipboard and you can paste it into another document.

Another option is to export as EPS or Postscript, but that gets you a lot of Postscript commands as well.
 
A similar solution to the one offered by BinzerOrg is to use GSView, found at This is another open source application. It does require that you install Ghostscript, which is also open source. Both apps run on Windows and are relatively straightforward. GSView actually uses Ghostscript behind the scenes--it's a user-friendly front end for Ghostscript, and as such it allows you to create PDFs, extract text, and generally convert from/into a variety of formats (PDF, PS, TIFF, text, etc.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top