# Extracting pages of Xelatex created PDF in Acrobat requires password

I have a .tex file and after compiling with XeLatex , when I want to extract pages of the PDF or open a single-page PDF in Illustrator, it tells the file is Password-Protected (in Adobe Acrobat, no extraction is allowed :tools>content editing>pages>extract) Does any body have idea about this? As an example, consider the pdf created of the following code:

\documentclass[12pt,B5paper]{book}
\usepackage{xepersian}
$$f=(f_1^{- 2}+f_2^{- 2})^{- \frac{1}{2} }$$

• Can you add \listfiles before \documentclass and edit your question to show the output? Also is there anything in the log file that might indicate some security measures being made? – Alan Munn Jan 31 '19 at 22:02
• Hm. Well bidi.sty contains code to change the security settings. But I'm quite at loss to understand why they are used on your system and why you get the specific security settings (the default value is another). What happens if you load only bidi? What happens if you add \pdfencryptsetup{permissionflags=4095} to your preamble. Are the settings then changed? – Ulrike Fischer Feb 1 '19 at 9:16