Skip to content

Only extract data from the first page of the PDF #2

@DelBierzo

Description

@DelBierzo

Thank you for your work, it works wonderfully, but...

It only extracts data from the first page of the PDF.
I get the value using regex but it gives an unknown error, and when applying the {{ value[1] }} template, the same.

With IMAP, when I receive an email with an attached PDF file, I download the attachment using a shell command and a Python script. Then, using your application, I extract the data and create sensors.

My solution was to use another Python script to convert the PDF of 5 pages to a single sheet, and it worked perfectly.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions