473,320 Members | 1,802 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

ITextSharp write content in existing pdf

hello everybody,

i'm new with itextsharp and want to write things in an existing pdf.
i've got a predesigned pdf. on that pdf i have to write some lines.

Expand|Select|Wrap|Line Numbers
  1. string formFile = @".\FormDocument_src.pdf";
  2.    2:  string newFile = @".\FormDocument_out.pdf";
  3.    3:   
  4.    4:  PdfReader reader = new PdfReader(formFile);
  5.    5:  PdfStamper stamper = new PdfStamper(reader, 
  6.    6:       new FileStream(newFile, FileMode.Create));
  7.    7:  AcroFields fields = stamper.AcroFields;
  8.  
had found this code what makes it possible to copy the existing pdf but i can't write extra lines to it.

it gotta be a pdf for logistic delivery partners.

thanx for the help.
greetings
bartels
Mar 3 '08 #1
0 1233

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Josh | last post by:
When I add an image into the pdf it gets bigger. How can I stop this? All ideas welcome, thanks
1
by: narasimha.gm | last post by:
Hello All, We are developing an application in C# which has to generate a report in PDF format. ITextSharp meets our requirments and we are intending to use it in our project. Has any one...
1
by: Ravi | last post by:
Hi, i need to use iTextSharp to generate the PDF in c# web application. if any one know it will be of greate help. Thanks -- ravib
0
by: Nique | last post by:
Hey all I'm trying to create a PDF document using iTextSharp. Now creating the thing is all kewl, open in browser, save to disk, all that is fine, but I'd like to know if anybody has managed to...
1
by: Patrick Olurotimi Ige | last post by:
Has anybody used the itextsharp http://itextsharp.sourceforge.net to convert asp.net pages to PDF files? Any asp.net examples? *** Sent via Developersdex http://www.developersdex.com ***...
7
by: Andrea | last post by:
Hi there - I'm hoping someone can help me; I've been struggling with this for a few days! :-) I have a webpage that is comprised of many forms containing questions. As the user answers one...
2
by: dgk | last post by:
I'm looking at iText to generate PDFs, and I'm not sure if iTextDotNet is the same as iTextSharp. I have the latest iTextDotNet, which is for framework 2. Are these the same product? Also, I can...
0
by: antonyliu2002 | last post by:
I have no problem writing PDF file to hard drive on the fly with iTextSharp, but have had no luck in sending PDF as a stream in my asp.net web application. I am simply copying the example at ...
0
by: ankitnagpal1692 | last post by:
When password in Arabic language is set in pdf using itextsharp, it does not open in Adobe Acrobat Reader using the same password in Arabic. While it is working fine for English language. When I...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.