Commit graph

8375 commits

Author SHA1 Message Date
Vitor Mattos
a65cc3c6be
chore: make Nginx acessible outside of localhost
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:05 -03:00
Vitor Mattos
7404491079
fix: command
remove duplicated occ

Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:05 -03:00
Vitor Mattos
7433e302e6
chore: add LibreSign folder to Codespace
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:05 -03:00
Vitor Mattos
76eaaef264
fix: psalm
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:05 -03:00
Vitor Mattos
da0f0e6cad
feat: validate encoding
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:05 -03:00
Vitor Mattos
8423254363
chore: install dependencies
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:05 -03:00
Vitor Mattos
be2d02c369
fix: scale marging
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:05 -03:00
Vitor Mattos
76fe521487
fix: remove background, need to be transparent
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:05 -03:00
Vitor Mattos
76d5550963
chore: increment default font
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:05 -03:00
Vitor Mattos
15401905bd
chore: reduce font size when is getting metadata
When need to add metadata to signature, is necessary more space.

Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:05 -03:00
Vitor Mattos
210c35e498
chore: improve text
When the date and time come from server, this is generated by JSignPdf
and can't be formated by Twig

Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:05 -03:00
Vitor Mattos
486ad76711
fix: return default background as PNG
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:05 -03:00
Vitor Mattos
7098e27d3d
fix: update to consider scale
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:05 -03:00
Vitor Mattos
1f84069b57
fix: cnsider changes after implement scale value
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:05 -03:00
Vitor Mattos
fedda176d2
fix: prevent error when haven't system value
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:05 -03:00
Vitor Mattos
efbcfa293e
fix: unit test
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:04 -03:00
Vitor Mattos
65c4b20cff
fix: center y
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:04 -03:00
Vitor Mattos
4f461bc039
chore: send scale values to JSignPdf
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:04 -03:00
Vitor Mattos
e859ecd89f
chore: use getter
we already have a method that return this value

Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:04 -03:00
Vitor Mattos
6518f87ec5
fix: use same settings of JSignPdf
This was extracted from a signed PDF file and not from JSignPdf source

Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:04 -03:00
Vitor Mattos
31936441b1
fix: ratio between preview and signature generated at PDF file
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:04 -03:00
Vitor Mattos
e240286cc1
chore: remove wasScaled alert
We will preserve width and height if less than a scale factor

Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:04 -03:00
Vitor Mattos
4be5973f65
fix: consider when we havent a userSession instance (at tests only)
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
bf30bfaf64
fix: unit test
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
fb391e7374
fix: cs
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
d576205afd
fix: unit test
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
403f6c8c2a
chore: change description
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
7ca63a3c8b
chore: make frontend compatible with custom width and height
- Signature component at frontend was replaced by a best maintained
  package
- Addded more capabilities

Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
819eaec349
chore: customize width and height
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
992420886d
chore: check capability to use signer signature image
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
79f2fa7886
fix: remove signercommonname from jsignpdf
This field is sent from LibreSign and need to be handled by twig. When
we send the var to JSignPdf, isn't possible to handle the var by twig
to, by exapmle, set the first name as uppercase.

Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
fce1466631
chore: only send the signature file id of signer when is allowed
The admin can disable signer to define a visible signature when set the
display signature mode as signer name and description. With this mode,
don't will wbe added the handmade signature to document

Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
d938221a4b
chore: add dot
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
f2d7592a63
chore: add signer email as template var
The signer email is an optional value and could not be available

Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
6a00ee704f
fix: cs
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
1465db43e1
chore: mock database class
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
eb7d2bc297
chore: implement mock of hasKey
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
bdf6e50aac
chore: replace real instance by mock
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
bc58341761
chore: remove unecessary call to create account methods
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
32ae644a9f
fix: cs
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:03 -03:00
Vitor Mattos
295c8cc099
chore: increase image size
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:02 -03:00
Vitor Mattos
f3477f060e
fix: key name
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:02 -03:00
Vitor Mattos
f79a6efafe
fix: different flow when can't create signature
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:02 -03:00
Vitor Mattos
d06ff43778
fix: prevent error when already have notification
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:44:01 -03:00
Vitor Mattos
10d88df536
fix: use half of the image
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:42:57 -03:00
Vitor Mattos
d3019cbe73
chore: create capability to say if signer can create signature
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:42:57 -03:00
Vitor Mattos
9c442c50de
fix: load default template when template isn't empty
When we haven't this setting is after the first run and the admin didn't
changed this value.

Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:42:56 -03:00
Vitor Mattos
d4df1f157b
chore: move default render mode to constant
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:42:56 -03:00
Vitor Mattos
c21b70b0f9
fix: prevent don't replace certificate engine when configured by cli
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:42:56 -03:00
Vitor Mattos
f6bff7c037
chore: reorganize code
- Deleted unused files
- Isolated Sign engine into a specific folder
- Methods renamed to get a best meaning
- Merged methods with same objective

Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-04-11 10:42:56 -03:00