PDFTron pdfview ctrl doesnot show stamptext in winforms

Hi All,

I was successfully able to stamp text on an existing pdf file. But the problem arise when it doesn’t show the stamptext in the pdfview control in windows forms. I even tried to referesh the pdfview using

Using s As Stamper = New Stamper(Stamper.SizeType.e_relative_scale, 0.05, 0.05)

s.SetPosition(0, 0)
s.SetSize(Stamper.SizeType.e_font_size, 80, -1)
s.SetFontColor(New ColorPt(1, 0, 0)) ’ set text color to red
s.StampText(_pdfdoc, “Document” + ControlChars.NewLine + “Cancelled”, New PageSet(1))
''Fora temporary solution I added these two lines
_pdfdoc.Save(Me.Text, SDFDoc.SaveOptions.e_linearized)

‘’ This doesn’t seem to be working

End Using

If anyone have any idea about this please share.


Solved myself!

Calling viewer update method before _pdfview.refresh() solves the issue.

Sorry we did not get back to you sooner.

But, glad you were able to resolve this. I am sure someone else will find this useful.