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.

Delete Pages Node.js

Automatically Deleting Sensitive Pages from PDFs

Learn how to automatically remove Terms & Conditions, internal notes, or other sensitive pages from PDFs before sharing with third parties. Using Node.js and the Apdf Delete Pages API, you can batch-process documents and strip confidential information in seconds.

5 min read

Create PDF PHP HTML

Dynamic Certificate Generation for Online Courses (LMS)

Learn how to dynamically generate professional PDF certificates for online course platforms using PHP. Design certificates with HTML/CSS, use landscape orientation, and automatically generate them when students complete courses.

5 min read

PDF Password JavaScript

Batch Password Protect PDFs for GDPR Compliance

This tutorial shows how to automatically password-protect sensitive documents like payslips and medical records before emailing. Using JavaScript and the Apdf Security API, you can batch-process documents with user-specific passwords for GDPR compliance.

5 min read

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