如何在不使用任何第三方工具(如syncfusion,apitron等)的情况下生成PDF [英] How to generate PDF without using any third party tool (like syncfusion, apitron etc.)

查看:168
本文介绍了如何在不使用任何第三方工具(如syncfusion,apitron等)的情况下生成PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

How to generate PDF without using any third party tool (like Syncfusion, Apitron etc.)







我尝试过:



如何在不使用任何第三方工具(如Syncfusion,Apitron等)的情况下生成PDF




What I have tried:

How to generate PDF without using any third party tool (like Syncfusion, Apitron etc.)

推荐答案

如果要保存不使用第三方工具的文件,您将不得不编写与 PDF规范相匹配的代码[ ^ ]。这不是一项微不足道的任务 - 正如您所看到的,1.7规范运行到756页。



如果您只是想避免购买PDF生成工具的成本,那么有一些开源 [ ^ ]你可以试试的那些。虽然我现在使用付费的Syncfusion版本,但我在 PDFSharp [ ^ ], iTextSharp [ ^ ](虽然您必须小心安装的内容有了这个,因为Sourceforge似乎想添加大量的垃圾)和夏普PDF [ ^ ]。
If you want to save the file without using a 3rd party tool, you are going to have to write code that matches the PDF specification[^]. This is not a trivial task - as you can see, the 1.7 spec runs to 756 pages.

If you are just trying to avoid the cost of purchasing a PDF generation tool, there are some open source[^] ones that you could try. While I use the paid Syncfusion version now, I have had a lot of success with PDFSharp[^], iTextSharp[^] (although you have to be careful what you install with this one as Sourceforge does seem to like to add a lot of rubbish) and Sharp PDF[^].


完全没问题。如果您确实决定避免使用任何第三方工具,则始终可以开发第一方工具,因为完整标准是根据ISO 32000-1:2008发布的。不幸的是,获取文档副本不是免费的。



您还可以从Adobe网站获取标准的描述。特别是,请参阅 http://www.adobe.com /content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_reference_1-7.pdf [ ^ ]。



详情请联系我们参考文献集,请参阅:

可移植文档格式 - 维基百科,免费的百科全书 [< a href =https://en.wikipedia.org/wiki/Portable_Document_Formattarget =_ blanktitle =New Window> ^ ]。



你能做这个工作吗?我对此表示怀疑。然而,有很多第三方PDF工具,所以许多团队成功地解决了这些问题(良好的第三方PDF查看器的可用性比可怕的Adobe好得多)。无论如何,要切合实际,仔细检查这个项目的可行性。 :-)



-SA
No problem at all. If you really determined to avoid using any 3rd-party tool, you can always develop a 1st-party tool, because full standard is published under ISO 32000-1:2008. Unfortunately, obtaining the copy of the document is not free of charge.

You can also obtain the description of the standard from Adobe site. In particular, please see http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_reference_1-7.pdf[^].

For further detail and good collection of references, please see:
Portable Document Format — Wikipedia, the free encyclopedia[^].

Can you do this work? I doubt it. Nevertheless, there is a good bunch of 3rd-party PDF tools, so a number of teams successfully solved such problems (and the usability of good 3rd-party PDF viewers much better then dreaded Adobe). Anyway, be realistic and carefully examine the feasibility of such project. :-)

—SA


这篇关于如何在不使用任何第三方工具(如syncfusion,apitron等)的情况下生成PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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