Skip to content

feat: LF-34 add pdf signing feature#42

Merged
kumalg merged 18 commits into
mainfrom
feature/lf-34-signed-pdfs
Feb 26, 2026
Merged

feat: LF-34 add pdf signing feature#42
kumalg merged 18 commits into
mainfrom
feature/lf-34-signed-pdfs

Conversation

@kumalg

@kumalg kumalg commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Feb 12, 2026

Copy link
Copy Markdown

Test Results

5 tests  +5   5 ✅ +5   2s ⏱️ +2s
2 suites +2   0 💤 ±0 
1 files   +1   0 ❌ ±0 

Results for commit bfc915e. ± Comparison against base commit 103fa70.

♻️ This comment has been updated with latest results.

Comment on lines +263 to +300
const operators: PDFOperator[] = [
pushGraphicsState(),

// Light gray background
setFillingRgbColor(0.95, 0.95, 0.95),
rectangle(0, 0, width, height),
fill(),

// Gray border
setStrokingRgbColor(0.6, 0.6, 0.6),
setLineWidth(0.5),
rectangle(0.25, 0.25, width - 0.5, height - 0.5),
stroke(),

// Signature label
beginText(),
setFillingRgbColor(0.3, 0.3, 0.3),
setFontAndSize(font.name, 7),
moveText(5, height - 12),
showText(font.encodeText(label)),
endText(),

// Signer name
beginText(),
setFillingRgbColor(0, 0, 0),
setFontAndSize(fontBold.name, 10),
moveText(5, height - 25),
showText(fontBold.encodeText(name)),
endText(),

// Date
beginText(),
setFillingRgbColor(0.3, 0.3, 0.3),
setFontAndSize(font.name, 7),
moveText(5, height - 37),
showText(font.encodeText(dateTime)),
endText(),
]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to have it as a react component?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't able to do that because this approach requires using low pdf features. That's why I added possibility for custom react signatures, that will convert it to png and then show it, just like Podpis Zaufany does. I didn't find other options

@kumalg kumalg changed the title feat: add pdf signing feature feat: LF-34 add pdf signing feature Feb 25, 2026
@kumalg kumalg merged commit 4ad8466 into main Feb 26, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants