Pdf Reporting Patterns

by kjibba

document

Technical patterns for generating professional PDF reports and documentation for heat pump surveys.

Skill Details

Repository Files

1 file in this skill directory


name: pdf-reporting-patterns description: Technical patterns for generating professional PDF reports and documentation for heat pump surveys.

PDF Reporting Patterns

Professional documentation is the final "product" for the customer and the office. This skill covers how to generate these PDFs within Digital Befaring.

Recommended Tooling

  • react-pdf/renderer: Best for shared components between web and PDF. Supports styling and easy layout.
  • jsPDF / html2canvas: For quick "export what I see" functionality, though less professional for high-quality reports.
  • Pupeteer/Playwright (Server-side): Most robust for complex layouts, but requires more infrastructure.

Report Structure (Digital Befaring)

A standard "Befaringsrapport" should include:

1. Header & Branding

  • Company Logo (Bergen Inneklima).
  • Report Date & ID.
  • Customer Name & Address.

2. Survey Summary

  • Technician Name.
  • Planned Installation Date.
  • Recommended Model (e.g., Mitsubishi Kaiteki 6600).

3. Technical Specs

  • Wall type, pipe length, electrical requirements.
  • Visual floor plan or placement diagrams.

4. Photos & Annotations

  • Before/After visualization (if applicable).
  • Critical spots for outdoor/indoor unit placement.

Design Best Practices

  • Typography: Use the same fonts as the web app (Outfit/Inter) for brand consistency.
  • Page Breaks: Ensure technical specs and photos don't get split across pages awkwardly.
  • File Size: Balance high-resolution photos with manageable file sizes (optimize images before embedding).

Implementation Flow

  1. Server Action: Fetch all survey data from Prisma.
  2. Template: Render the data using a react-pdf template.
  3. Stream: Send the PDF stream back to the client or save to S3/Storage.
  4. Email: Trigger automatic email dispatch to the customer with the PDF attached.

Related Skills

Dbt Transformation Patterns

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

testingdocumenttool

Clinical Decision Support

Generate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug develo

developmentdocumentcli

Scientific Schematics

Create publication-quality scientific diagrams using Nano Banana Pro AI with smart iterative refinement. Uses Gemini 3 Pro for quality review. Only regenerates if quality is below threshold for your document type. Specialized in neural network architectures, system diagrams, flowcharts, biological pathways, and complex scientific visualizations.

artdocument

Mermaid Diagrams

Comprehensive guide for creating software diagrams using Mermaid syntax. Use when users need to create, visualize, or document software through diagrams including class diagrams (domain modeling, object-oriented design), sequence diagrams (application flows, API interactions, code execution), flowcharts (processes, algorithms, user journeys), entity relationship diagrams (database schemas), C4 architecture diagrams (system context, containers, components), state diagrams, git graphs, pie charts,

artdesigncode

Diagram Generation

Mermaid diagram generation for architecture visualization, data flow diagrams, and component relationships. Use for documentation, PR descriptions, and architectural analysis.

documentdata

Scientific Schematics

Create publication-quality scientific diagrams using Nano Banana Pro AI with smart iterative refinement. Uses Gemini 3 Pro for quality review. Only regenerates if quality is below threshold for your document type. Specialized in neural network architectures, system diagrams, flowcharts, biological pathways, and complex scientific visualizations.

artdocument

Clinical Decision Support

Generate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug develo

developmentdocumentcli

Materialize Docs

Materialize documentation for SQL syntax, data ingestion, concepts, and best practices. Use when users ask about Materialize queries, sources, sinks, views, or clusters.

documentdata

Dbt Transformation Patterns

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

testingdocumenttool

Mermaidjs V11

Create diagrams and visualizations using Mermaid.js v11 syntax. Use when generating flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, Gantt charts, user journeys, timelines, architecture diagrams, or any of 24+ diagram types. Supports JavaScript API integration, CLI rendering to SVG/PNG/PDF, theming, configuration, and accessibility features. Essential for documentation, technical diagrams, project planning, system architecture, and visual communication.

artdocumentapi

Skill Information

Category:Document
Last Updated:1/20/2026