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 8: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 Sergey Alexandrovich Kryukov 460
1 OriginalGriff 220
2 Kornfeld Eliyahu Peter 210
3 DamithSL 210
4 Peter Leow 100
0 OriginalGriff 7,215
1 DamithSL 5,199
2 Maciej Los 4,866
3 Sergey Alexandrovich Kryukov 4,757
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web04 | 2.8.141223.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