enhancing performance of pdf-generation / preview with the alternate genrator