File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,10 @@ dialog for users who open the generated PDF.
4848
4949If you want to flatten your form, that is, keeping all form field contents while
5050removing the form fields themselves, you can set the ` flatten ` parameter in
51- ` update_page_form_field_values() ` to ` True ` , to convert form field contents to
52- regular PDF content, and then use ` writer.remove_annotations(subtypes="/Widget") `
53- to remove all form fields. This will result in a flattened PDF.
51+ {func}` ~pypdf._writer.PdfWriter.update_page_form_field_values ` to ` True ` . This
52+ will convert form field contents to regular PDF content. Afterwards, use
53+ {func}` ~pypdf._writer.PdfWriter.remove_annotations ` with ` subtypes="/Widget" `
54+ to remove all form fields to get an actual flattened PDF.
5455
5556## Some notes about form fields and annotations
5657
You can’t perform that action at this time.
0 commit comments