Hello !
Hi Christian,
Thanks for your query. I have tried to understand your query but unfortunately I have not completely understand your question. It would be great, If you share some more information about your issue along with doc/docx file.
Ok. I retry to explain it.
Hi Christian,
Please use the following sample code snippet for your requirement. Hope this helps you. Let us know, If you have any more queries.
Also, Please read following forum link for your kind reference.
https://forum.aspose.com/t/70873
<!–[if gte mso 9]>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:HyphenationZone>21</w:HyphenationZone>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>PL</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>AR-SA</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:DontVertAlignCellWithSp/>
<w:DontBreakConstrainedForcedTables/>
<w:DontVertAlignInTxbx/>
<w:Word11KerningPairs/>
<w:CachedColBalance/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
<m:mathPr>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val=“–”/>
<m:smallFrac m:val=“off”/>
<m:dispDef/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
</m:mathPr></w:WordDocument>
<![endif]–><!–[if gte mso 10]>
<![endif]–>
Document doc = new Document(MyDir + "test.docx");
NodeCollection formfields = doc.GetChildNodes(NodeType.FormField, true);
foreach (FormField formfield in formfields)
{
if (formfield.Type == Aspose.Words.Fields.FieldType.FieldFormCheckBox)
{
formfield.Checked = true;
//Your Code....
}
}
doc.Save(MyDir + "out.pdf");
My problem is not to fill the formfields with values. I have the problem that the pdf which comes out after the save is not fillable.
I want to have a PDF with checkboxes. This PDF should be a fillable form pdf so that I can send it to customers and they should be able to fill it out in the pdf reader.
Hi Christian,
Thanks for sharing the information. Aspose.Words mimics exactly what MS Word do so the requested feature is not available in Aspose.Words.
Is this something I can achieve if I use Aspose.pdf?
Hi Christian,
Yes you can create fill able forms by using Aspose.PDF. However, my colleagues from Aspose.PDF forum will give you better answer.
I am moving this thread to Aspose.PDF forum and my colleagues will update you shortly.
Hi Christian,
Thanks for considering Aspose.Pdf.
Kindly check the following documentation links for details and code snippets about working with forms.
Moreover, please share the template PDF document with us so that we can test the scenario at our end.
We apologize for your inconvenience.
Thanks & Regards,
hi!
Hi Christian,
Thanks for your feedback. I am very sorry to share with you that the conversion feature from WORD to PDF format is not available in Aspose.Pdf. You can only convert WORD document into PDF format using Aspose.Words library. Aspose.Pdf for .NET is a tool to generate new PDF files and manipulate the existing files. You can create a new PDF document to achieve this functionality using Aspose.Pdf for .NET.
We are really sorry for this inconvenience.
Thanks & Regards,
cternek:
my question is: “Can I convert a Word-Document with checkboxes into a fill able PDF with aspose.pdf?”