Click here to Skip to main content
15,910,009 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 13-Mar-16 8:07am
Comments
Richard MacCutchan 13-Mar-16 13:19pm    
You need to study the iTextSharp documentation, this is not a simple few lines of code, or something you can learn in a few hours.

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900