[GNC] Third party OFX/CVS providers

Glenn Fowler gfowler1 at outlook.com
Sat Aug 6 12:43:18 EDT 2022


My scripts are in PowerShell. For GhostScript I'm just using CLI:

"C:\Program Files\gs\gs9.56.1\bin\gswin64c.exe" -dBATCH -dNOPAUSE -dQUIET
-dNoCancel -sDEVICE=txtwrite -sOutputFile=%stdout "InputFile.pdf"

This give you the whole PDF and now just parse the text.

For iText7 I am using PSWritePDF module:

https://github.com/EvotecIT/PSWritePDF
https://www.powershellgallery.com/packages/PSWritePDF/0.0.19

You just use it's Cmdlet ConvertPDFToText:

Convert-PDFToText -FilePath "InputFile.pdf"

Now just parse the text.

On Sat, Aug 6, 2022 at 11:46 AM Tom Browder <tom.browder at gmail.com> wrote:

> On Sat, Aug 6, 2022 at 10:43 AM Glenn Fowler <gfowler1 at outlook.com> wrote:
> >
> > Look into GhostScript and iText7. I have used both to pull text out of
> PDF's easily in scripts.
>
> What program language? Can you show me an example of your code to do that?
>
> Thanks.
>
> -Tom
>


More information about the gnucash-user mailing list