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

Add image to PDF with different coordinate origin #866

Open
feelgood-interface opened this issue Jul 5, 2024 · 0 comments
Open

Add image to PDF with different coordinate origin #866

feelgood-interface opened this issue Jul 5, 2024 · 0 comments

Comments

@feelgood-interface
Copy link

I have a PDF where the coordinate origin is not at [0, 0]. When I add an image to the PDF it is inserted at the center.

As a workaround I am reading the raw media box value and adjust the placement rectangle accordingly.

When the Page.MediaBox values are normalized, shouldn't the provided placement rectangle also be in normalized format?

pdf_mediabox

@feelgood-interface feelgood-interface changed the title Add image Add image to PDF with different coordinate origin Jul 5, 2024
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