Class ExtractedAttachmentText
- Namespace
- MailFathom.Application.Emails.Extraction.Attachments
- Assembly
- MailFathom.Application.dll
Carries what one attachment yielded as text, and which of its pages yielded none.
public sealed record ExtractedAttachmentText : IEquatable<ExtractedAttachmentText>
- Inheritance
-
ExtractedAttachmentText
- Implements
- Inherited Members
Constructors
- ExtractedAttachmentText(string, int, IReadOnlyList<int>, IReadOnlyList<AttachmentTextSegment>)
Carries what one attachment yielded as text, and which of its pages yielded none.
Properties
- PageCount
How many pages the document was read as. A PDF page, a presentation slide, and a worksheet each count as one; a word-processing document counts as one page whatever it prints as, because Office Open XML records no pagination and reading one would mean laying the document out.
- PagesWithoutText
The one-based numbers of the pages that yielded no text at all, in ascending order. A page here is the exact target a later optical-character-recognition pass would read, which is why it is a list of pages rather than a flag on the document: a scanned page bound into an otherwise textual report is the ordinary case.
- Pictures
Gets the pictures the document carries that a model may read, in reading order.
- Segments
Where each of those pages begins in Text, in reading order, so a passage cut out of the document can name the place it was read from. It holds one entry per counted page, including the ones that yielded nothing — a page that contributed no characters still begins where the next one does, and dropping it would move every later passage onto the wrong page.
- Text
The extracted text, which is untrusted content a sender composed. Nothing renders it as markup, nothing logs it, and nothing downstream may treat it as anything but opaque characters.