Skip to content

Checkboxes values not visible in flattened PDF #296

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

Open
LKirst opened this issue Feb 19, 2025 · 0 comments
Open

Checkboxes values not visible in flattened PDF #296

LKirst opened this issue Feb 19, 2025 · 0 comments

Comments

@LKirst
Copy link

LKirst commented Feb 19, 2025

Describe the bug
convert_from_path() does not flatten tick boxes (and changes the appearance of radio buttons).

To Reproduce

from pdf2image import convert_from_path
images = convert_from_path("in.pdf")
im1 = images[0]
images.pop(0)
im1.save("out.pdf", "PDF", resolution=100.0, save_all=True, append_images=images)

Here is my test input pdf and the flattened output I generated:

in.pdf
out.pdf

Expected behavior
The checkbox that was ticked in my input file is no longer ticked in the flattened output. The round radio buttons have turned into boxes in the flattened output.

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