Logo

Tutorials

Practical, real-world guides for developers — essential workflows broken down into clear steps, with ready-to-use code you can drop into your project.

Extract Text LLM Python

Extract PDF Text for RAG Pipelines & LLMs with Python

This tutorial explains how to extract clean text from PDFs for RAG pipelines using the Apdf API in Python. It demonstrates replacing messy local libraries with an API that returns structured JSON, allowing developers to easily feed high-quality document data into OpenAI or vector databases.

6 min read

Split PDF Node.js Go

Splitting Bulk PDF Files: How to Separate Invoices & Payslips

The tutorial explains how to separate bulk PDF files into individual documents using the Apdf Split API with JavaScript or Go. By utilizing the pages parameter (e.g., n1 for single pages), developers can automatically "burst" large batches, such as invoices or payslips, into separate, downloadable files.

5 min read

Extract Pages PHP

Building a Document Previewer: Extract PDF First Page as a Thumbnail

Learn how to build a fast PDF previewer for Document Management Systems using PHP. Extract only the first page as a lightweight thumbnail preview without forcing users to download the entire 50MB file. Perfect for improving DMS user experience and reducing bandwidth.

6 min read

Merge PDF PHP Node.js

How to Merge Multiple PDF Reports into a Single File (Node.js & PHP)

This tutorial explains how to combine multiple PDF files into a single document using the Apdf Merge API with Node.js or PHP. By sending file URLs to the API, developers can avoid server memory issues and easily handle advanced tasks, such as excluding cover pages by specifying page ranges.

4 min read

Create PDF Invoice Python

Build an Automated Invoice Generator using HTML & Python

The tutorial explains how to build a Python invoice generator by using Jinja2 to merge data into standard HTML/CSS templates. Instead of manually coding complex PDF layouts, the script sends the rendered HTML to the Apdf API, which instantly converts it into a professional, downloadable PDF.

5 min read

Page 4 of 4