EldoS | Feel safer!

Software components for data protection, secure storage and transfer

pdf sign - visual image, header

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#11756
Posted: 11/19/2009 08:13:04
by Kvetoslav Jansta (Standard support level)
Joined: 05/06/2008
Posts: 56

Hello,

trying to use PDF custom image for el.sign :

1/
thing the text of header is not so exactly aligned :(
see the screen in the attachment

Sig.WidgetProps.Header := pdf_SCert.SubjectName.CommonName;

it shoud be 'Květoslav'
letter 'ě' is mixed with lettet 't'

2/
the icon in the Kv : would be pretty if the CommonName has been displayed right of the picture.
Any property ? or do I have to assign ->
:= ' ' + pdf_SCert.SubjectName.CommonName; ?

thank you,
slava jansta


#11760
Posted: 11/19/2009 11:12:51
by Dmytro Bogatskyy (EldoS Corp.)

Quote
thing the text of header is not so exactly aligned :(
see the screen in the attachment

It is not related with a custom image.
It is an issue with encodings. Please check a PDFBlackbox\Signer or SecurePDF samples. You can use unicode encoding and embed unicode true-type font, you can use custom encoding table (like Win-1252) or build it automatically:
By default the AutoAdjustEncoding option is on (in version 7), so the encoding table (in fact a differences table for an encoding object) will be created on fly based on characters that you use in the signature widget. For each non-ascii character their character code is used. But for common characters the corresponding glyph names should be used, otherwise Adobe Reader uses a default metrics for a character. So the characters could overlap.
You need to handle OnLookupGlyphName event and specify a glyph name for unicode character, see samples.
Adobe Glyph List is available here:
http://www.adobe.com/devnet/opentype/...phlist.txt
Quote
the icon in the Kv : would be pretty if the CommonName has been displayed right of the picture.
Any property ? or do I have to assign ->
:= ' ' + pdf_SCert.SubjectName.CommonName; ?

The location of this icon could change depending on Adobe viewer version.
Adding white spaces to the Header is a simplest way. Also you can use CustomAppearance property to completely change a look of signature widget.
#11794
Posted: 11/24/2009 06:13:37
by Kvetoslav Jansta (Standard support level)
Joined: 05/06/2008
Posts: 56

Quote
Bogatskyy wrote:
The location of this icon could change depending on Adobe viewer version.
Adding white spaces to the Header is a simplest way. Also you can use CustomAppearance property to completely change a look of signature widget.


Hi,

is there any limit of header size ? see the picture please.
I wanted to show text from a till z, but it was cutted near by letter 'p'.

Sig.WidgetProps :

AutoPos := False;
AutoFontSize := True;
AutoSize := True;
AutoText := False;

BackgroundStyle := pbsCustom;
Background.Height := 200;
Background.Width := 300;
AutoAdjustEncoding := True;
AutoStretchBackground := False;
Background.Data := xFile;


thank you, slava


#11795
Posted: 11/24/2009 07:49:54
by Dmytro Bogatskyy (EldoS Corp.)

Quote
I wanted to show text from a till z, but it was cutted near by letter 'p'.

Then you should either make a widget bigger or make a font smaller.
Set AutoSize property to false and adjust Width and Height properties, or set AutoFontSize property to false and change TitleFontSize property.
#11796
Posted: 11/24/2009 08:51:18
by Kvetoslav Jansta (Standard support level)
Joined: 05/06/2008
Posts: 56

Quote
Bogatskyy wrote:
Quote
I wanted to show text from a till z, but it was cutted near by letter 'p'.

Then you should either make a widget bigger or make a font smaller.
Set AutoSize property to false and adjust Width and Height properties, or set AutoFontSize property to false and change TitleFontSize property.



ouuu, sorry, I don't know why I have not seen the property before :(
TElPDFSignatureWidgetProps
property Width

sorry, slava
Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.

Reply

Statistics

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