Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 21 additions & 18 deletions index.json
Original file line number Diff line number Diff line change
Expand Up @@ -1256,11 +1256,11 @@
},
{
"name": "stirling-pdf",
"description": "Stirling PDF is a hosted web application that allows you to perform various operations on PDF files, such as splitting and adding images.",
"source": "https://github.com/Frooodle/Stirling-PDF",
"icon": "https://cdn.jsdelivr.net/gh/stackblaze/stack-templates@0522dea0f303d9707196108356d351e1ebde3b59/services/stirling-pdf/icon.png",
"website": "https://docs.stirlingpdf.com/",
"installation": "First boot may take several minutes while Java starts and optional assets download.",
"description": "Edit, convert, sign and secure PDFs in your browser. Merge, split, compress, OCR, redact and 50+ more tools, with every file processed on your own server.",
"source": "https://github.com/Stirling-Tools/Stirling-PDF",
"icon": "https://raw.githubusercontent.com/stackblaze/stack-templates/main/services/stirling-pdf/icon.png",
"website": "https://www.stirlingpdf.com",
"installation": "Sign in as admin with the password in SECURITY_INITIALLOGIN_PASSWORD (Variables). Login is on from the first start. The free self-hosted tier allows up to 5 users; more users, SSO and an external database need a Stirling PDF licence.",
"architecture": [
"linux/amd64",
"linux/arm64"
Expand All @@ -1271,21 +1271,24 @@
"work"
],
"screenshots": [
"https://media.stackblaze.cloud/templates/stirling-pdf/demo.mp4",
"https://cdn.jsdelivr.net/gh/stackblaze/stack-templates@0522dea0f303d9707196108356d351e1ebde3b59/services/stirling-pdf/dashboard.png",
"https://cdn.jsdelivr.net/gh/stackblaze/stack-templates@0522dea0f303d9707196108356d351e1ebde3b59/services/stirling-pdf/screenshot-login.png",
"https://cdn.jsdelivr.net/gh/stackblaze/stack-templates@0522dea0f303d9707196108356d351e1ebde3b59/services/stirling-pdf/screenshot-watermark.png"
"https://raw.githubusercontent.com/stackblaze/stack-templates/main/services/stirling-pdf/screenshot-files.png",
"https://raw.githubusercontent.com/stackblaze/stack-templates/main/services/stirling-pdf/screenshot-merge.png",
"https://raw.githubusercontent.com/stackblaze/stack-templates/main/services/stirling-pdf/screenshot-watermark.png"
],
"links": [],
"addons": [],
"stars": 78556,
"forks": 6876,
"watchers": 78556,
"issues": 394,
"last_updated": "2026-05-11T12:36:12Z",
"last_pushed": "2026-05-11T11:10:23Z",
"links": [
"https://docs.stirlingpdf.com/"
],
"addons": [
"Smtp"
],
"stars": 96533,
"forks": 9347,
"watchers": 96533,
"issues": 538,
"last_updated": "2026-11-14T04:14:12Z",
"last_pushed": "2026-11-13T17:06:02Z",
"created_at": "2023-01-27T18:22:42Z",
"size": 276295,
"size": 695361,
"language": "TypeScript",
"gitops": false,
"template": "https://raw.githubusercontent.com/stackblaze/stack-templates/main/services/stirling-pdf/app.yaml",
Expand Down
17 changes: 9 additions & 8 deletions scripts/capture-specs/stirling-pdf.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
"login": {
"path": "/login",
"steps": [
{ "fill": { "#email, input[name='username']": "${STIRLING_PDF_USER}" } },
{ "fill": { "#password, input[type='password']": "${STIRLING_PDF_PASSWORD}" } },
{ "click": "button[type='submit'], button:has-text('Login')" },
{ "waitForNavigation": true }
{ "waitForSelector": "#email", "timeout": 60000 },
{ "fill": { "#email": "admin" } },
{ "fill": { "#password": "${STIRLING_PDF_PASSWORD}" } },
{ "click": "button:has-text('Login')" },
{ "waitForSelector": "text=PDF Tools", "timeout": 30000 }
],
"waitAfterMs": 2500
"waitAfterMs": 2000
},
"pages": [
{ "name": "home", "path": "/", "waitMs": 4000 },
{ "name": "login", "path": "/login", "waitMs": 2000 }
]
{ "name": "editor", "path": "/editor", "waitFor": "text=PDF Tools", "waitMs": 2500 }
],
"note": "The catalog stills need files in the workbench: use scripts/seed-stirling-pdf-and-capture.mjs (capture-lib has no upload step)."
}
64 changes: 64 additions & 0 deletions scripts/seed-stirling-pdf-and-capture.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
// Seed a Stirling PDF deploy with three demo documents and capture the catalog stills (light and dark).
// STIRLING_PDF_URL=https://<app> STIRLING_PDF_PASSWORD=<SECURITY_INITIALLOGIN_PASSWORD> \
// node seed-stirling-pdf-and-capture.mjs <outdir>
// The documents (a fictional design studio's report, invoice and agreement) are rendered to PDF by the
// app's own HTML to PDF tool (seed-stirling-pdf/*.html, inline styles: the app's HTML sanitizer drops
// <style>). Stills: the three files in the workbench, Merge result in the viewer, the merged PDF with a
// CONFIDENTIAL text watermark (zoomed in). Dark comes from the app's own preference (stirlingpdf_preferences.theme).
// capture-lib has no file-upload step, hence this script (like seed-excalidraw-and-capture.mjs).
import fs from 'node:fs'
import os from 'node:os'
import path from 'node:path'
import { chromium } from 'playwright'

