pdf-generator
Audited by Runlayer on Feb 23, 2026
Malicious tool definition detected
Tool: SKILL.md [1/2] Description: --- name: pdf-generator description: "Create and manipulate PDF files programmatically.
Tool: SKILL.md [2/2] Description: `Legal` (612 x 1008 points) - Custom: `[width, height]` in points ## Common Issues and Solutions ### Issue: Form fields not found **Symptoms**: Error saying field name doesn't exist.
Malicious tool definition detected
Tool: scripts/analyze-template.ts [1/2] Description: #!/usr/bin/env -S deno run --allow-read /** * analyze-template.ts - Extract content and structure from PDF files * * Extracts text, metadata, form fields, and page information from PDF * documents for template analysis and content planning.
Tool: scripts/analyze-template.ts [2/2] Description: pageFilter) continue; const pdfPage = pdfDoc.getPage(i - 1); const { width, height } = pdfPage.getSize(); const rotation = pdfPage.getRotation().angle; pages.push({ pageNumber: i, width, height, text: "", rotation, }); } } if (verbose) { console.error(`Total placeholders: ${allPlaceholders.length}`); } return { filename, pageCount, title, author, subject, creator, producer, creationDate, modificationDate, pages, formFields, placeholders: allPl
Malicious tool definition detected
Tool: scripts/generate-from-template.ts [1/2] Description: #!/usr/bin/env -S deno run --allow-read --allow-write /** * generate-from-template.ts - Generate PDF from existing templates * * Modifies existing PDF templates by filling form fields, adding content * overlays, and merging documents.
Tool: scripts/generate-from-template.ts [2/2] Description: any).select(fieldSpec.value); filledCount++; } else if (fieldType.includes("Radio")) { // deno-lint-ignore no-explicit-any (field as any).select(fieldSpec.value); filledCount++; } } } catch (error) { if (verbose) { console.error(`Failed to fill field "${fieldSpec.name}": ${error}`); } } } if (verbose) { console.error(`Filled ${filledCount} form fields`); } // Flatten form if requested if (spec.flattenForm) { form.flatten(); if (verbose)
Malicious tool definition detected
Tool: scripts/generate-scratch.ts [1/2] Description: #!/usr/bin/env -S deno run --allow-read --allow-write /** * generate-scratch.ts - Create PDF from scratch using JSON specification * * Creates PDF documents programmatically from a JSON specification * using pdf-lib.
Tool: scripts/generate-scratch.ts [2/2] Description: drawTable(page: any, element: TableElement, fonts: Map<string, any>): Promise<void> { const font = fonts.get("Helvetica"); const fontSize = element.fontSize || 10; const rowHeight = element.rowHeight || 20; const padding = element.padding || 5; const borderColor = getColor(element.borderColor || { r: 0, g: 0, b: 0 }); let currentY = element.y; for (let rowIndex = 0; rowIndex < element.rows.length; rowIndex++) { const row = element.rows[rowInde