EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Signature image is distorted

Posted: 03/25/2014 07:10:22
by Dolores Bonilla (Basic support level)
Joined: 03/25/2014
Posts: 1

I need to load a imagen in the background. I tried a lot of format (jpg, png, bmp) but nothing works.

The only thing I've got is this:

Sig.SignatureType := stDocument;
Sig.Invisible := false;
sig.WidgetProps.BackgroundStyle:= pbsCustom;
sig.WidgetProps.Background.Height:= 32;
sig.WidgetProps.Background.Width:= 32;
Sig.WidgetProps.Background.ColorSpaceType:= pcstRGB;
sig.WidgetProps.Background.ImageType:= pitCustom;
MS := TMemoryStream.Create;
MS.Seek(0, soFromBeginning);
SetLength(aBArray, MS.size);
MS.ReadBuffer(aBArray[0], Length(aBArray));
Sig.WidgetProps.Background.Data:= aBArray;
sig.WidgetProps.HideDefaultText:= True;

But the image is distorted (show attachment).


Posted: 03/25/2014 07:31:03
by Dmytro Bogatskyy (Team)

Thank you for contacting us.

But the image is distorted (show attachment).

For image type pitCustom and color space type pcstRGB the TElPDFImage.Data property should contain RGB image (3 byte per pixel), without any additional information like BMP file header.

tried a lot of format (jpg, png, bmp) but nothing works.

The jpeg and jpeg2000 formats (only JP2 bitmap format) are supported by pdf standard, in this case image type should be pitJPEG or pitJPEG2000 accordingly.
Please, see: https://www.eldos.com/documentation/sb...etype.html

Note, Background.Height and Width properties should match image dimensions.



Topic viewed 590 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!