ChartToImageConverter = New ChartToImageConverter () 'Sets the scaling mode for charts (Normal mode reduces the Pdf file size) wordDocument. Docx ) 'Initializes the ChartToImageConverter for converting charts during Word to pdf conversion wordDocument. 'Loads an existing Word document Dim wordDocument As New WordDocument ( "Template.docx", FormatType. The following code sample shows how to embed the TrueType fonts into the converted PDF document. This setting allows you to embed the particular font information (glyphs) from the TrueType fonts used for the rendered characters in converted PDF document. You can customize the TrueType fonts embedding in two ways as follows: Embed Subset Fonts 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 to file system pdfDocument. EnableFastRendering = true 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter. Normal 'creates an instance of the DocToPDFConverter - responsible for Word to PDF conversion Dim converter As New DocToPDFConverter () 'Sets true to enable the fast rendering using direct PDF conversion. 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 v23.1.40 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 v23.1.40, in addition to the previous NuGet packages, we recommend to use v2.88.6 and v7.3.0 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. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |