Position = 0 //Close the documents pdfDocument. Dispose () //Save the document into stream MemoryStream stream = new MemoryStream () pdfDocument. ConvertToPDF ( wordDocument ) //Releases all resources used by the Word document and DocIO Renderer objects render. Automatic ) //Instantiation of DocIORenderer for Word to PDF conversion DocIORenderer render = new DocIORenderer () //Converts Word document into PDF document PdfDocument pdfDocument = render. Read ) //Loads file stream into Word document WordDocument wordDocument = new WordDocument ( docStream, Syncfusion. Open the file as Stream FileStream docStream = new FileStream (, FileMode. The following code snippet illustrates how to convert a Word document into PDF document. using Syncfusion.OfficeChartToImageConverterįor ASP.NET Core and Xamarin applicationsĭocToPDFConverter class is responsible for converting a Word document into PDF.The following namespaces are required to compile the code in this topic.įor Windows Forms, WPF, ASP.NET and ASP.NET MVC applications This assembly is used to convert the chart to image. The following assemblies are need to be referred in addition to the above mentioned assemblies for converting the chart present in the Word document into PDF. This assembly has features to work with chart in Word document. This assembly has the core features for creating PDF file. This assembly is needed for converting the Word document to PDF. This assembly is used to package the Word documents This assembly has the core features for creating and manipulating Word documents. For converting a Word document to PDF, the following assemblies need to be referenced in your application 24 minutes to read Converting Word documents to PDFĮssential PDF allows you to convert a Word document into PDF.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |