6/30/2023 0 Comments Word to pdf images blurryI use aspose to convert the file to pdf, the images look blurry in the. Image.Save(imageStream, ImageFormat.Png) įileStream outStream = File.OpenWrite("TestReport. Hi, I am using the aspose word trial version to convert a docx to pdf. Image image = loadedDoc.ExportAsImage(0) Using (var imageStream = new MemoryStream()) Using (var loadedDoc = new PdfLoadedDocument(stream)) PdfTemplate template = pdfPage.CreateTemplate() Ĭ(template, new PointF(50,50)) įileStream pdfFileStream = File.OpenWrite("TestReport.pdf") PdfDocument document = htmlConverter.Convert(htmlString, string.Empty) HtmlConverter.ConverterSettings = webKitSettings You would now be able to see an Options button. Click on the Save as type drop-down box and select the option: PDF. Click on File > Save > Computer > Browse. SinglePageLayout = SinglePageLayout.FitWidth To resolve this issue let us follow these steps: In Word 2013 while converting (saving) the document to PDF follow these steps: Create the Word 2013 document with the images inserted. The images still come out blurry, especially for screenshots (image files mostly in JPG and PNG). 1) Open PDF that has blurry images in Acobat Pro. From Acrobat Pro>File menu> Create>PDF from File. Orientation = PdfPageOrientation.Landscape, One other thing to consider is checking the Word File>Options>Advanced>Image Quality section, the option Dont compress the file images should. I also tried coverting the word file to PDF via the following methods. Var webKitSettings = new WebKitConverterSettings As always, the image looks great in Word, but is now reproduced as a stretched-out mess by Acrobat in the PDF. Var htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit) With upgraded software, it still does not work. How do we make the image output very clear (Same as Pdf)? Pdf output is fine but the image output is very blurry. We have done this by following these piece of code. We want to convert a html string into pdf and image.
0 Comments
Leave a Reply. |