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 Dec 18, 2023 7:29 pm

I purchased the Spire.PDF Pro Edition. On the main window initialization the license key is set as follows:

Code: Select all
Spire.Pdf.License.LicenseProvider.SetLicenseKey(spireLicenseKey);


The application is WPF targeted to the .NET 4.8 framework. The Spire.PDF assembly I am referencing is:

C:\Program Files (x86)\e-iceblue\Spire.Pdf\Bin\WPF4.0\Spire.Pdf.Wpf.dll

When we output PDF pages as a System.Windows.Media.Imaging.BitmapSource, the images are still being watermarked with the evaluation version text.

Code: Select all
pdfBitmap = pdfDoc.SaveAsImage(page, dpi, dpi);


I know the license key is working because if I switch the reference to the following DLL, I no longer get the watermark.

C:\Program Files (x86)\e-iceblue\Spire.Pdf\Bin\NET4.8\Spire.Pdf.dll

The problem is that the PdfDocument.SaveAsImage() will return a System.Drawing.Bitmap when referencing that DLL. I would prefer to have the BitmapSource. Shouldn't the Spire.PDF Pro Edition license also work with the Spire.Pdf.Wpf.dll?

jstergar
 
Posts: 1
Joined: Mon Nov 20, 2023 5:09 pm

Tue Dec 19, 2023 2:12 am

Hello,

Thank you for your inquiry.
The license you purchased for Spire.PDF Pro Edition is valid for .NET projects. However, please note that a separate license is required for WPF platform projects. Therefore, when testing using the "Spire.Pdf\Bin\WPF4.0\Spire.Pdf.Wpf.dll" file, you may encounter warning messages.
If your testing project is exclusively focused on the WPF platform and you require a license tailored for it, kindly contact our sales team at sales@e-iceblue.com to request a license replacement. They will assist you in obtaining the appropriate license that suits your specific testing requirements.
We apologize for any inconvenience caused. If you have any further questions or concerns, please feel free to reach out to us.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.PDF

cron