Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
I need help in exdtracting the signature data and storing it in my sql db. I can get the data from the other fields like textboxes, but i am having trouble getting the data from a signed field. GetFieldValue doesnt seem to show me anything when i ask for the signature field. I created my pdf with IText and embeded it in my webform. I placed a button with submit action that sends my pdf data (FDF) to another webform. In this webform i try tp handle the data in the pageload event.
 
protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
               
                HttpRequest pdfRequest = Request;
                               
                System.IO.Stream istream = Request.InputStream;
                
                //XfdfReader xfdf = new XfdfReader(istream);
                //Label1.Text = xfdf.GetField("Test Officer");
                FdfReader fdf = new FdfReader(istream);
                string pdfFields = 
                    "Test Plan Number: " + fdf.GetFieldValue("Test Plan Number") + "<br>" +
                    "Test Officer: " + fdf.;
                Label1.Text = pdfFields;
            }
            catch (Exception ex)
            {
                Label1.Text = ex.Message + System.Environment.NewLine + ex.StackTrace;
            }
        }
Posted 3-Oct-11 7:22am
ajep496

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

  Print Answers RSS
0 OriginalGriff 6,649
1 Sergey Alexandrovich Kryukov 6,270
2 CPallini 5,190
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 3 Oct 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100