pdf: fixing pdf rebuild issue