The PDModel graphics package deals with graphics states, operations, and parameters within the PDF document.