EldoS | Feel safer!

Software components for data protection, secure storage and transfer

PDF Background

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
Posted: 05/24/2010 05:21:53
by keys (Standard support level)
Joined: 05/24/2010
Posts: 3

Where is a VCL sample to chage the background image, and a assing the background.data variable.

Thank you.
Posted: 05/24/2010 05:39:12
by Ken Ivanov (EldoS Corp.)

Thank your for your interest in our products.

There is no such sample available at the moment, sorry.

In general, you should perform the following steps to set the background:
1) Set TElPDFSignature.WidgetProps.BackgroundStyle to pbsCustom,
2) Assign the array containing binary representation of a JPEG2000 image to the TElPDFSignature.WidgetProps.Background.Data property,
3) Set Width and Height properties of the TElPDFSignature.WidgetProps.Background object according to the parameters of your JPEG2000 image.
Posted: 05/24/2010 06:30:11
by keys (Standard support level)
Joined: 05/24/2010
Posts: 3

Thank You. My code is this.

ImageF : File;
Buf : ByteArray;
camino : string;

Sig.WidgetProps.BackgroundStyle := pbsCustom;

Sig.WidgetProps.Background.Height := 172;
Sig.WidgetProps.Background.Width := 177;
Camino := 'c:\Tca\IMFACEL.JP2';
AssignFile(ImageF, camino);
system.Reset(ImageF, 1);
SetLength(Buf, FileSize(ImageF));
system.BlockRead(ImageF, Buf[0], Length(Buf));

Sig.WidgetProps.Background.ImageType := pitJPEG2000;
Sig.WidgetProps.Background.Data := Buf;

But the image does not appear in the pdf.
Posted: 05/24/2010 08:45:00
by Eugene Mayevski (EldoS Corp.)

This question has been discussed in the forum several times with all details and links. Please do the search before posting.

Sincerely yours
Eugene Mayevski



Topic viewed 1084 times

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


Back to top

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

Got it!