Hi Sergei Shibanov,
PFB my answer of your queries.
Is it possible use only first two Lines for reproduce issue?
Answer- Yes
Answer - htmlString as read html from file as string and pass it, which I have shared.
Htm…...error Throwing error on this line - pdfDocument.Save(streamsd...byte when i am skipping above line then it is returning empty....