Skip to main content

detect_linearization

Function detect_linearization 

Source
pub fn detect_linearization(data: &[u8]) -> Option<LinearizationParams>
Expand description

Detect whether the given PDF data represents a linearized PDF, and if so, parse and return the linearization parameters.

This checks if the first indirect object in the file contains a /Linearized key.