From 3eec331cfa01e9b3213aa4f48e00d6e498220541 Mon Sep 17 00:00:00 2001 From: ShareVB Date: Sun, 19 Apr 2026 13:42:05 +0200 Subject: [PATCH] feat(new tool): URL/HTML to PDF Using a self hosted Puppeteer webservice Fix #328 --- src/tools/html-to-pdf/html-to-pdf.vue | 388 ++++++++++++++++++++++++++ src/tools/html-to-pdf/index.ts | 14 + 2 files changed, 402 insertions(+) create mode 100644 src/tools/html-to-pdf/html-to-pdf.vue create mode 100644 src/tools/html-to-pdf/index.ts diff --git a/src/tools/html-to-pdf/html-to-pdf.vue b/src/tools/html-to-pdf/html-to-pdf.vue new file mode 100644 index 00000000..b016e1e8 --- /dev/null +++ b/src/tools/html-to-pdf/html-to-pdf.vue @@ -0,0 +1,388 @@ + + + diff --git a/src/tools/html-to-pdf/index.ts b/src/tools/html-to-pdf/index.ts new file mode 100644 index 00000000..77f4b9e1 --- /dev/null +++ b/src/tools/html-to-pdf/index.ts @@ -0,0 +1,14 @@ +import { Printer } from '@vicons/tabler'; +import { defineTool } from '../tool'; + +export const tool = defineTool({ + name: 'HTML to PDF', + path: '/html-to-pdf', + description: 'Generate PDF from HTML content or URL with format selection and auto hide cookie banners', + keywords: ['html', 'url', 'pdf'], + component: () => import('./html-to-pdf.vue'), + icon: Printer, + createdAt: new Date('2026-04-07'), + category: 'PDF', + externAccessDescription: 'This tool sends URLs and HTML content to the *self hosted* Puppeteer webservice configured.', +});