Digital Signature display properties - Size? - InfoPath Dev
in

InfoPath Dev

Digital Signature display properties - Size?

Last post 02-25-2010 10:21 AM by Patrick Finnicum. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-22-2009 08:41 AM

    Digital Signature display properties - Size?

    Hello all,

    Hoping someone can assist.  I have searched through all 50 pages of search results on this site relating to "signature" and cannot find any mention of something like this...  This digital signature displayed on my form (after it has been signed) is too large.  Is there a way I can manipulate the size of the displayed signature after it has been signed?  I have tried to set the section height to a hard value to no avail.

    TIA for ANY and ALL consideration.

  • 10-02-2009 03:21 PM In reply to

    Re: Digital Signature display properties - Size?

    alright, it took me DAYS worth of tinkering, but i think i nailed it.  it's a total hackjob, but it seems to be working in lab tests (IP 2007).  should work for not only shrinking, but enlarging signatures.

    1)  While in design, and you have your form with a signed section, go to File -> Save As Source Files.  Save them to somewhere.

    2)  Open up Windows Explorer, and traverse down to wherever you saved those files.

    --  commentary:  in here, you'll be making all the modifications to "view1.xsl", but to view your changes you'll need to right-click -> design on "manifest.xsf".  WARNING:  Upon closing manifest.xsf, never save changes.  IP messes with your code and it won't work after that.

    3)  Right click on "view1.xsl", and edit/open with notepad (can you smell the hackjob coming?).

    4)  Search for the name of your signature binding.  In my case, it was the first occurrence found.  *should* be the same for you.

    5)  We're going to manually put this signature into its own table and control the TD height of it.  So, to reduce your siggy to 30px, inside the <td> tags of your signature, encapsulate the contents with these two:

    <table style="TABLE-LAYOUT: fixed;"><tr><td height="30px">

    </td></tr></table>

    6)  Now, you need to find where it actually displays your signature, and shrink that down, otherwise the signed portion will appear to be blank.  Search your "validsignature".  In my case, it was the first occurrence found.  if you look up 17 or so lines, you should see a line that says "SignatureBlock="yoursignaturename" " as a parent XML node.  So, you'll know you're in the right area.

    7)  Below wherever you found your validsignature, you should see a block of code encapsulated by <xsl:choose> tags.  This is where it determines whether or not it's a valid signature.  The first child should be the valid signature block.  The <img> tag in there is the image of the signature block.  Simply change that tag to have a height/width of whatever you like.  preferably it'll fit into whatever you put up in instruction #5 above.

    After you mess around with it for a while, you should be able to pick it up.  I DO BELIEVE that in order to get all of these files back together, is to right-click on "manifest.xsf", go to design and then publish.

    Hope this helps someone else down the line.  Mostly, I hope it helps me on Monday morning to remember all this stuff.

    Filed under: ,
  • 02-25-2010 10:21 AM In reply to

    Re: Digital Signature display properties - Size?

    one thing I have noticed, and not sure why this is occurring, but I've dealt with it.

    sometimes i cannot find "validsignature".  in order to rectify this, open up the .xsn file again in design view.  then right click on your signature section and go to "section properties" and then "digital signatures".

    now, uncheck the "Show signatures" and "when signed" checkboxes, then recheck them.  no need to click "ok" or "apply" between unchecking and checking.

    do that for all of your signature areas.  save and close.  then reopen, save as source files again.  follow instructions in the prior post. 

    for some reason, that adds back in "validsignature" sections.

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.