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.

Search PDF Python

Building a "Search Inside PDF" Feature for Your Web App

This tutorial shows how to build a PDF search feature using Python and the Apdf Search API. Find specific terms, get page numbers and context lines, and optionally use regex patterns for advanced matching. Includes a Flask web interface example.

5 min read

Compress PDF AWS S3 Java

Reduce AWS S3 Costs by Automating PDF Compression

This tutorial shows how to cut AWS S3 storage costs by compressing PDFs before storing them. Using Java and the Apdf Compress API, developers can achieve up to 90% file size reduction on image-heavy PDFs, directly translating into lower storage bills.

7 min read

PDF Watermark Ruby

Automate PDF Watermarking: Add Logos to Documents in Bulk

This tutorial explains how to automate PDF watermarking using Ruby and the Apdf Overlay API. By layering a transparent PDF onto original documents, developers can bulk-process files and use parameters to target specific page ranges (e.g., skipping cover pages).

5 min read

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