AdaskoTheBeAsT / WkHtmlToX

C# wrapper for wkhtmltopdf.org Html to Pdf library
MIT License
4 stars 4 forks source link

How to user the html to image converter? #5

Closed arivera12 closed 3 years ago

arivera12 commented 3 years ago

I almots had everything set but don't know where to set the html document in the HtmlToImageDocument

Which prop I should use to set the html document?

HtmlToImageDocument.ImageSettings. ??? = htmlDocumentTemplate;

AdaskoTheBeAsT commented 3 years ago

Hi,

it is property In as described in comment https://github.com/AdaskoTheBeAsT/WkHtmlToX/blob/e739335a44fb971e755f35df6112ee0db5fc088b/src/AdaskoTheBeAsT.WkHtmlToX/Settings/ImageSettings.cs#L51

arivera12 commented 3 years ago

Is there a way to use a stream or byte array instead of specifying the file from a path?

AdaskoTheBeAsT commented 3 years ago

noe unfortunately native lib has only such functionality - in property "In" you can pass url or filename

arivera12 commented 3 years ago

Ok