PDFsharp & MigraDoc Foundation http://forum.pdfsharp.com/ |
|
Remove AcroForm Field from PDF http://forum.pdfsharp.com/viewtopic.php?f=2&t=3949 |
Page 1 of 1 |
Author: | MoishyS [ Thu May 02, 2019 6:40 pm ] |
Post subject: | Remove AcroForm Field from PDF |
Tried searching around and couldn't figure this out Is it possible to remove a Field from an existing PDF with PDFsharp? |
Author: | MoishyS [ Thu May 02, 2019 10:07 pm ] |
Post subject: | Re: Remove AcroForm Field from PDF |
ok, figured it out You need to remove all the Elements of this field, and the Field won't be there afterward. Code: For i = 0 To Field.Elements.Count - 1
Field.Elements.Remove(Field.Elements.ElementAt(0).Key) Next |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |