Dolibarr v13 propal creating and document output

I upgrade a testing installation of Dolibarr 12 and everything migrated perfectly.
I tried to make a proposal and I had a problem with PDFs. I received the error there is no $startxref and pdf cannot be created.
I made a new “clear installation” of Dolibarr 13 with a completely new database (mysqli) to check what happens.
In case that I choose, as suggested template the *.dot, proposal cannot be created at all.
In case that I choose, as suggested template the *.pdf, proposal can be created, but the pdf file is very big 537 Kb insteed the176 Kb that was in the past and cannot be displaied (error: pdf file cannot be corrected).