When a text size was <=0 the PDF file was corrupted.