Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full page images are currently clipped #221

Open
InnovatorEsq opened this issue Jan 23, 2025 · 0 comments
Open

Full page images are currently clipped #221

InnovatorEsq opened this issue Jan 23, 2025 · 0 comments

Comments

@InnovatorEsq
Copy link

Please remove the clipping for full page images in PDF. Currently it's clipping in get_page_output:

        # ignore full page graphics
        page_clip = page.rect + (36, 36, -36, -36)
        paths = [
            p
            for p in page.get_drawings()
            if not intersects_rects(p["rect"], tab_rects0)
            and p["rect"] in page_clip
            and p["rect"].width < page_clip.width
            and p["rect"].height < page_clip.height
        ]

This is problematic for pdf with full page images.
Change to the following:

        paths = [
            p
            for p in page.get_drawings()
            if not intersects_rects(p["rect"], tab_rects0)
        ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant