PDF axes rendering, data extraction, and file I/O
Single Responsibility: Handle PDF file writing, axes rendering, secondary axes, data extraction, and 3D data preparation.