Garbage characters with copyright symbol in Aspose.pdf footer

I am trying to generate pdf with Aspose.pdf 10.7.0 version and using copyright symbol ‘©’ in the footer section of the pdf. I am getting garbage data in the odd pages of the pdf. However, if I use 10.5.0 dll, it works fine.

Hi Ankushdoe,


Thanks for contacting support.

I have tested the scenario using latest release of Aspose.Pdf for .NET 11.8.0 and I am unable to notice any issue when using following code snippet. For your reference, I have also attached the output generated over my end.

Can you please try using latest release and in case the problem still persists, please share your code snippet, so that we can again try replicating the issue in our environment. We are sorry for this inconvenience.

[C#]

//open document

Document pdfDocument = new Document();

pdfDocument.Pages.Add();

//create footer

TextStamp textStamp = new TextStamp("Footer Text ©");

//set properties of the stamp

textStamp.BottomMargin = 10;

textStamp.HorizontalAlignment = Aspose.Pdf.HorizontalAlignment.Center;

textStamp.VerticalAlignment = VerticalAlignment.Bottom;

//add footer on all pages

foreach (Page page in pdfDocument.Pages)

{

page.AddStamp(textStamp);

}

//save updated PDF file

pdfDocument.Save(“c:/pdftest/CopyRight_output.pdf”);<!–[if gte mso 9]>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>ZH-TW</w:LidThemeAsian>
<w:LidThemeComplexScript>AR-SA</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
<w:UseFELayout/>
</w:Compatibility>
<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-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; 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-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

<![endif]–>