Tagged articles
PyPDF2
11 articles · Page 1 of 1
This article introduces the PDF format, surveys popular Python PDF libraries, and provides a step‑by‑step guide to installing PyPDF2, extracting metadata and text, rotating, merging, splitting, encrypting, and watermarking PDF files using concrete code examples and explanations.
PDF encryptionPDF extractionPDF manipulation
0 likes · 13 min read

This tutorial walks you through using Python libraries such as PyPDF2, Tabula, PyMuPDF, Pillow, and fpdf2 to extract text, tables, and images from PDF files and to write new PDFs, complete with code examples, step‑by‑step explanations, and sample outputs.
PDFPyPDF2Python
0 likes · 9 min read

This article introduces a Python utility built with PyPDF2 that extracts text from PDF files, saves it as a TXT file, and provides an interactive command‑line interface with error handling, usage instructions, and code examples for easy document processing.
PDFPyPDF2Script
0 likes · 9 min read

This tutorial demonstrates how to use Python libraries such as PyPDF2, ReportLab, and WeasyPrint to merge, split, encrypt, decrypt, extract text from, add text to, watermark, delete, rotate PDF pages, and convert HTML files into PDFs, providing complete code examples for each operation.
PDF manipulationPyPDF2Python
0 likes · 8 min read

This article walks through a practical Python solution for inserting pages from one PDF into another using the PyPDF2 library, covering installation, three possible approaches, the chosen method with code examples, and tips for handling multiple pages efficiently.
PDFPDF manipulationPyPDF2
0 likes · 4 min read

This guide demonstrates how to use Python libraries such as PyPDF2, ReportLab, and WeasyPrint to merge, split, encrypt, decrypt, extract text, add watermarks, remove or rotate pages, and convert HTML files into PDFs, providing complete code examples for each operation.
PDFPDF manipulationPyPDF2
0 likes · 7 min read

This article presents ten useful Python scripts that demonstrate how to create, merge, split, extract text, add watermarks, convert, rotate, edit metadata, and encrypt PDF files using libraries such as PyPDF2, fpdf, pdf2image, and Pillow.
PDFPyPDF2fpdf
0 likes · 7 min read

This guide shows how to enable automatic numbering of PDF table‑of‑contents entries exported from Typora by adding a custom CSS file and using a Python script with PyPDF2 to read, modify, and rewrite the PDF bookmarks, producing a numbered outline.
PDFPyPDF2Typora
0 likes · 5 min read

This guide explains how to split a PDF into separate files using PyPDF2 and provides two Python approaches for converting MP3 audio to text—one leveraging Google Speech‑Recognition for higher accuracy and another using PocketSphinx for complete transcription—complete with ready‑to‑run code examples.
PDFPyPDF2Python
0 likes · 5 min read

This article walks through a practical Python solution for inserting one PDF into another using the PyPDF2 library, covering three possible strategies, selecting the simplest page‑by‑page method, providing installation instructions, and presenting complete example code with explanations.
File ProcessingPDF manipulationPyPDF2
0 likes · 4 min read

The article describes a Python requests pitfall where a JSON‑encoded parameter triggers automatic URL encoding causing request failures, explains how to work around it, and then shares a small PyPDF2 script used to split a large PDF into separate pages.
PDFPyPDF2URL encoding
0 likes · 3 min read
