Pdf and some tweaks on text format