Hi.
have no ide about PDF so this might be a totaly wrong way to do it.
I needed a simple way to handle standart PDFforms. so i createde some PDF's with []tags in them. and this all went OK...... my problem is getting the data back to a pdfFile.
A tag could looks like this [CustomerName]
---------------------------------------------------------------------------------------
PdfDocument pdfDoc = PdfReader.Open("C:/PDF/PdfContract.pdf", PdfDocumentOpenMode.Modify);
PdfContent pc = pdfDoc.Pages[0].Contents.CreateSingleContent();
string s = pc.Stream.ToString();
char[] c = { '[', ']' };
string[] sList = s.Split(c);
for (int i = 0; i < sList.Length; i++)
{
if (sList[i].Contains("CustomerName"))
{
sList[i] = CustomerObject.Name;
}
}
---------------------------------------------------------------------------------------
But then im stuck. no matter what i do, i can't use the string to create a new pdfFile.
If this should be of any help to you, and you solv the last step of saving data again..Pleace post the solution. Or if you find a better way i would also be wery happy to see it
Have a nice day
TheHood