Skip to content

Completeness / clipping #155

@newinnovations

Description

@newinnovations

This is just to check if my observations are correct and I don't start implementing stuff in a fork that is already there.

Basically I have the need for a variant of Page::to_pixmap that allows for a clipping rectangle for zooming into an area. There doesn't seem to be a utility function in mupdf-c that implements that. In py-mupdf it was added in 2016 (pymupdf/PyMuPDF#54).

I set out to implement the functionality in Rust, but could not find references to functions like fz_transform_rect and fz_round_rect.

My question boils down to:

  • is there a variant of to_pixmap available that allows for a clipping rectangle
  • if not, are the basic mupdf functions required to implement it available through mupdf-rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions