Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to use iTextSharp to Manipulate PDF Content
Message
De
29/10/2015 12:14:29
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Trying to use iTextSharp to Manipulate PDF Content
Versions des environnements
Environment:
C# 5.0
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01626629
Message ID:
01626629
Vues:
56
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform