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.SetOpacity(0.7)
s.SetRotation(-45)
s.SetSize(Stamper.SizeType.e_font_size, 80, -1)
s.SetTextAlignment(Stamper.TextAlignment.e_align_center)
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)
OpenPDF(Me.Text)

‘’ This doesn’t seem to be working
_pdfview.Refresh()

End Using

If anyone have any idea about this please share.

Thanks.

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.