-
|
Is it possible to flatten an entire PDF or do I need to go through each annotatin/field? |
Beta Was this translation helpful? Give feedback.
Answered by
gettalong
Mar 10, 2025
Replies: 1 comment 2 replies
-
|
You can iterate through the pages and call |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
rosanelli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can iterate through the pages and call
page.flatten_annotations, like I do in thehexapdf modifyCLI command (see https://github.com/gettalong/hexapdf/blob/master/lib/hexapdf/cli/modify.rb#L122-L128).