<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Read a PDF file in sas in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-a-PDF-file-in-sas/m-p/853713#M42004</link>
    <description>I understood that I am not able to read the image stored in the PDF file. Do we have any option if the PDF is having a table format data, can we import the PDF file into SAS?</description>
    <pubDate>Fri, 13 Jan 2023 14:25:05 GMT</pubDate>
    <dc:creator>saswiki</dc:creator>
    <dc:date>2023-01-13T14:25:05Z</dc:date>
    <item>
      <title>Read a PDF file in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-a-PDF-file-in-sas/m-p/853697#M42001</link>
      <description>&lt;P&gt;Hi Experts,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement where I have to read a PDF file in SAS; the PDF file is having screenshot of some bills. Can we import this data in SAS as image; If this is not possible, can anyone tell me how to read a readable table format data stored as PDF in SAS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 12:57:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-a-PDF-file-in-sas/m-p/853697#M42001</guid>
      <dc:creator>saswiki</dc:creator>
      <dc:date>2023-01-13T12:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Read a PDF file in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-a-PDF-file-in-sas/m-p/853710#M42002</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You might be able to do something like find a program that would translate the document to Word format or plain text format. The challenge that I think you'll run into is that PDF is a proprietary file type. My understanding was that it was stored in binary form. For example, if I create a little table in a PDF file -- just a table, no other text -- from the first 5 rows of SASHELP.CLASS, and then try to open the PDF file in Notepad, it is unreadable, although in Adobe Reader, it is clearly just a little table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1673618692265.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79365i4474CFEDBE0A6567/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1673618692265.png" alt="Cynthia_sas_0-1673618692265.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The XML metadata describing the document does not contain any of the table, but the table is stored in the unreadable section at the top of the file. So I think your task is going to be hard without looking for 3rd party tools to translate the PDF into text.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 14:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-a-PDF-file-in-sas/m-p/853710#M42002</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-01-13T14:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Read a PDF file in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-a-PDF-file-in-sas/m-p/853711#M42003</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/436197"&gt;@saswiki&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Experts,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a requirement where I have to read a PDF file in SAS; the PDF file is having screenshot of some bills. Can we import this data in SAS as image; If this is not possible, can anyone tell me how to read a readable table format data stored as PDF in SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you needed take the PDF file apart and show how pick out the image?&amp;nbsp; or do you just need to store the PDF file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either way it is not something you would store in a SAS dataset.&amp;nbsp; Store the files into a file system.&amp;nbsp; You could then store a filename or a URL path to the file into a character variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An image is not something that Foundation SAS would have any tools to deal with.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 14:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-a-PDF-file-in-sas/m-p/853711#M42003</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-01-13T14:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Read a PDF file in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-a-PDF-file-in-sas/m-p/853713#M42004</link>
      <description>I understood that I am not able to read the image stored in the PDF file. Do we have any option if the PDF is having a table format data, can we import the PDF file into SAS?</description>
      <pubDate>Fri, 13 Jan 2023 14:25:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-a-PDF-file-in-sas/m-p/853713#M42004</guid>
      <dc:creator>saswiki</dc:creator>
      <dc:date>2023-01-13T14:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Read a PDF file in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-a-PDF-file-in-sas/m-p/853715#M42005</link>
      <description>Thanks Cynthia; I understood that we cant directly import the images into SAS. The requirement is to import the PDF which has screenshots and load the screenshots into Azure. I think we should have to use VBA or other tools; Thanks for your time on this.</description>
      <pubDate>Fri, 13 Jan 2023 14:28:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-a-PDF-file-in-sas/m-p/853715#M42005</guid>
      <dc:creator>saswiki</dc:creator>
      <dc:date>2023-01-13T14:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Read a PDF file in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-a-PDF-file-in-sas/m-p/853724#M42006</link>
      <description>&lt;P&gt;I would look to other languages (e.g. python) for this sort of task.&amp;nbsp; But surprisingly (to me) there is a paper that uses SAS to read a pdf file:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings16/9320-2016.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings16/9320-2016.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 14:47:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-a-PDF-file-in-sas/m-p/853724#M42006</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-01-13T14:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Read a PDF file in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-a-PDF-file-in-sas/m-p/853839#M42015</link>
      <description>Ok, do not use VBA for anything. I am converting thousands of lines of VBA due to age and the fact that it is deprecated. No need to go backwards.&lt;BR /&gt;&lt;BR /&gt;I read pdf using C# and GemBox software. You should be able to find a nuget package that can read it using C#. Python should also be able to do it.&lt;BR /&gt;You can also use an RPA tool like UiPath or PowerAutomate. &lt;BR /&gt;&lt;BR /&gt;There are also tools that can export PDF to HTML. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 14 Jan 2023 00:05:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-a-PDF-file-in-sas/m-p/853839#M42015</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2023-01-14T00:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Read a PDF file in sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-a-PDF-file-in-sas/m-p/882508#M43226</link>
      <description>&lt;P&gt;1)First read the pdf file as data file via excel, feeding the page which you need&lt;/P&gt;&lt;P&gt;2)This creates a tab in excel with structured data&lt;/P&gt;&lt;P&gt;3)then you can read in sas (Suitable for not many tables)&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 18:35:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-a-PDF-file-in-sas/m-p/882508#M43226</guid>
      <dc:creator>srk_2023</dc:creator>
      <dc:date>2023-06-26T18:35:56Z</dc:date>
    </item>
  </channel>
</rss>

