Rebuild pdf