Hi, I have bought a licence and tried it worked very well on test environment but on the another server in the same location, it did not work after producing the error as follows: what could be causing this issue?
Paginate error: Object reference not set to an instance of an object.
stack trace at Aspose.Pdf.Text.Font…ctor(#=zKHE90QBpfm7hufzIylyiCzs= #=zQ2Kd9a4=)**
at #=zyJecUYaB6pdDfKOoDlWBYrLOpAfMlPpsDNckR_meNoC6a_d3l5eI5ks=.#=zJYqpgDDR2d8uZKJppQeKgI$mPiIl(String #=zsZf7C5o=, Font #=zQ2Kd9a4=, Font& #=zGfLL29r9mZ6XlFXfETKqNEg=)
at Aspose.Pdf.Text.TextSegment.set_Text(String value)
at Aspose.Pdf.Text.TextFragment.set_Text(String value)
at Aspose.Pdf.TextStamp.Put(Page page)
at Aspose.Pdf.Facades.PdfFileStamp.#=zXag2axeZdstl(Stamp #=z6EZURqM=, Int32 #=zEmkcrZJhQTBS)
at Aspose.Pdf.Facades.PdfFileStamp.#=zXag2axeZdstl(Stamp #=z6EZURqM=)
I could not share pdf because of the confidential document. But I am sure you can help me using the error above.
var esignature ="IT IS A SIGN"
Document newPdf = new Document();
newPdf.Pages.Add(pdfDocument.Pages[pageCount]);
Aspose.Pdf.Facades.PdfFileStamp fileStamp = new Aspose.Pdf.Facades.PdfFileStamp(newPdf);
Aspose.Pdf.Facades.Stamp textStamp = new Aspose.Pdf.Facades.Stamp();
Aspose.Pdf.Facades.FormattedText text = new Aspose.Pdf.Facades.FormattedText("E-İmza var\n---------------\n" + esignature, System.Drawing.Color.Blue, System.Drawing.Color.White, Aspose.Pdf.Facades.FontStyle.Helvetica, Aspose.Pdf.Facades.EncodingType.Winansi, false, 11.0f);
textStamp.BindLogo(text);
textStamp.SetOrigin(50, 50);
textStamp.Opacity = 1.0f;
textStamp.IsBackground = false;
fileStamp.AddStamp(textStamp);// this line produces the error above.
We use aspose pdf.net 21.2.0.0 build on 4.5.1 framework. .NET framework version:
installed version. 4.5.01586
It is licensed product and it works on my local computer but it has problem running on server.