bug fixes for PdfPage
rewiring the parser to use PdfPage