We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Merge fields problem


I try to flatten fields from a pdf but all the text disappears. I use the following code :

<!–[if gte mso 9]>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<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”/>

public static void FlattenAllFields(string pdf) {

using (Aspose.Pdf.Facades.Form pdfForm = new Aspose.Pdf.Facades.Form()) {


if (pdfForm.FieldNames.Length > 0) {






Best regards,

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tableau Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";}


Hi Fabien,

Thanks for contacting support.

I have tested the scenario using latest release of Aspose.Pdf for .NET 11.2.0 in VisualStudio 2015 project with .NET Framework 4.5.2 and I am unable to notice any issue. For your reference, I have also attached the resultant file generated over my end.

Can you please try using the latest release and share your findings.


Thank you. I just open the attached pdf file but all text are missing !?
For example, can you read “BAUMIT SAS” in the field “Dénomination/sigle” ?

Best regards

Hi Fabien,

We are sorry for the confusion. I have tested the scenario again and noticed the reported issue of missing text in flattened PDF, so logged a ticket PDFNEWNET-40245 in our issue tracking system for further investigation and rectification. We will notify you as soon as it is resolved.

We are sorry for the inconvenience.

Best Regards,