Save pdf as image issue

Hello,

After upgrading from version 1528 to 1620 we faced with the regression while saving the first page of pdf as image (used for thumbnail extraction).

Before it was smth similar to snapshot, however now it is just a blank page.

The pdf is pretty unusual though and I am not sure how to add it here.
The code we are using is more or less the following

using var document = PdfDocument.Load(extractPdfThumbnailParameters.SourceFilePath);

var size = document.Pages[0].Size;

ImageSaveOptions options = new()
{
    Format = ImageSaveFormat.Jpeg,
    PageCount = 1,
    PageNumber = 0
};

document.Save(extractPdfThumbnailParameters.DestinationFilePath, options);

How can I share the PDF with you?

Hi Oleksandr,

You can send us your PDF via email or support ticket.
Please check our Contact page.

Regards,
Mario

Hi Oleksandr,

Please try again with this NuGet package:

Install-Package GemBox.Pdf -Version 17.0.1635-hotfix

Note that this is a hidden pre-released version, to install it you’ll need to run the above command on the NuGet Package Manager Console (Tools → NuGet Package Manager → Package Manager Console).

Does this solve your issue?

Regards,
Mario

Hello Mario

Works like a charm!

Thank you for such a quick reaction!