We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Convert word documnet to pdf

Hello


I am trying to follow this article:

https://help.syncfusion.com/file-formats/docio/word-to-pdf


At this point:

DocToPDFConverter converter = new DocToPDFConverter();

The complier does not know "DocToPDFConverter". Don't seem to able to get this to work.  Do you have a working example in blazor?


Many thanks.


3 Replies

DS Dhanush Sekar Syncfusion Team January 16, 2023 12:42 PM UTC

Hi Richard,


Please find the UG documentation and Word to PDF sample here 

Documentation link: https://blazor.syncfusion.com/documentation/document-editor/how-to/export-document-as-pdf

Sample GitHub link: https://github.com/SyncfusionExamples/Export-document-as-PDF-in-Document-Editor/tree/main/Blazor

Please let us know if you need any further assistance.


Regards,

Dhanush Sekar



DI Ditchford replied to Dhanush Sekar January 18, 2023 08:54 AM UTC

Hey Dhanush


That works great in Blazor server, but fails for Wasm at:


 Syncfusion.Pdf.PdfDocument pdfDocument = render.ConvertToPDF(doc);


Any ideas?


Thank you



DS Dhanush Sekar Syncfusion Team January 25, 2023 03:00 PM UTC

Hi Richard,


Sorry for the delay.

Please find Blazor WASM Word to PDF sample here

GitHub link: https://github.com/SyncfusionExamples/Export-document-as-PDF-in-Document-Editor/tree/main/Blazor%20WASM/DocumentEditor


Regards,

Dhanush Sekar


Loader.
Up arrow icon