use fz_document instead of pdf_document