![]() 'Loads an existing Word document Dim wordDocument As New WordDocument ( "Template.docx", FormatType. The following code sample shows how to convert the Word document to PDF using direct PDF rendering approach. This setting allows you to convert PDF faster by using direct PDF rendering approach rather than EMF rendering approach. The Essential DocIO provides settings while performing Word to PDF conversion mentioned below, Fast rendering How to resolve LibSkiaSharp not found Exception?.How to copy necessary Microsoft compatible fonts to Linux?.How to set culture / locale in Docker containers (Windows & Linux containers)?.How to copy necessary fonts to Linux containers?.If you are using prior to v20.3.0.56 release, please refer here to know about how to perform Word to PDF conversion in Linux. netcoreapp) application with Word to PDF conversion capabilities.įrom v20.3.0.56, in addition to the previous NuGet packages, we recommend to use v2.88.2 and v2.8.2.2 NuGets to perform Word to PDF conversion in Linux environment. You can refer Word to PDF conversion NuGet packages to know about the packages required to deploy. In Linux OS, you can perform the Word to PDF conversion using. “DocIO supports Word to PDF conversion in UWP application using DocIORenderer.” For further information, please refer here.Total number of pages in the converted PDF may vary based on unsupported elements in the input Word document.NET Core, as ChartToImageConverter is initialized internally in assembly. Otherwise, the charts are not preserved in the converted PDF. NET Framework, creating an instance of the ChartToImageConverter class is mandatory to convert the charts present in the Word to PDF. You can download a complete working sample from GitHub. Save ( "WordtoPDF.pdf" ) 'Closes the instance of document objects pdfDocument. ConvertToPDF ( wordDocument ) 'Saves the PDF file pdfDocument. ![]() ChartToImageConverter = New ChartToImageConverter () 'Creates an instance of the DocToPDFConverter Dim converter As New DocToPDFConverter () 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter. Docx ) 'Initializes the ChartToImageConverter for converting charts during Word to pdf conversion wordDocument. The following code example illustrates how to convert a Word document into PDF document. using Syncfusion.OfficeChartToImageConverterįor ASP.NET Core, Blazor, Xamarin, WinUI, and.The following namespaces are required to compile the code:įor WPF, Windows Forms, ASP.NET and ASP.NET MVC applications Refer to the following links for assemblies required based on platforms to convert the Word document to PDF. It works perfectly when you create an input Word document from scratch or load an existing Word document and easily converted into PDF. The Word document files are converted as a PDF document with a few lines of code by using the Essential DocIO. 24 minutes to read Converting Word to PDF
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |