Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Sep 30, 2024 11:37 am

Hello,

we are using Spire.PDF .NET to embedd attachments in a pdf and get evaluation warnings in output pdf.
We purchased 3 x Spire.PDF for .NET Edition Developer OEM (info@alos.de) and found out that starting from version 9.10.2 the evaluation warning exist in output. Version 9.9.9 does not print evaluation warning. We tried embedding license as resource but also using recommended Spire.Pdf.License.LicenseProvider.SetLicenseKey(key) method.

The problem is not reproducable on all machines used.

Sample code:
Code: Select all
  private static void Main(string[] args)
  {
      string key = "<from-license-file>";
           
      Spire.Pdf.License.LicenseProvider.SetLicenseKey(key);
             
      string inputPdf = "./input.pdf";
      string textFile = "./Textdatei.txt";
      string outputPdf = "./Output.pdf";

     
      using var ms = new MemoryStream();
      var converter = new PdfStandardsConverter(inputPdf);
      converter.ToPdfA3A(ms);
      ms.Position = 0;
             
      using var pdf3a = new PdfDocument(ms)
      {
          FileInfo =
              {
                  CrossReferenceType = PdfCrossReferenceType.CrossReferenceTable,
                  Version = Spire.Pdf.PdfVersion.Version1_4
              }
      };

      var pdfAttachment = new PdfAttachment(Path.GetFileName(textFile), File.OpenRead(textFile))
      {
          Description = "desc",
          FileName = Path.GetFileName(textFile),
          MimeType = "text/plain",
          CreationDate = DateTime.Now,
          ModificationDate = DateTime.Now,
      };

      var attachmentRelationship = PdfAttachmentRelationship.Data;

      pdf3a.Attachments.Add(pdfAttachment, pdf3a, attachmentRelationship);

      pdf3a.SaveToFile(outputPdf);
  }


Best Regards
Boris

alosbwoeste
 
Posts: 2
Joined: Mon Sep 30, 2024 10:17 am

Tue Oct 01, 2024 2:41 am

Hello,

Thanks for your inquiry.
Yes, I tested the code you provided with version 9.10.2 and found that the result file does indeed have watermarks. During the release of this version, we were adjusting the internal code for license verification. Due to the negligence of the development team, some features still generated watermark information after being called. We have fixed this issue in the latest Spire.PDF Pack(Hot Fix) Version:10.9.0, please update to this version and retest. If you have any further questions, please feel free to write to me at any time. Sorry for any inconvenience caused to you.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 454
Joined: Mon Dec 27, 2021 2:23 am

Tue Oct 01, 2024 7:44 am

Hello,

we updated to latest NuGet 10.9.0 and we still get watermarks in output pdf.

Best Regards
Boris

alosbwoeste
 
Posts: 2
Joined: Mon Sep 30, 2024 10:17 am

Tue Oct 01, 2024 8:45 am

Hello,

Thanks for your reply.
I have conducted more tests regarding your issue. I found that this issue seems to be sporadic and has not been reproduced before. After several tests, I have reproduced the issue you mentioned. I have recorded this issue in our tracking system with the number SPIREPDF-7096. Since we are on holiday from October 1st to October 7th, 2024 (GMT+8:00) in observance of China’s National Day. Once we return to the office, I will urge our development team to fix this issue as soon as possible. Sorry for any inconvenience caused to you. As a temporary solution, please roll back the version to 9.9.9.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 454
Joined: Mon Dec 27, 2021 2:23 am

Thu Oct 03, 2024 9:39 pm

Hellos,

I am seeing the same issue even with version 9.9.9. Is there a version before that without this issue?

Small edit, this bug only shows up when passing the key itself. The bug does not show up (knock on wood), when passing the license file.

SOADRB01
 
Posts: 2
Joined: Thu Oct 03, 2024 4:55 pm

Fri Oct 04, 2024 8:55 am

Hello,

Thanks for your inquiry.
Sorry, as October 1st to 7th is China's National Day, our development team is on vacation. So we haven't started investigating the issue of license applications not being effective yet. Once we return to the office, we will deal with this issue as soon as possible. Sorry for any inconvenience caused to you.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 454
Joined: Mon Dec 27, 2021 2:23 am

Tue Oct 08, 2024 9:59 am

William.Zhang wrote:Hello,

Thanks for your reply.
I have conducted more tests regarding your issue. I found that this issue seems to be sporadic and has not been reproduced before. After several tests, I have reproduced the issue you mentioned. I have recorded this issue in our tracking system with the number SPIREPDF-7096. Since we are on holiday from October 1st to October 7th, 2024 (GMT+8:00) in observance of China’s National Day. Once we return to the office, I will urge our development team to fix this issue as soon as possible. Sorry for any inconvenience caused to you. As a temporary solution, please roll back the version to 9.9.9.

Sincerely,
William
E-iceblue support team

Hello,

Thank you for your patience.
Regarding the previous license issue, since we adjusted some of the license verification logic during the product iteration process. If you have used the latest license in the old version and recently upgraded to the latest Spire.PDF, the license binding will fail. We have adjusted this issue in our background, and now you can use Spire.PDF normally without modifying any code. Sorry for the inconvenience caused to you before. If you have any other questions, please feel free to write to us.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 454
Joined: Mon Dec 27, 2021 2:23 am

Tue Oct 08, 2024 10:05 am

SOADRB01 wrote:Hellos,

I am seeing the same issue even with version 9.9.9. Is there a version before that without this issue?

Small edit, this bug only shows up when passing the key itself. The bug does not show up (knock on wood), when passing the license file.

Hello,

Thanks for your patience.
We checked your license information, but currently no binding record is found. We speculate that the reason for your issueis that you did not bind the license correctly. Please refer to this tutorial to apply license: How to apply license. If you still have problems, please feel free to write to us.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 454
Joined: Mon Dec 27, 2021 2:23 am

Wed Oct 09, 2024 2:56 pm

William.Zhang wrote:
SOADRB01 wrote:Hellos,

I am seeing the same issue even with version 9.9.9. Is there a version before that without this issue?

Small edit, this bug only shows up when passing the key itself. The bug does not show up (knock on wood), when passing the license file.

Hello,

Thanks for your patience.
We checked your license information, but currently no binding record is found. We speculate that the reason for your issueis that you did not bind the license correctly. Please refer to this tutorial to apply license: snipped due to forum bug. If you still have problems, please feel free to write to us.

Sincerely,
William
E-iceblue support team


Good Morning,

I do not know what a binding record is. However, looking at the link you provided, I use the following c# code with all versions:

Code: Select all
Spire.License.LicenseProvider.SetLicenseFileName("your-license-file-name");


The above code works with 9.9.9, but not newer versions for me.

However, setting license by licensekey never worked for me. Thanks for the response though. I'll stick with using the key file with version 9.9.9 until the next version comes out!

SOADRB01
 
Posts: 2
Joined: Thu Oct 03, 2024 4:55 pm

Thu Oct 10, 2024 9:51 am

Hello,

Thanks for your reply.
Kindly note that in the latest version, you need to use the following code to apply the license.
Code: Select all
Spire.Doc.License.LicenseProvider.SetLicenseFileName("Your license file");

or
Code: Select all
Spire.Doc.License.LicenseProvider.SetLicenseKey("The key in your license file");


Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 454
Joined: Mon Dec 27, 2021 2:23 am

Wed Oct 16, 2024 5:47 pm

No aplica

gsalazar
 
Posts: 3
Joined: Wed Oct 16, 2024 3:46 pm

Return to Spire.PDF

cron