How to get thumbnail for password protected Document

Hi ,
Do we have feasibility to get thumbnail for password-protected PDF Document, in GroupDocs.
If we provide password.
If yes, Please provide some reference in .Net (C#).
Thanks
Sachin

@sachintr

Are you looking to convert a password protected PDF file into an image for use as a thumbnail?

I only need thumbnail of first page from PDF Document, yes if it can provide image of first page thumbnail

1 Like

@sachintr

Would it be possible to provide the source PDF? We would like to conduct a test on our end and share the results with you.
However, you can explore this documentation article - Convert specific pages. Sepcify the specific page, provide source PDF and convert to image.
You may need to explore this documentation article as well - Convert to Image with advanced options.

hi @atir.tahir
Thanks for your reply. actually I am not able to share document due to organization policies, will it be possible you can get any sample password protected PDF file and try to do this test at your end.
I already check these links but didn’t find any option to get thumbnail on my conditions.

Thanks

@sachintr

Please take a look at the following code:

Func<LoadOptions> getLoadOptions = () => new PdfLoadOptions
{
    Password = "123"
}; 
Converter converter = new Converter(@"D:/source.pdf", getLoadOptions);
ImageConvertOptions options = new ImageConvertOptions();
options.PageNumber = 1;
options.PagesCount= 1;
converter.Convert(@"D:/output.jpg", options);

Attached are the source and output files.zip (243.0 KB)