<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>PDF on Saleem Ansari</title>
    <link>/tags/pdf/</link>
    <description>Recent content in PDF on Saleem Ansari</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <copyright>(c) 2024 Saleem Ansari</copyright>
    <lastBuildDate>Sun, 20 Dec 2015 04:12:29 +0530</lastBuildDate>
    <atom:link href="/tags/pdf/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Extract Text From PDF</title>
      <link>/2015/12/20/extract-text-from-pdf/</link>
      <pubDate>Sun, 20 Dec 2015 04:12:29 +0530</pubDate>
      <guid>/2015/12/20/extract-text-from-pdf/</guid>
      <description>Extract Text from Images in multi-page PDF To extract text from PDF, you would need two software installed on your machine.&#xA;ghostscript&#xA;tesseract OCR&#xA;Installing these on Fedora is very easy:&#xA;$ sudo yum install -y ghostscript tesseract Now if your PDF file is named story.pdf the you can extract text as follows:&#xA;$ ghostscript -dNOPAUSE -dBATCH -sDEVICE=pngalpha -r300 -sOutputFile=&amp;quot;page%03d&amp;quot;.png story.pdf $ for f in page*.png ; do tesseract $f $f.</description>
    </item>
    <item>
      <title>Extract Text from from multi-page PDF with only Images</title>
      <link>/2013/07/19/extract-text-from-from-multi-page-pdf-with-only-images/</link>
      <pubDate>Fri, 19 Jul 2013 00:00:00 +0000</pubDate>
      <guid>/2013/07/19/extract-text-from-from-multi-page-pdf-with-only-images/</guid>
      <description>Sometimes there are only images in a PDF. In such cases you can not select text to copy / paste or just for reference.&#xA;To extract text from an Image or a PDF containing only images, I used Tesseract OCR Engine and Ghostscript. I am running Fedora 19 at the moment, however these steps should apply to an older version of Fedora or Ubuntu. ( I believe this can be done on Windows as well ).</description>
    </item>
  </channel>
</rss>
