Python guides
Every published Python guide, newest first, with practical examples you can copy into your own project.
3,965 guides across 14 topics
Topics
Popular Python guides
Most readLatest Python guides
Page 6 of 179Python ReportLab Canvas vs Platypus
Compare ReportLab's Canvas and Platypus APIs for Python PDF generation: imperative drawing vs. automatic document flow, and how to choose the right approach for your project.
Python ReportLab: Create PDFs with Text, Tables, and Images
Learn how to generate PDFs with Python ReportLab: add text with Paragraph, build tables with Table and TableStyle, insert images, and control layout with flowables.
python pymupdf vs pypdf: Choosing the Right PDF Library
python pymupdf vs pypdf: A practical comparison of pymupdf and pypdf for Python developers, covering text extraction, page manipulation, rendering, and performance tra...
Merge, Split, Edit, and Redact PDFs with Python PyMuPDF
Learn to merge, split, edit, and redact PDFs with Python PyMuPDF. Practical code examples cover inserting pages, splitting ranges, adding text, and applying permanent redactions.
Convert PDF Pages to Images with PyMuPDF
Use PyMuPDF to render PDF pages as PNG or JPEG images in Python. Set DPI and zoom, choose formats, and manage memory during batch conversion.
Extract Text and Images from PDF with PyMuPDF
Learn how to extract text and images from PDF files using PyMuPDF in Python. Includes code examples for text blocks, embedded images, and common edge cases.
Python pypdf Metadata and Watermarks
Read and write PDF metadata and add watermarks with Python pypdf. Includes code for page positioning, rotated pages, and error handling.
Encrypt and Decrypt PDFs with Python pypdf
Learn how to add user and owner passwords, set PDF permissions, decrypt protected files, and remove encryption using the Python pypdf library.
Python pypdf: Extract Text, Merge, Split, and Rotate PDFs
Learn how to use the Python pypdf library to extract text, merge PDFs, split pages, and rotate pages. Includes practical examples and memory considerations.
Python Markdown Tables and Code Highlighting Extensions
Enable tables, fenced code blocks, and Pygments-based syntax highlighting in Python-Markdown, with configuration examples and common pitfalls.