Welcome to the public PaperAPI SDK playground. This repository contains language-specific SDKs, framework-agnostic examples, and CI/CD automation that help you start building with PaperAPI immediately.
PaperAPI is a hosted wkhtmltopdf platform that converts HTML into pixel-perfect PDFs without servers, fonts, or binary installs. It is built and hosted in the EU for GDPR-compliant workloads, and exposes both synchronous and asynchronous generation flows so you can either stream documents immediately or queue large jobs in the background.
- Simple HTTP API: Send HTML + options to
/v1/generateor/v1/generate-asyncand receive bytes or a job envelope. - Operational safety: Usage counters, audit logs, request IDs, retries, and structured errors make production monitoring straightforward.
- EU residency: All rendering happens on EU infrastructure with DPA, privacy, and security docs ready for procurement teams.
- Batteries included: Dashboards for API keys, usage, billing, logs, and download history, plus SDKs and examples so you can integrate in minutes.
- Create a free PaperAPI account at paperapi.de.
- Head to your dashboard and copy the generated API key.
- Paste the key into the provided
.envfile alongside the default API base URLhttps://api.paperapi.de.
PAPERAPI_BASE_URL=https://api.paperapi.de
PAPERAPI_API_KEY=REPLACE_WITH_YOUR_API_KEY
Never commit production credentials. The placeholder .env file exists so the examples can be run without extra setup.
Pubic_repo_sdk_example/
├── README.md
├── LICENSE
├── .env
├── sdk/
│ ├── dotnet/ # First-class SDK, NuGet-ready
│ ├── js/ # TypeScript SDK bundled for npm
│ └── python/ # Placeholder for the upcoming PyPI package
├── examples/
│ ├── dotnet-generate-pdf/
│ ├── js-generate-pdf/
│ └── python-generate-pdf/
├── docs/
└── .github/workflows/
Each language folder is self-contained with its own README and publishing strategy. .NET and JavaScript ship production-ready SDKs, while Python remains a roadmap item for now.
Every example has its own README with prerequisites and end-to-end instructions. Start with the implementation that matches your stack:
- .NET – Generate a PDF: console app that hits every PaperAPI endpoint (health, account metadata, sync generation, async jobs) and saves PDFs to disk.
- JavaScript – Generate a PDF: TypeScript script that consumes the npm SDK, hits every endpoint, and downloads PDFs.
- Python – Generate a PDF: placeholder until the PyPI SDK ships.
Deep-dive docs live under docs/. They describe authentication, request/response formats, and release guidelines, keeping the root README intentionally concise.
- Fork the repository and create a feature branch.
- Make your changes (linting/formatting enforced by CI).
- Submit a pull request against
main.
CI pipelines automatically build, test, and pack SDKs. Publishing to NuGet/npm/PyPI happens only from trusted release workflows.