const URL_ = (process.env.STIRLING_PDF_URL || '').replace(/\/$/, '')
const PW = process.env.STIRLING_PDF_PASSWORD
const out = process.argv[2] || '.'
if (!URL_ || !PW) throw new Error('set STIRLING_PDF_URL and STIRLING_PDF_PASSWORD')
const SRC = new URL('./seed-stirling-pdf/', import.meta.url).pathname
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'stirling-seed-'))

const login = await (await fetch(URL_ + '/api/v1/auth/login', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ username: 'admin', password: PW }) })).json()
const H = { authorization: 'Bearer ' + (login?.session?.access_token || login.access_token) }
const DOCS = { 'q3-report': 'Q3 Report 2026', invoice: 'Invoice INV-2041', agreement: 'Design Services Agreement' }
for (const [f, n] of Object.entries(DOCS)) {
const fd = new FormData()
fd.append('fileInput', new Blob([fs.readFileSync(SRC + f + '.html')], { type: 'text/html' }), f + '.html')
const r = await fetch(URL_ + '/api/v1/convert/html/pdf', { method: 'POST', headers: H, body: fd })
if (r.status !== 200) throw new Error(`html->pdf ${f}: ${r.status}`)
fs.writeFileSync(`${tmp}/${n}.pdf`, Buffer.from(await r.arrayBuffer()))
}

