adding PdfPage and PdfDocument with bindings to Javascript.