不使用第三方库即可转换为PDF的C#代码 [英] c# code for converting into PDF without using third party library

查看:169
本文介绍了不使用第三方库即可转换为PDF的C#代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我目前的项目中,我必须将几种不同文件格式的文档转换为PDF.

In my present project I have to convert documents in a few different file formats into PDFs.

源文件格式包括可以在Microsoft Office中找到的格式(.doc,.docx,.xls,.xlsx,.ppt,.pptx)以及各种类型的图像(.jpg,.png和.jpeg ,.tiff).

The source file formats include formats one would find in Microsoft Office (.doc,.docx,.xls,.xlsx,.ppt,.pptx) as well as various types of images (.jpg,.png,.jpeg,.tiff).

我们不希望使用任何第三方库,并且我的组织使用C#满足我们的编码需求.请提供有关如何执行此操作的任何答案的文档.

We prefer not to use any third party library, and my organization uses C# for our coding needs. Please provide some documentation on how to go about doing this with any answers.

谢谢.

推荐答案

您将不得不使用C#编写自己的PDF库.

You would have to write Your own PDF library in C#.

我建议使用免费的PDFsharp

I recommend using PDFsharp, which is free

http://www.pdfsharp.net/

这篇关于不使用第三方库即可转换为PDF的C#代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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