const b = await chromium.launch()
for (const theme of ['light', 'dark']) {
const sfx = theme === 'dark' ? '-dark' : ''
const ctx = await b.newContext({ viewport: { width: 1920, height: 1080 }, deviceScaleFactor: 2, colorScheme: theme })
await ctx.addInitScript((t) => { try { localStorage.setItem('stirlingpdf_preferences', JSON.stringify({ ...JSON.parse(localStorage.getItem('stirlingpdf_preferences') || '{}'), theme: t })) } catch {} }, theme)
const p = await ctx.newPage()
await p.goto(URL_ + '/login', { waitUntil: 'networkidle' })
await p.fill('#email', 'admin'); await p.fill('#password', PW)
await p.click('button:has-text("Login")'); await p.waitForURL(/editor/); await p.waitForTimeout(1500)
await p.locator('input[type=file]').first().setInputFiles(Object.values(DOCS).map((n) => `${tmp}/${n}.pdf`))
await p.getByText('Design Services Agreement.pdf').last().waitFor({ timeout: 30000 }); await p.waitForTimeout(4000)
await p.mouse.move(1000, 900)
await p.screenshot({ path: `${out}/files${sfx}.png` })
await p.getByText('Merge', { exact: true }).first().click(); await p.waitForTimeout(1200)
await p.getByRole('button', { name: /Merge \(3 files\)/ }).click()
await p.getByRole('button', { name: 'Undo' }).waitFor({ timeout: 60000 }); await p.waitForTimeout(2500)
await p.mouse.move(1000, 1000)
await p.screenshot({ path: `${out}/merge${sfx}.png` })
await p.getByRole('button', { name: 'Back to all tools' }).click(); await p.waitForTimeout(1000)
await p.getByText('Add Watermark', { exact: true }).first().click(); await p.mouse.move(1000, 600); await p.waitForTimeout(1200)
await p.locator('label').filter({ hasText: /^Text$/ }).first().click(); await p.waitForTimeout(600)
await p.getByPlaceholder('Enter watermark text').fill('CONFIDENTIAL')
await p.getByRole('button', { name: /^Add Watermark/ }).click()
await p.getByText('Review', { exact: true }).waitFor({ timeout: 60000 }); await p.waitForTimeout(2000)
for (let i = 0; i < 3; i++) { await p.getByRole('button', { name: 'Zoom In' }).click(); await p.waitForTimeout(400) }
await p.waitForTimeout(2000)
await p.mouse.move(1000, 1000)
await p.screenshot({ path: `${out}/watermark${sfx}.png` })
await ctx.close()
}
await b.close()
fs.rmSync(tmp, { recursive: true, force: true })
console.log('stills in', out)
6 changes: 6 additions & 0 deletions scripts/seed-stirling-pdf/agreement.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<html><head><meta charset="utf-8"></head><body style="font-family:DejaVu Sans,Liberation Sans,Arial,sans-serif;color:#1f2430;font-size:11pt;line-height:1.5"><table style="width:100%;border-bottom:3px solid #1d3b5c;margin-bottom:8mm"><tr><td style="font-weight:bold;font-size:15pt;color:#1d3b5c;padding:0 0 3mm 0;font-family:DejaVu Sans,Arial,sans-serif">Harbor &amp; Pine Studio</td><td style="text-align:right;color:#6b7380;padding:0 0 3mm 0;font-family:DejaVu Sans,Arial,sans-serif">harborpine.example</td></tr></table><h1 style="font-size:24pt;margin:0 0 4mm 0;color:#1d3b5c;font-family:DejaVu Sans,Arial,sans-serif">Design Services Agreement</h1><p style="color:#6b7380;font-family:DejaVu Sans,Arial,sans-serif">Between Harbor &amp; Pine Studio and Bluefin Outdoor Co.</p>
<h2 style="font-size:13pt;color:#1d3b5c;border-bottom:1px solid #d6dce5;padding-bottom:2mm;margin-top:9mm;font-family:DejaVu Sans,Arial,sans-serif">1. Scope</h2><p style="font-family:DejaVu Sans,Arial,sans-serif">The Studio will deliver the Spring 2027 catalogue: art direction, layout of up to 64 pages, retouching and print management, as described in the attached brief.</p>
<h2 style="font-size:13pt;color:#1d3b5c;border-bottom:1px solid #d6dce5;padding-bottom:2mm;margin-top:9mm;font-family:DejaVu Sans,Arial,sans-serif">2. Timeline</h2><p style="font-family:DejaVu Sans,Arial,sans-serif">Work starts on 10 November 2026. Final files are delivered by 15 January 2027, with two rounds of review on each milestone.</p>
<h2 style="font-size:13pt;color:#1d3b5c;border-bottom:1px solid #d6dce5;padding-bottom:2mm;margin-top:9mm;font-family:DejaVu Sans,Arial,sans-serif">3. Fees and payment</h2><p style="font-family:DejaVu Sans,Arial,sans-serif">Fees follow the agreed estimate. Invoices are payable within 30 days. Extra rounds of changes are billed at the day rate.</p>
<h2 style="font-size:13pt;color:#1d3b5c;border-bottom:1px solid #d6dce5;padding-bottom:2mm;margin-top:9mm;font-family:DejaVu Sans,Arial,sans-serif">4. Ownership</h2><p style="font-family:DejaVu Sans,Arial,sans-serif">On full payment, the Client owns the final artwork. The Studio may show the work in its portfolio after publication.</p>
<h2 style="font-size:13pt;color:#1d3b5c;border-bottom:1px solid #d6dce5;padding-bottom:2mm;margin-top:9mm;font-family:DejaVu Sans,Arial,sans-serif">5. Signatures</h2><table style="width:100%;border-collapse:collapse;margin-top:4mm;font-family:DejaVu Sans,Arial,sans-serif;font-size:10.5pt"><tr><td style="height:24mm;vertical-align:bottom">For the Studio<br><span style="color:#6b7380;font-family:DejaVu Sans,Arial,sans-serif">Name, date</span></td><td style="vertical-align:bottom">For the Client<br><span style="color:#6b7380;font-family:DejaVu Sans,Arial,sans-serif">Name, date</span></td></tr></table></body></html>
9 changes: 9 additions & 0 deletions scripts/seed-stirling-pdf/invoice.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<html><head><meta charset="utf-8"></head><body style="font-family:DejaVu Sans,Liberation Sans,Arial,sans-serif;color:#1f2430;font-size:11pt;line-height:1.5"><table style="width:100%;border-bottom:3px solid #1d3b5c;margin-bottom:8mm"><tr><td style="font-weight:bold;font-size:15pt;color:#1d3b5c;padding:0 0 3mm 0;font-family:DejaVu Sans,Arial,sans-serif">Harbor &amp; Pine Studio</td><td style="text-align:right;color:#6b7380;padding:0 0 3mm 0;font-family:DejaVu Sans,Arial,sans-serif">harborpine.example</td></tr></table><h1 style="font-size:24pt;margin:0 0 4mm 0;color:#1d3b5c;font-family:DejaVu Sans,Arial,sans-serif">Invoice INV-2041</h1><p style="color:#6b7380;font-family:DejaVu Sans,Arial,sans-serif">Issued 3 November 2026 · Due 3 December 2026</p>
<table style="width:100%;border-collapse:collapse;margin-top:4mm;font-family:DejaVu Sans,Arial,sans-serif;font-size:10.5pt"><tr><td style="text-align:left;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee"><b>Bill to</b><br>Bluefin Outdoor Co.<br>48 Quay Street<br>Portsmouth</td><td style="text-align:left;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee"><b>Project</b><br>Spring catalogue 2027<br>PO 77-310</td></tr></table>
<h2 style="font-size:13pt;color:#1d3b5c;border-bottom:1px solid #d6dce5;padding-bottom:2mm;margin-top:9mm;font-family:DejaVu Sans,Arial,sans-serif">Items</h2><table style="width:100%;border-collapse:collapse;margin-top:4mm;font-family:DejaVu Sans,Arial,sans-serif;font-size:10.5pt"><tr><th style="text-align:left;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee;background:#f2f5f9;font-size:10pt">Description</th><th style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">Qty</th><th style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">Rate</th><th style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">Amount</th></tr>
<tr><td style="text-align:left;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">Art direction, catalogue shoot</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">3 days</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">$1,400</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">$4,200</td></tr>
<tr><td style="text-align:left;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">Layout, 64 pages</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">64</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">$95</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">$6,080</td></tr>
<tr><td style="text-align:left;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">Retouching</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">120</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">$18</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">$2,160</td></tr>
<tr><td style="text-align:left;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">Print management</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">1</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">$850</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">$850</td></tr>
<tr><th colspan="3" style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">Total due</th><th style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">$13,290</th></tr></table>
<p style="color:#6b7380;font-family:DejaVu Sans,Arial,sans-serif" style="margin-top:10mm">Payment by bank transfer within 30 days. Thank you for your business.</p></body></html>
12 changes: 12 additions & 0 deletions scripts/seed-stirling-pdf/q3-report.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<html><head><meta charset="utf-8"></head><body style="font-family:DejaVu Sans,Liberation Sans,Arial,sans-serif;color:#1f2430;font-size:11pt;line-height:1.5"><table style="width:100%;border-bottom:3px solid #1d3b5c;margin-bottom:8mm"><tr><td style="font-weight:bold;font-size:15pt;color:#1d3b5c;padding:0 0 3mm 0;font-family:DejaVu Sans,Arial,sans-serif">Harbor &amp; Pine Studio</td><td style="text-align:right;color:#6b7380;padding:0 0 3mm 0;font-family:DejaVu Sans,Arial,sans-serif">harborpine.example</td></tr></table><h1 style="font-size:24pt;margin:0 0 4mm 0;color:#1d3b5c;font-family:DejaVu Sans,Arial,sans-serif">Quarterly Report, Q3 2026</h1><p style="color:#6b7380;font-family:DejaVu Sans,Arial,sans-serif">Prepared for the board, October 2026</p>
<table style="width:100%;margin:6mm 0"><tr>
<td style="background:#f2f5f9;padding:4mm;border:4px solid #fff;font-family:DejaVu Sans,Arial,sans-serif;color:#6b7380">Revenue<br><b style="font-size:18pt;color:#1d3b5c">$1.84M</b><br>+12% on Q2</td>
<td style="background:#f2f5f9;padding:4mm;border:4px solid #fff;font-family:DejaVu Sans,Arial,sans-serif;color:#6b7380">Active clients<br><b style="font-size:18pt;color:#1d3b5c">214</b><br>18 new</td>
<td style="background:#f2f5f9;padding:4mm;border:4px solid #fff;font-family:DejaVu Sans,Arial,sans-serif;color:#6b7380">Gross margin<br><b style="font-size:18pt;color:#1d3b5c">61%</b><br>up 3 points</td></tr></table>
<h2 style="font-size:13pt;color:#1d3b5c;border-bottom:1px solid #d6dce5;padding-bottom:2mm;margin-top:9mm;font-family:DejaVu Sans,Arial,sans-serif">Highlights</h2><p style="font-family:DejaVu Sans,Arial,sans-serif">Q3 was our strongest quarter to date. Two retainers renewed for three years, the Lisbon office opened in August, and average project delivery time fell from 41 to 34 days after we moved design reviews to a weekly cadence.</p>
<h2 style="font-size:13pt;color:#1d3b5c;border-bottom:1px solid #d6dce5;padding-bottom:2mm;margin-top:9mm;font-family:DejaVu Sans,Arial,sans-serif">Revenue by service line</h2><table style="width:100%;border-collapse:collapse;margin-top:4mm;font-family:DejaVu Sans,Arial,sans-serif;font-size:10.5pt"><tr><th style="text-align:left;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee;background:#f2f5f9;font-size:10pt">Service</th><th style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">Q2</th><th style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">Q3</th><th style="text-align:left;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee;background:#f2f5f9;font-size:10pt">Share</th></tr>
<tr><td style="text-align:left;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">Brand identity</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">$612k</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">$688k</td><td style="text-align:left;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee"><div class="bar" style="width:74%"></td></tr>
<tr><td style="text-align:left;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">Web and product design</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">$544k</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">$631k</td><td style="text-align:left;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee"><div class="bar" style="width:68%"></td></tr>
<tr><td style="text-align:left;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">Print and packaging</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">$298k</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">$322k</td><td style="text-align:left;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee"><div class="bar" style="width:35%"></td></tr>
<tr><td style="text-align:left;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">Workshops</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">$187k</td><td style="text-align:right;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee">$199k</td><td style="text-align:left;padding:2.5mm 3mm;border-bottom:1px solid #e3e7ee"><div class="bar" style="width:21%"></td></tr></table>
<h2 style="font-size:13pt;color:#1d3b5c;border-bottom:1px solid #d6dce5;padding-bottom:2mm;margin-top:9mm;font-family:DejaVu Sans,Arial,sans-serif">Outlook</h2><p style="font-family:DejaVu Sans,Arial,sans-serif">We expect Q4 revenue between $1.9M and $2.0M. Hiring continues for two senior designers and one producer. Capital spend stays below $60k for the quarter.</p></body></html>
Loading