PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 1:20 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu May 02, 2019 6:40 pm 
Offline

Joined: Tue Mar 12, 2019 8:02 pm
Posts: 3
Tried searching around and couldn't figure this out :(

Is it possible to remove a Field from an existing PDF with PDFsharp?


Top
 Profile  
Reply with quote  
PostPosted: Thu May 02, 2019 10:07 pm 
Offline

Joined: Tue Mar 12, 2019 8:02 pm
Posts: 3
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 138 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group