word to pdf converting
Hi,
for the converting of a Word document to a Pdf the Syncfusion.DocToPdfConverter assembly is required, but it looks like it is not available as a nuget package for UWP.
Best regards,
Martin
SIGN IN To post a reply.
5 Replies
MJ
Mohanaselvam Jothi
Syncfusion Team
June 20, 2018 12:36 PM UTC
Hi Martin,
From v16.1.0.24 onwards, we have provided support for Word to PDF conversion using .NetStandard NuGet packages in ASP.Net Core platform. We suggest you to refer .NetStandard NuGet packages in your UWP application to perform Word to PDF conversion. For your reference we have prepared a sample UWP application which refers the .NetStandard NuGet packages to perform Word to PDF conversion.
Sample link:
Word to PDF in UWP
Note: To use .NetStandard NuGet packcages in your UWP application, we recommend you kindly install Windows 10 Fall Creators Update in your production machine.
Please refer the below NuGet Feed URL in the NuGet Package Sources in your application to get .NetStandard NuGet packages:
http://nuget.syncfusion.com/nuget_aspnetcore/nuget/getsyncfusionpackages/aspnetcore
From v16.1.0.32, we have stopped shipping framework version specific NuGet packages. Instead we are including all the framework assemblies within single NuGet packages and shipping only single common NuGet package for each platform. So, please remove the old packages and install new single packages.
Please refer the below KB link to know more about Syncfusion NuGet package structure changes:
https://www.syncfusion.com/kb/8614/syncfusion-nuget-package-structure-changes
Please find the information about .NetStandard NuGet packages for Word to PDF conversion NuGet from below.
From v16.1.0.24 onwards, we have provided support for Word to PDF conversion using .NetStandard NuGet packages in ASP.Net Core platform. We suggest you to refer .NetStandard NuGet packages in your UWP application to perform Word to PDF conversion. For your reference we have prepared a sample UWP application which refers the .NetStandard NuGet packages to perform Word to PDF conversion.
Sample link:
Word to PDF in UWP
Note: To use .NetStandard NuGet packcages in your UWP application, we recommend you kindly install Windows 10 Fall Creators Update in your production machine.
Please refer the below NuGet Feed URL in the NuGet Package Sources in your application to get .NetStandard NuGet packages:
http://nuget.syncfusion.com/nuget_aspnetcore/nuget/getsyncfusionpackages/aspnetcore
From v16.1.0.32, we have stopped shipping framework version specific NuGet packages. Instead we are including all the framework assemblies within single NuGet packages and shipping only single common NuGet package for each platform. So, please remove the old packages and install new single packages.
Please refer the below KB link to know more about Syncfusion NuGet package structure changes:
https://www.syncfusion.com/kb/8614/syncfusion-nuget-package-structure-changes
Please find the information about .NetStandard NuGet packages for Word to PDF conversion NuGet from below.
|
Old packages |
New single packages |
|
syncfusion.compression.netstandard12 |
syncfusion.compression.netstandard |
|
syncfusion.compression.netstandard14 | |
|
syncfusion.compression.netstandard20 | |
|
syncfusion.docio.netstandard12 |
syncfusion.docio.netstandard |
|
syncfusion.docio.netstandard14 | |
|
syncfusion.docio.netstandard20 | |
|
syncfusion.officechart.netstandard12 |
syncfusion.officechart.netstandard |
|
syncfusion.officechart.netstandard14 | |
|
syncfusion.officechart.netstandard20 | |
|
syncfusion.dociorenderer.netstandard14 |
syncfusion.dociorenderer.netstandard |
|
syncfusion.dociorenderer.netstandard20 | |
|
syncfusion.pdf.netstandard12 |
syncfusion.pdf.netstandard |
|
syncfusion.pdf.netstandard14 | |
|
syncfusion.pdf.netstandard20 |
Please let us know if you have any other questions.
Regards,
Mohanaselvam J
MS
Martin Stein
June 22, 2018 10:27 AM UTC
Hi,
I have added the NuGet Package Syncfusion.pdf.NetStandard as you suggested.
Now I get an error
Error CS0433 The type 'PdfLoadedDocument' exists in both 'Syncfusion.Pdf.Portable, Version=16.1140.0.37, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' and 'Syncfusion.Pdf.UWP, Version=16.1460.0.37, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' TrainerApp2.UWP C:\Users\xxxxx
I have removed the NuGet Package Syncfusion.pdf.UWP, without success.
MJ
Mohanaselvam Jothi
Syncfusion Team
June 25, 2018 09:59 AM UTC
Hi Martin,
Thank you for your update.
We suspect that the reported problem might be due to improper PDF assembly reference in your application. We have prepared an UWP sample application and screen capture video which illustrates how to perform Word to PDF conversion in UWP platform using .NETStandard NuGet packages.
Please find the sample and video from the below link:
http://www.syncfusion.com/downloads/support/forum/138219/ze/Sample_with_Video-165846648.zip
Kindly refer .NETStandard NuGet packages as shown in the video and remove other unnecessary NuGet packages in your application to resolve the reported problem.
If you are still facing the same error means, kindly provide us the sample application which used at you end to reproduce the same issue.
Note: If you have any confidential data in your application, please replace with some dummy data and provide us the same. We just need your application to recreate the problem you face.
Please let us know if you have any other questions.
Regards,
Mohanaselvam J
Thank you for your update.
We suspect that the reported problem might be due to improper PDF assembly reference in your application. We have prepared an UWP sample application and screen capture video which illustrates how to perform Word to PDF conversion in UWP platform using .NETStandard NuGet packages.
Please find the sample and video from the below link:
http://www.syncfusion.com/downloads/support/forum/138219/ze/Sample_with_Video-165846648.zip
Kindly refer .NETStandard NuGet packages as shown in the video and remove other unnecessary NuGet packages in your application to resolve the reported problem.
If you are still facing the same error means, kindly provide us the sample application which used at you end to reproduce the same issue.
Note: If you have any confidential data in your application, please replace with some dummy data and provide us the same. We just need your application to recreate the problem you face.
Please let us know if you have any other questions.
Regards,
Mohanaselvam J
MS
Martin Stein
June 25, 2018 01:26 PM UTC
Hi Mohanaselvam,
it looks like the syncfusion.SfPdfViewer.UWP Package causes the problem.
It contains the pdfViewerControl, that I need in my project.
It contains the pdfViewerControl, that I need in my project.
When I remove this control and package, I can compile my project, but loose functionality.
How can I use both, Word to pdf conversion, and pdfViewer?
Kind Regards,
Martin
Martin
DB
Dilli Babu Nandha Gopal
Syncfusion Team
June 28, 2018 06:50 PM UTC
Hi Martin,
We were able to reproduce the problem. A support incident to track the status of this issue has been created under your account. Please log on to our support website to check for further updates
Please let me know if you have any questions.
Regards,
Dilli babu.
SIGN IN To post a reply.
- 5 Replies
- 3 Participants
-
MS Martin Stein
- Jun 19, 2018 10:55 AM UTC
- Jun 28, 2018 06:50 PM UTC