Re: How to read an external pdf file from postgres?

From: Florents Tselai <florents(dot)tselai(at)gmail(dot)com>
To: Ian Lawrence Barwick <barwick(at)gmail(dot)com>
Cc: Amine Tengilimoglu <aminetengilimoglu(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to read an external pdf file from postgres?
Date: 2025-02-10 13:01:48
Message-ID: D2452509-620C-416D-AA9B-F606E622E826@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On 12 Jan 2022, at 4:35 PM, Ian Lawrence Barwick <barwick(at)gmail(dot)com> wrote:
>
> 2022年1月12日(水) 20:16 Amine Tengilimoglu <aminetengilimoglu(at)gmail(dot)com>:
>>
>> Hi;
>>
>> I want to read an external pdf file from postgres. pdf file will exist on the disk. postgres only know the disk full path as metadata. Is there any software or extension that can be used for this? Or do we have to develop software for it? Or what is the best approach for this? I'd appreciate it if anyone with experience could make suggestions.
>
> By "read" do you mean "open the file and meaningful extract data from it"? If
> so, speaking from prior experience, don't. And if you really have to, make sure
> the source PDF is guaranteed to be in a well-defined, predictable format
> enforceable by contract law and/or people with sharp pointy sticks. I have
> successfully suppressed the memories of whatever it is I once had to do with
> reading data from PDFs, but though the data was eventually imported into
> PostgreSQL, there was a lot of mangling probably involving a Perl module (other
> languages are probably available) before it got anywhere near the database.
>
>
> Reagrds
>
> Ian Barwick
>
> --
> EnterpriseDB: https://www.enterprisedb.com
>
>

https://github.com/Florents-Tselai/pgpdf

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Cihat Küçükbağrıaçık 2025-02-10 13:20:07 Re: Passwordcheck Extension Not Installing
Previous Message rob stone 2025-02-10 12:39:12 Re: PG-15.6: timeout parameters erroring out