Skip to content

Is possible to extract the exact position from an XObject? #4345

@pau1996

Description

@pau1996

Hello, I want to extract the bbox from an XObject so that I can add a border in the original PDF document, I can extract the XObject properly as seen in this example: https://github.com/pymupdf/PyMuPDF-Utilities/tree/master/examples/extract-xobj, but when I try to extract the exact position I'm always getting something like: BBox [ 0 0 531 650 ] so it is always starting in (0,0) also tried applying the transformation matrix which is something like: Matrix [ .75 0 0 .75 0 0 ], but it doesn't affect the position. Is this something it can be done right now? Can you help me with that? Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions