pdfGeometry function