Licensing & Attribution
Sarhan PDF is an internal tool by Sarhan Data Law. It is a fork of BentoPDF, a privacy-first browser-based PDF toolkit, and is distributed under the same license. This page summarizes the licenses of the upstream project and the open-source libraries used.
Sarhan PDF
Sarhan PDF is licensed under the
GNU Affero General Public License v3.0 (AGPL-3.0), the
same license used by upstream BentoPDF. The full license text is
included in the LICENSE file at the root of the source
repository.
Upstream: BentoPDF
Copyright © the BentoPDF contributors. Source:
github.com/alam00000/bentopdf. Sarhan PDF preserves the AGPL-3.0 license, the original
LICENSE, contributor agreement files (ICLA.md,
CCLA.md) and the CHANGELOG in the source tree
for attribution and traceability.
Bundled libraries
Sarhan PDF processes files entirely in the browser using a number of
excellent open-source libraries. The list below summarizes the major
ones; see package.json for the full dependency tree.
- pdf-lib — MIT — PDF creation and modification
- pdfjs-dist (Mozilla PDF.js) — Apache-2.0
- qpdf-wasm (qpdf compiled to WebAssembly) — Apache-2.0
- coherentpdf — AGPL-3.0 (used under matching license terms)
- tesseract.js — Apache-2.0 — OCR
- libreoffice-converter / libreoffice-wasm — MPL-2.0 / LGPL-3.0
- jsPDF — MIT — PDF generation
- pdfkit — MIT
- html2canvas — MIT — HTML to canvas rasterization
- cropperjs — MIT — image cropping UI
- sortablejs — MIT — drag-and-drop ordering
- jszip — MIT/GPL-3.0 dual
- papaparse, xlsx (SheetJS CE), fast-xml-parser — Apache-2.0 / MIT
- markdown-it and ecosystem — MIT
- i18next, lit, mermaid, highlight.js, dompurify — MIT / BSD
- node-forge, zgapdfsigner, bwip-js — BSD / MIT
- lucide and @phosphor-icons/web — ISC / MIT — iconography
- Tailwind CSS — MIT — styling framework
- @fontsource font packages (DM Sans, Lato, Merriweather, etc.) — per individual font license (typically OFL-1.1)
Each library retains its own license, attribution and copyright. Source
code and license text for every dependency are available in the
node_modules/ directory of a built copy and via the
upstream package registries.
Brand assets
The Sarhan Data Law name, logo and brand palette are property of Sarhan Data Law and are not covered by the AGPL-3.0 license applied to the source code. They may not be used to imply endorsement or affiliation without permission.
Source code
In accordance with AGPL-3.0, the corresponding source code for any deployed instance of Sarhan PDF is available on request to [email protected].
This page is provided for transparency and AGPL-3.0 compliance and is not legal advice.