12/9/2023 0 Comments Word rtf to pdf converter![]() Essential PDF allows you to convert an entire workbook or a single worksheet into PDF document. Converting Excel documents to PDFĮxcelToPdfConverter is responsible for converting an Excel document into PDF. You can download a complete working sample from GitHub. Save ( "WordtoPDF.pdf" ) 'close the instance of document objects pdfDocument. ConvertToPDF ( wordDocument ) 'Save the PDF file to file system pdfDocument. OptimizeIdenticalImages = True 'Convert Word document into PDF document Dim pdfDocument As PdfDocument = converter. ImageResolution = 640 'Set true to optimize the memory usage for identical images converter. ImageQuality = 100 'Set the image resolution converter. ![]() Normal 'create an instance of DocToPDFConverter - responsible for Word to PDF conversion Dim converter As New DocToPDFConverter () 'Set the image quality converter. ChartToImageConverter = New ChartToImageConverter () 'Set the scaling mode for charts wordDocument. Docx ) 'Initialize chart to image converter for converting charts during Word to pdf conversion wordDocument. 'Loads an existing Word document Dim wordDocument As New WordDocument ( "Sample_Image.docx", FormatType. Save ( "WordtoPDF.pdf" ) //close the instance of document objects. ConvertToPDF ( wordDocument ) //Save the PDF file to file system. OptimizeIdenticalImages = true //Convert Word document into PDF document. ImageResolution = 640 //Set true to optimize the memory usage for identical images. ImageQuality = 100 //Set the image resolution. DocToPDFConverter converter = new DocToPDFConverter () //Set the image quality. Normal //create an instance of DocToPDFConverter - responsible for Word to PDF conversion. ChartToImageConverter = new ChartToImageConverter () //Set the scaling mode for charts. Docx ) //Initialize chart to image converter for converting charts during Word to pdf conversion. WordDocument wordDocument = new WordDocument ( "Sample_Image.docx", FormatType. Allows to reduce the Main Memory usage in Word to PDF conversion by reusing the identical images.Allows to determine the quality of the JPEG images in the converted PDF.Allows to determine the quality of the charts in the converted PDF.Total number of pages may vary based on unsupported elements in the converted PDF document when compare to Word document.Ĭustomizing the Word document to PDF conversionĮssential DocIO allows you to customize the Word to PDF conversion using DocToPDFConverter class with the below options:.ChartToImageConverter is supported from.Initializing the ChartToImageConverter is mandatory to convert the charts present in the Word document to PDF. Otherwise the charts will not be exported to the converted PDF.Save ( "WordtoPDF.pdf" ) 'Close the instance of document objects pdfDocument. ConvertToPDF ( wordDocument ) 'Save the PDF file pdfDocument. ![]() ChartToImageConverter = New ChartToImageConverter () 'Create an instance of DocToPDFConverter Dim converter As New DocToPDFConverter () 'Convert Word document into PDF document Dim pdfDocument As PdfDocument = converter. 'Load an existing Word document Dim wordDocument As New WordDocument ( "Template.docx", FormatType. The following code snippet illustrates how to convert a Word document into PDF document.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |