Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to use iTextSharp to Manipulate PDF Content
Message
From
29/10/2015 12:14:29
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Trying to use iTextSharp to Manipulate PDF Content
Environment versions
Environment:
C# 5.0
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01626629
Message ID:
01626629
Views:
57
Hi All.

Actually, I am trying to do this in VFP using wwDotNetBridge. However, when it wasn't working in VFP, I decided to give it a go in C# to see if I could debug it there. Surprise, surprise. The behavior is exactly the same - no errors but it doesn't replace the button either :(. Here is the code:
FdfReader fdfReader = new FdfReader("c:\\apps5\\nexus\\Omaha_IAF.fdf");
PdfReader pdfReader = new PdfReader("c:\\apps5\\nexus\\Omaha_IAF.pdf");

PdfStamper stamper = new PdfStamper(pdfReader, new FileStream("c:\\apps5\\nexus\\Omaha_IAF_Test.pdf", FileMode.Create), '\0', true);
stamper.AcroFields.SetFields(fdfReader);
AcroFields Form = stamper.AcroFields;
PushbuttonField Cmd = Form.GetNewPushbuttonFromField("cmdSignature");
Cmd.Image = iTextSharp.text.Image.GetInstance("e:\\marcia\\AkSig.tif");
Form.ReplacePushbuttonField("cmdSignature", Cmd.Field);
stamper.Close();
axAcroPDF1.LoadFile("c:\\apps5\\nexus\\Omaha_IAF_Test.pdf");
axAcroPDF1.setShowToolbar(true);
Any help is greatly appreciated.
Next
Reply
Map
View

Click here to load this message in the networking platform