Replacing PDF with errors