Back to Tools

PDF Branding Injector

Use cases

Branding supplier product datasheets Adding contact info to manufacturer PDFs Creating consistent downloadable documentation

Uses PyPDF2 for PDF reading and ReportLab canvas for header creation.

Dynamically scales font size (10-14pt bounds) based on page width relative to 612pt base.

Merges header at offset position, preserving original content.

Processes directory trees recursively with progress tracking via tqdm.

Streamlit App

Platform

Browser-based (no installation required)

Input

PDF files

Branding info (phone, website)

Output

Branded PDFs with custom headers

Launch App View Source

Features

  • PyPDF2 + ReportLab header merging
  • Responsive text scaling by page width
  • Recursive directory processing
  • Custom TTF font support
  • Hex colour configuration for text and background
  • Optional filename suffix and date appending

How to use

  1. 1 Place PDFs in INPUT_DIR
  2. 2 Configure FONT_PATH, PHONE_NUMBER, WEBSITE
  3. 3 Set TEXT_COLOR and BACKGROUND_COLOR (hex)
  4. 4 Run script with progress tracking
  5. 5 Collect branded PDFs from OUTPUT_DIR

Let's work together

Monthly retainers or one-off projects. No lengthy reports that sit in a drawer.

Let's Talk