EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Image will not show up

Posted: 08/16/2011 13:27:05
by needAPicture (Basic support level)
Joined: 08/16/2011
Posts: 2


I've been working with this for quite a while, and cannot seem to get the background image to appear. I have read through the documentation, forum posts, and how-to's, but the image will not appear. I am working for a company that is looking into this product, and I am currently using the demo key. Here's the code:(vb .net)

sig.WidgetProps.AutoPos = False
sig.WidgetProps.AutoSize = True
sig.WidgetProps.AutoText = False
sig.WidgetProps.ShowTimestamp = False
sig.WidgetProps.SignerCaption = ""
sig.WidgetProps.AlgorithmCaption = ""
sig.WidgetProps.Header = ""
sig.WidgetProps.BackgroundStyle = SBPDF.TSBPDFWidgetBackgroundStyle.pbsCustom
sig.Invisible = False
sig.EmptyField = False
sig.WidgetProps.NoView = False
sig.WidgetProps.AutoStretchBackground = True
sig.WidgetProps.IgnoreExistingAppearance = False
Dim image As New SBPDF.TElPDFImage

'****putting the image in a byte array, then into the signature
Dim temp(imageFStream.Length) As Byte
imageFStream.Read(temp, 0, imageFStream.Length)
image.ImageType = SBPDF.TSBPDFImageType.pitJPEG2000
image.Data = temp
sig.WidgetProps.Background.Data = image.Data
sig.WidgetProps.Print = True
sig.WidgetProps.Background.ImageType = SBPDF.TSBPDFImageType.pitJPEG2000

Also, setting the image to pbsDefault also does not show an image; however, if I go into Adobe Reader and sign it manually with an image, the image appears just fine. The signature is being created from a field, but even when it isn't, the image will not appear. I can give more information if needed; any help will be appreciated.

Thank you.
Posted: 08/16/2011 13:56:46
by Eugene Mayevski (Team)

1) Please post your image file.
2) You don't set dimensions of the widget. In case of custom background SecureBlackbox won't do this for you.

Sincerely yours
Eugene Mayevski
Posted: 08/16/2011 13:58:55
by Eugene Mayevski (Team)

JFYI: There's a how-to article in the help file about setting a widget.

Sincerely yours
Eugene Mayevski
Posted: 08/16/2011 14:04:48
by Dmytro Bogatskyy (Team)

Also, please ensure that the image in JPEG 2000 format, not in JPEG 2000 code stream format or other.
Posted: 08/22/2011 10:21:34
by needAPicture (Basic support level)
Joined: 08/16/2011
Posts: 2

Thank you for the help.
I did not realize that jpeg2000 code stream and jpeg2000 image file were two different file types; it seems that the freeware converter I found converts to the file stream type only. I dug up some jpeg2000 images with a web search, and upon setting the dimensions and using that file, the code worked. Now I just need a decent converter....

Again, thank you for your time.



Topic viewed 2188 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!