Custom pdf page - strange behaviour

 

 

 

  

 Hi,

     I can't understand why my tab page is fine and the preview (and print) are horrible.