Implement PDFDOcumentBuilder.

Imoplement methods from PDFDucumentBuilder. Fixe some bugs. Make changes
in PDFBuilder main test.