GroupDocs.Annotation v21.5 and later allows you to set resolution of the document’s preview. By default, it is 96 points per inch. Set the Resolution property of the PreviewOptions class to change the resolution.
The following code snippets shows how to set preview resolution to 144 PPI:
using(Annotatorannotator=newAnnotator("input.pdf")){PreviewOptionspreviewOptions=newPreviewOptions(pageNumber=>{varpagePath=$"result_{pageNumber}.png";returnFile.Create(pagePath);}){// Set resolutionResolution=144};annotator.Document.GeneratePreview(previewOptions);}
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.