Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Fri Mar 15, 2024 10:48 am

I try to edit fiels from one pdf but when i get the form it always returns Nothing on form object.

Dim form As PdfFormWidget = TryCast(doc.Form, PdfFormWidget)

i Attached the file.

jgomisr.acigrup
 
Posts: 2
Joined: Wed Mar 13, 2024 5:09 pm

Mon Mar 18, 2024 3:43 am

Hello,

Thanks for your inquiry.
Please be aware that the pdf file you provide does not include form fields, some of the content in the document that looks like a form field is actually not a form field, they are just ordinary path objects. So when using "Dim form As PdfFormWidget = TryCast(doc.Form, PdfFormWidget)", it will return nothing.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 454
Joined: Mon Dec 27, 2021 2:23 am

Mon Mar 18, 2024 11:22 am

OK,
how can i write text on this objects

Thanks

jgomisr.acigrup
 
Posts: 2
Joined: Wed Mar 13, 2024 5:09 pm

Tue Mar 19, 2024 1:18 am

Hello,

Thanks for your reply.
Sorry, our product currently does not support obtaining path objects from PDF files, so we are unable to draw text on these objects.Thank you for your understanding.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 454
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.PDF