pdf version preview with in-sync html version