AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Word to pdf images blurry8/12/2023 I've tried switching the images to both output types JPG and. The images still come out blurry, especially for screenshots (image files mostly in JPG and PNG). From Acrobat Pro>File menu> Create>PDF from File. To change the setting: Go to the File tab and click Options. I also tried coverting the word file to PDF via the following methods. Image.Save(imageStream, ImageFormat.Png) įileStream outStream = File.OpenWrite("TestReport. To reduce file size, Word is set to compress images. Starting with Office 2016 and Microsoft 365, Microsoft Office finally supports Scalable Vector Graphics (SVG). Image image = loadedDoc.ExportAsImage(0) If you care more about the pictures blurring and the effect after removing it, I strongly suggest using a professional image editor WorkinTool Image. 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 SinglePageLayout = SinglePageLayout.FitWidth Orientation = PdfPageOrientation.Landscape, To check the quality settings, kindly follow these steps: Go to File. You would now be able to see an Options button. You might want to take a look at the quality settings. Click on the Save as type drop-down box and select the option: PDF. ![]() Click on File > Save > Computer > Browse. Var webKitSettings = new WebKitConverterSettings 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. Var htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit) 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
Read More
Leave a Reply. |