Fix #33: copy files when generating pdf or single page