如何通过从用户输入的文本中获取内容来创建pdf文件 [英] How to create an pdf file by taking the content from user inputed text

查看:99
本文介绍了如何通过从用户输入的文本中获取内容来创建pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是开发新手,我创建了一个学术项目,所以我决定为CA专业人员创建一个应用程序,要求是用户需要手动填写他们从网站上获取的应用程序表单,我的想法是不需要下载该表单而不是更好地给他们一个桌面基础应用程序,其中所有组件将以他们在硬显示的相同方式排列表格副本,用户将输入欲望文本,然后他将保存为pdf格式。



我的问题是我不知道如何开始。



我搜索了很多但没有开始。



请帮帮我。

解决方案

你可以从查看以前的.NET库开始创建PDF。您可以使用iText的.NET端口;这个端口叫做iTextSharp:

http://en.wikipedia.org/wiki/IText [ ^ ],

http://itextpdf.com/ [ ^ ],

http://sourceforge.net/projects/itextsharp/ [ ^ ]。



我也提供了iText的链接,因为几乎所有使用iTextSharp的文档都在那里,以Java文档的形式提供。



-SA

Hi ,

I am new to development , i had create an academic project , so i decided to create an application for CA professional ,The requirement is that the user need to fill an application form manually which they get it from website, my idea is to no need to download that form instead of it better to give them an desktop base application where all component will be arrange in same way they r showed in hard copy of forms , the user will input the desire text and then he will save it in pdf format.

My problem is that i don''t know how to start.

I searched a lot but not getting an start.

Please help me out.

解决方案

You can start from looking at the .NET library used to create PDF. You can use the .NET port of iText; this port is called iTextSharp:
http://en.wikipedia.org/wiki/IText[^],
http://itextpdf.com/[^],
http://sourceforge.net/projects/itextsharp/[^].

I provided links to iText, too, because nearly all documentation you need to work with iTextSharp is there, provided as Java documentation.

—SA


这篇关于如何通过从用户输入的文本中获取内容来创建pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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