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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to convert a Word document to PDF in ASP.NET Core

Yes, now it is possible to convert a Word document to PDF in ASP.NET Core Web and .NET Core Console applications. From 2018 Volume 1 release (v16.1.0.24) onwards, Syncfusion provides support for Word to PDF conversion in .NET Core platform using SkiaSharp Graphics library.

Add the following NuGet packages as reference in your application.

NuGet package

Installation command in package manager

  1. Syncfusion.Compression.Net.Core

Install-package Syncfusion.Compression.Net.Core

  1. Syncfusion.OfficeChart.Net.Core

Install-package Syncfusion.OfficeChart.Net.Core

  1. Syncfusion.DocIO.Net.Core

Install-package Syncfusion.DocIO.Net.Core

  1. Syncfusion.Pdf.Net.Core

Install-package Syncfusion.Pdf.Net.Core

  1. Syncfusion.DocIORenderer.Net.Core

Install-package Syncfusion.DocIORenderer.Net.Core

  1. SkiaSharp

Install-Package SkiaSharp -Version 1.59.3

 

Note:

  1. Syncfusion components are available in nuget.org
  2. Starting with v16.2.0.x, you must add “Syncfusion.Licensing” NuGet package and include a license key in your projects. Please refer to this link to know about registering Syncfusion license key in your application to use our components.
  3. Please refer the procedure to deploy your application in Linux OS from here

The following code snippet illustrates how to convert a simple Word document to PDF. A runnable sample application can be downloaded from here.

C#:

 

If you have any questions or require clarification about this support, please let us know in the comments below. You can also contact us through our support forum or Direct Trac. We are happy to assist you!

 

Article ID: Published Date: Last Revised Date: Platform: Control:
8472 02/22/2018 10/22/2018 ASP.NET Core DocIO
Did you find this information helpful?
Comments
Pieter van Kampen Feb 22, 2018

Hurray!

Reply
Pieter van Kampen Feb 28, 2018

No chart support yet. I suggest mentioning that in the KB. If you need chart support, it takes a lot of effort before you discover that it is not there.

Dilli Babu Nandha Gopal [Syncfusion] Mar 01, 2018

Hi Pieter,


Currently, chart is not supported in Word to PDF conversion in ASP.NET Core application. We will update the limitations of Word to PDF conversion in our UG documentation page.


Regards,

Dilli babu.

Reply
gra-moore Mar 10, 2018

This is great, just wondering how to control the way the the pdf is saved. Specifically, how to save it in pdf-1a format?

Thanks,

Graham

Reply
Dilli Babu Nandha Gopal [Syncfusion] Mar 13, 2018

Hi Graham,

Thank you for using Syncfusion products.

Currently DocIORenderer doesn’t have support to generate a PDF document with pdf-1a conformance. We have logged this as a feature request in our database. We will implement this feature in any of our upcoming releases. At present, we cannot provide any concrete timeline for this feature implementation. We will let you know once this feature is implemented.

Regards,
Dilli babu.

Reply
bastien neyer Sep 03, 2018

All the nuget package names are outdated!

Reply
Dilli Babu Nandha Gopal [Syncfusion] Sep 04, 2018

Hi Bastien,

 

We regret for the inconvenience.

 

All NuGet package names are updated now. Kindly try our updated sample and let us know if you have any questions.

 

Regards,

Dilli babu.

Reply
Matt Psaltis Oct 22, 2018

Packages are out of date again :) There seems to be a lot of churn with the nuget packages. Is there a page we can subscribe to?


Also, it seems that chart support still isn't available during document conversion. Is this being actively worked on or still on a backlog?


Cheers!

Reply
Dilli Babu Nandha Gopal [Syncfusion] Oct 22, 2018

Hi Matt,

We regret for the inconvenience.

All NuGet packages name are updated now. Kindly try our updated sample and let us know if you have any questions.

We have started to work on chart support in Word to PDF conversion. This feature is estimated to be available in 2019 Volume 1 release tentatively

Regards,

Dilli babu.

Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon