Skip to content

Detect Blank Page #39

@aghausman

Description

@aghausman

Is your feature request related to a problem? Please describe.
The library should be able to detect blank pages. IPageReader should have a property or a function to return the number of objects or anything that can help to identify if the current page is empty.

Describe the solution you'd like
As per my limited understanding of pdfium, probably use FPDFPage_CountObject function to get the number of objects. Not 100% sure, open to more discussions.

Describe alternatives you've considered
IPageReader.GetText is always empty even when the page is not blank. I tested on the pdfs that have images and text both.
IPageReader.GetImage pretty much return the page as an image. Can a blank image be used to identify if the page is blank?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions