在.net core 2.1中将DOCX文件转换为PDF文件 [英] Converting a DOCX file to PDF file in .net core 2.1

查看:1441
本文介绍了在.net core 2.1中将DOCX文件转换为PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我读过一篇文章,讨论如何在此处将Docx文件转换为PDF文件:  https://social.msdn.microsoft.com/Forums/en-US/10a26266-496b-4cdc-a0d4-7e5a66e6dbe0/word-to-pdf-in-sharepoint- event-receiver-using-microsoftofficeinteropword?forum = sharepointdevelopmentprevious



但是,似乎我们需要修复一个与正在使用框架.net核心2.1的正在进行的开发项目不兼容的Microsoft.Sharepoint.dll。是否可以使用REST API将Docx转换为PDF?我已阅读
以下链接,但似乎没有REST API可进行转换: 
https://docs.microsoft.com/en-us/previous-versions/office/ developer / sharepoint-rest-reference / dn450841(v = office.15)

解决方案

您好


我记得sharepoint有一个名为"word automation services"的服务。可以帮助将docx转换为pdf。


您可以在technet中查看该服务。


https://docs.microsoft.com/en-us /previous-versions/office/developer/sharepoint-2010/ee558830(v=office.14)


Hi all,

I have read an article which talks about how to convert a Docx file to a PDF file here: https://social.msdn.microsoft.com/Forums/en-US/10a26266-496b-4cdc-a0d4-7e5a66e6dbe0/word-to-pdf-in-sharepoint-event-receiver-using-microsoftofficeinteropword?forum=sharepointdevelopmentprevious

However, it seems that we need to nuget a Microsoft.Sharepoint.dll which is not compatible with my on going development project that is using the framework .net core 2.1. Is that possible to use REST API to make a convertion of Docx to PDF? I have read the following link but it seems that there is no REST API to make a conversion: 
https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-rest-reference/dn450841(v=office.15)

解决方案

Hi

I remember that sharepoint has a service named "word automation services" can help convert docx to pdf.

You can check the service in technet.

https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ee558830(v=office.14)


这篇关于在.net core 2.1中将DOCX文件转换为PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