Description
Reads and parses PDF files from Ruby code, aiming to follow the Adobe PDF specification closely. It is useful for extracting text, inspecting metadata, and analyzing generated or received documents.
PDF files from unknown sources can be malformed, huge, or hostile. Limit input size, handle parser errors safely, and avoid trusting extracted content without validation.