Watermark issue (red font)

After converting txt to pdf, Why is there a watermark?
if the watermark issue is due to a license issue or another program issue?

@Ykworm This occurs because you are using Aspose.Words in evaluation mode. There two limitations in the free evaluation version of Aspose.Words:

  1. An evaluation watermark is injected in the documents.
  2. The maximum size of the processed document is limited to several hundreds of paragraphs.

Please see our documentation for more information:
https://docs.aspose.com/words/net/licensing/

If you would like to test Aspose.Words without evaluation version limitations, you can request a free 30-days temporary license .

but it is not the free evaluation version . why does this problem still exist
here is my licensing info:

<LicenseType>Developer Small Business</LicenseType>
<LicenseNote>1 Developer And 1 Deployment Location</LicenseNote>
<OEM>This is not a redistributable license</OEM>
<Products>
    <Product>Aspose.Total for .NET</Product>
</Products>

using this code:

Aspose.Words.Document doc = new Aspose.Words.Document(instream);
doc.Save(outputStream, Aspose.Words.SaveFormat.Pdf);

the version of Aspose.Word is 23.9.0 and It will be upgraded to the latest version

@Ykworm Please check the following points:

  • Make sure your call to SetLicense gets executed. Step through in the debugger.
  • Make sure your code does not catch an exception thrown by Aspose.Words licensing code. For example, Aspose.Words will throw if it cannot find the license.
  • Make sure the input documents do not already have the evaluation message. Aspose.Words does not delete existing evaluation messages.
  • Make sure SetLicense is executed before you instantiate any Document object.

Determine that it has been successfully call “SetLicense” function .

@Ykworm If possible, please create a simple console application that will allow us to reproduce the problem. We will check the issue on our side and provide you more information.

Please try using the following simple code for testing on your side:

// Set license
Aspose.Words.License wordsLic = new Aspose.Words.License();
wordsLic.SetLicense(@"C:\Temp\Aspose.Total.NET.lic");
// Convert document
Aspose.Words.Document doc = new Aspose.Words.Document(@"C:\Temp\in.docx");
doc.Save(@"C:\Temp\out.pdf");
1 Like

success thx a lot

1 Like