When creating PVF for PDFTemplate blob copy the original data otherwise PDFlib attempts to use a reference which gets wiped out.