Why are all the amounts values negative?

(bankstatementconverter.com)

28 points | by 4pkjai 5 days ago

3 comments

  • happymellon 4 days ago
    Does this end on a cliffhanger?

    Did they try one method, and what was the feedback?

    • 4pkjai 3 days ago
      I did try method number two, and it worked. I should update this post.
  • TZubiri 55 minutes ago
    OCR the PDF.

    It's the ground truth, and it's not like it's more complex than parsing a pdf, at this point, the technology for OCR might even be better than PDF parsing, which is full of accidental instead of natural complexity.

  • engkimo 5 days ago
    This is a great example of why a PDF’s text layer is not necessarily the same as its visible content.

    I’d be cautious about making “non-black means invisible” the general rule. A possible middle ground between raw text extraction and full OCR would be to render the page, map each extracted glyph’s bounding box back to the rendered pixels, and discard glyphs that have almost no contrast with their local background.

    That would preserve the exact embedded text for visible characters while using rasterization only to determine visibility.

    Has anyone tried this kind of hybrid approach?