sungaila / PDFtoImage

A .NET library to render PDF files into images.
https://www.sungaila.de/PDFtoImage/
MIT License
164 stars 16 forks source link

Converted Image is not having comments and Highlighted part #89

Closed NkhilKajrekar closed 2 months ago

NkhilKajrekar commented 2 months ago

PDFtoImage version

4.0.2

OS

Windows

OS version

No response

Architecture

x64

Framework

.NET (Core)

App framework

.Net core

Detailed bug report

Presentation1.pdf In PDF we added comments and highlighted the part but after converting image it is not appearing in image attached is pdf

sungaila commented 2 months ago

Hi @NkhilKajrekar,

you have to explicitly enable annotations by setting WithAnnotations. Something like this:

SavePng(outputStream, inputStream, options: new(WithAnnotations: true);
NkhilKajrekar commented 2 months ago

Thanks its working