用C#写入PDF格式的方块 [英] Write in squares of PDF forms with C#

查看:94
本文介绍了用C#写入PDF格式的方块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

我需要帮助来开发C#,这个解决方案允许我读取.csv的数据并以PDF格式的方块编辑/写入,然后打印已经填充,然后将纸张发送到宾馆签署文件。

我是一家呼叫中心公司的IT人员。代理完成一个脚本,然后下载.csv,由应用程序读取并生成PDF,每个文档字段的正方形中填入数据。

今天是2016年3月13日,将会必须在2016年3月24日之前完成该计划。

有谁能帮我解决这个问题?



提前感谢这个重要的帮助。



我尝试了什么:



我试过了免费的iTextSharp.dll,但找不到如何用方块写。

Hello all.
I need help to develop in C#, a solution that allows me to read a data of .csv and edit / write in squares of PDF forms, then print already filled, then send paper to the guest house to sign the document.
I'am single IT in a call center company. Agents complete a script, then download the .csv, to be read by an application and generate PDFs with the data filled in the squares of each document field.
Today is day 13-Mar-2016 and will have to have the program made 24-Mar-2016.
Can anyone help me solve this problem?

Thanks in advance for this important help.

What I have tried:

I've tried the free iTextSharp.dll, but can not find how to write in squares.

推荐答案

我使用了 sharpPDF C#库,这是非常简单,源代码也可用(但其他库可能更好),例如参见: sharpPDF SITE [ ^ ]



直接在矩形对象中绘制文本是不可能的,但它应该是可以使用只有一行和一列的表格对象做你想做的事情,然后用段落对象填充它。



注意放在x,y中轴是混乱的,y位置从底部开始计数。
I have used the sharpPDF C# library, which is quite simple and the source code is available too (but other libraries might be better), for an example see: sharpPDF SITE[^]

Drawing text in a rectangle object directly is not possible, but it should be possible to do what you want using a table object with only one row and column and then fill it with a paragraph object.

Note that placement in the x,y axis is confusing, the y position starts counting from the bottom.


这篇关于用C#写入PDF格式的方块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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