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

Allow applying arbitrary transformations to images #3235

Open
Rodrigodd opened this issue Mar 7, 2024 · 1 comment
Open

Allow applying arbitrary transformations to images #3235

Rodrigodd opened this issue Mar 7, 2024 · 1 comment
Labels
enhancement postpone postpone to a future version

Comments

@Rodrigodd
Copy link

Is your feature request related to a problem? Please describe.

It is not currently supported to add an image with arbitrary transformation, which is needed when trying to rebuild a PDF from the data extracted from another PDF. See #3230.

Describe the solution you'd like

Add a parameter morph to Page.insert_image, similar to the one found in the Shape API. This parameter could also be added to Page.show_pdf_page or to a new method like Shape.insert_image.

Describe alternatives you've considered

There is currently a workaround for this by abusing Page.show_pdf_page, see #3230 (comment).

Additional context

Page.get_image_info already returns a transform of the image, that could be used in the proposed morph parameter.

@JorjMcKie
Copy link
Collaborator

As mentioned in the Discussions section, I see no way to include this in our near to medium term planning.
So I'm flagging this as "postpone" for now.

@JorjMcKie JorjMcKie added the postpone postpone to a future version label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement postpone postpone to a future version
Projects
None yet
Development

No branches or pull requests

2 participants