All syntax guides
Short, practical guides on programming syntax, language fundamentals, and the tools developers reach for every day.
3,965 guides across 14 topics
Topics
Popular guides
Most readLatest guides
Page 41 of 397Python 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.
Configuring a Jinja2 Environment with FileSystemLoader and Autoescape in Python
Use Jinja2's FileSystemLoader to load templates from disk, enable autoescape so HTML output is escaped by default, and handle template loading errors.