![]() Assembly //Opens an existing document from file system through constructor of WordDocument class using ( WordDocument document = new WordDocument (( assembly. "App" is the class of Portable project. The following code sample shows how to embed the complete TrueType fonts into the converted PDF document. This setting allows you to embed the complete font information (glyphs) from the TrueType fonts used in converted PDF document. You can download a complete working sample from GitHub. Save ( outputStream ) //Closes the instance of PDF document object pdfDocument. Dispose () //Saves the PDF file MemoryStream outputStream = new MemoryStream () pdfDocument. ConvertToPDF ( wordDocument ) //Releases all resources used by the Word document and DocIO Renderer objects render. EmbedFonts = true //Converts Word document into PDF document PdfDocument pdfDocument = render. ![]() Automatic ) //Instantiation of DocIORenderer for Word to PDF conversion DocIORenderer render = new DocIORenderer () //Sets true to embed TrueType fonts render. WordDocument wordDocument = new WordDocument ( docStream, Syncfusion. GetManifestResourceStream ( "" ) // Loads the stream into Word Document. Load the Word document as stream Stream docStream = typeof ( App ). ![]() GetManifestResourceStream ( "" )), FormatType. 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. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |