1 min read 70 words Updated Sep 24, 2026 Created Sep 24, 2026
#docker#selfhosting#server#tool

Stirling PDF is a self-hostable web app for editing PDFs. It provides an API for sending PDFs along and doing operations on them.

A Python Request to the API:

import request

url = "http://localhost:8080/api/v1/security/get-info-on-pdf" 
pdf_path = "gesamt_original.pdf"
headers = {'X-API-KEY': apikey}

with open(pdf_path, 'rb') as pdf_file:
    files = {'fileInput': pdf_file}
    response = requests.post(url, files=files, headers=headers)

if response.status_code == 200:
    pdf_info = response.json()
    print(pdf_info)
else:
    print(f"Error: {response.status_code} - {response.text}")