Save as fillable pdf

Hello !


I am using Aspose.Word to generate dynamically documents.
Is it possible to save this with Aspose.Words as a fillable PDF?

thx

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.


I have a docx docment with some checkboxes on it. I modify/create this document with Aspose.Words. I am saving this thru Aspose.Word as PDF. Now my question is, if it is possible to make a fillable PDF out of it.

I tried it and it doesn’t look like I am able to make a PDF Form out of it and want to have an approval or and explanation what I have to do to make it a fillable PDF.

thx
christian

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]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

<![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.


thx

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!


my question is: "Can I convert a Word-Document with checkboxes into a fill able PDF with aspose.pdf?"

thx

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?”

Hi Christian,

Thanks for contacting support.

I am representative from Aspose.Pdf team and as shared by Rashid, Aspose.Pdf for .NET supports the capability to create PDF documents from scratch as well as it supports the feature to manipulate/edit existing PDF documents. As per your requirement, you can save the source Word document containing CheckBoxes into PDF format using Aspose.Words for .NET and once the PDF file is generated, you may try using Aspose.Pdf for .NET to fill the data inside PDF form. Please visit the following links for information on


In case I have not properly understood your requirement or you have any further query, please feel free to contact. We are sorry for your inconvenience.