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