Hi,
I am creating an pdf document from an html, which contains a number of images. I notice a difference between the pdf created and when viewing the html in a browser. For example the html contains css to resize the images, however it appears this does not happen during the pdf conversion process, so the images look too big.
Thanks
I use the code below to create the pdf
try { using (var inputHtml = new MemoryStream(htmlEncoding.GetBytes(sourceString))) { var htmlProvider = new HtmlFormatProvider(); var document = htmlProvider.Import(inputHtml); var editor = new RadFlowDocumentEditor(document); using (Stream output = new FileStream(targetFolder + targetFilename, FileMode.OpenOrCreate)) { var pdfProvider = new PdfFormatProvider(); pdfProvider.Export(document, output); } } }