[PR #957] [CLOSED] feat: signature certificate download #1276

Closed
opened 2026-02-26 19:32:35 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/957
Author: @paolo
Created: 2/23/2024
Status: Closed

Base: mainHead: feat/signature-cert-pdf


📝 Commits (10+)

  • 1c12e97 chore: add @react-pdf/renderer dependency
  • 6a39c8c feat: add router to fetch signatures by document id on server
  • f013be5 feat: add appending loging using pdd lib and draw the outline of the certificates
  • 9ea9a54 Merge branch 'main' into feat/signature-cert-pdf
  • 95dfe7a feat: add values to all the fields in the row of signing cert
  • 4ca2c44 feat: clean up the code with multiple pages test
  • 19ad140 feat: refactor the code to diff file as helper method
  • 64b432e feat: add another entry point to download appended certificate
  • 08221b0 Merge branch 'main' into feat/signature-cert-pdf
  • e4161d4 feat: remove extra async

📊 Changes

6 files changed (+263 additions, -12 deletions)

View changed files

📝 apps/web/src/app/(dashboard)/documents/[id]/document-page-view-button.tsx (+8 -2)
📝 apps/web/src/app/(dashboard)/documents/data-table-action-button.tsx (+18 -10)
apps/web/src/helpers/append-certificate.ts (+184 -0)
packages/lib/server-only/document/get-signatures-by-document-id.ts (+27 -0)
📝 packages/trpc/server/document-router/router.ts (+19 -0)
📝 packages/trpc/server/document-router/schema.ts (+7 -0)

📄 Description

This PR adds a new feature that appends a signature certificate to the pdf when user is downloading the pdf.

  1. add new helper method to generate the cerficates(appendCertificates)
  2. connect appendCertificates method with onClickDownload button of two entry points
    Screenshot 2024-03-01 at 12 05 37 PM

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/957 **Author:** [@paolo](https://github.com/paolo) **Created:** 2/23/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/signature-cert-pdf` --- ### 📝 Commits (10+) - [`1c12e97`](https://github.com/documenso/documenso/commit/1c12e9786327a4a6f9c6a97e22412f43292f494a) chore: add @react-pdf/renderer dependency - [`6a39c8c`](https://github.com/documenso/documenso/commit/6a39c8c8c42abf00f89904a726c2425c7390bf16) feat: add router to fetch signatures by document id on server - [`f013be5`](https://github.com/documenso/documenso/commit/f013be5a19ca69533f527db8b4f42829cacb3fdf) feat: add appending loging using pdd lib and draw the outline of the certificates - [`9ea9a54`](https://github.com/documenso/documenso/commit/9ea9a541b05a8a63f97afb6e5d53867446f0f085) Merge branch 'main' into feat/signature-cert-pdf - [`95dfe7a`](https://github.com/documenso/documenso/commit/95dfe7a37bc22999ccbea6308a8ce64725473b53) feat: add values to all the fields in the row of signing cert - [`4ca2c44`](https://github.com/documenso/documenso/commit/4ca2c44ca8a3a49f4b57b89e0f55758b098dcf8f) feat: clean up the code with multiple pages test - [`19ad140`](https://github.com/documenso/documenso/commit/19ad14080565e04708761e277de0c91b97b3e3a8) feat: refactor the code to diff file as helper method - [`64b432e`](https://github.com/documenso/documenso/commit/64b432e90b7399047c5ed9d8a15da4c8a1fad838) feat: add another entry point to download appended certificate - [`08221b0`](https://github.com/documenso/documenso/commit/08221b09e6ad35518ccdf9e65ed72f4b79647196) Merge branch 'main' into feat/signature-cert-pdf - [`e4161d4`](https://github.com/documenso/documenso/commit/e4161d46a09b4177d1abbefa76d51dcca0efd121) feat: remove extra async ### 📊 Changes **6 files changed** (+263 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/src/app/(dashboard)/documents/[id]/document-page-view-button.tsx` (+8 -2) 📝 `apps/web/src/app/(dashboard)/documents/data-table-action-button.tsx` (+18 -10) ➕ `apps/web/src/helpers/append-certificate.ts` (+184 -0) ➕ `packages/lib/server-only/document/get-signatures-by-document-id.ts` (+27 -0) 📝 `packages/trpc/server/document-router/router.ts` (+19 -0) 📝 `packages/trpc/server/document-router/schema.ts` (+7 -0) </details> ### 📄 Description This PR adds a new feature that appends a signature certificate to the pdf when user is downloading the pdf. 1. add new helper method to generate the cerficates(appendCertificates) 2. connect appendCertificates method with onClickDownload button of two entry points ![Screenshot 2024-03-01 at 12 05 37 PM](https://github.com/documenso/documenso/assets/21358/4ab97f8b-fe5c-43fa-9a2c-e8e10b5e4d64) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:32:35 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#1276
No description provided.