- 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?