Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visible signature, font size not respected when used with signature name #99

Open
majkaz opened this issue Mar 23, 2022 · 2 comments
Open

Comments

@majkaz
Copy link

majkaz commented Mar 23, 2022

After new system installation (win 10, update), I've installed version 2.2 and found that the font size for the visible signature doesn't respect the font size if used together with signature name.

Not sure what version I had installed in the past but the problem was not there.

See attachment - signed with identical settings, just one with location set, two are "signature only" and one is "with name". Font size is set to 10.0

There is another problem - config has font (Tahoma) and code page (cp1250) set but it doesn't seem to work well - see location in the upper most signature.

test_sign.pdf

@kwart
Copy link
Member

kwart commented Mar 23, 2022

It's an issue in the OpenPDF. And IMO it was in the older versions too. The library tries to find proper font size by decreasing it step by step. This algorithm fails for some reason.

To workaround this in JSignPdf, don't use Display="Signature name and Description" in the visible signature settings but use just the "Description only" value.

@majkaz
Copy link
Author

majkaz commented Mar 23, 2022

Not a big problem, it was just a surprise.

Just a note - v. 1.6 does work as intended in regard to font size in signature with name. No problems with č or ě only when the config is left on default, trying to set the font or code page mangles the czech characters.

See attachment, signature with name and font size set to 8.0, default config.

Tried to run the 2.2 as java -jar, no difference, the font size doesn't work.

test_sign_16.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants