[Tex/LaTex] Insert pages from password protected pdf file in latex

drmpdfpdfpagesxetex

If I have a password protected PDF (my own document, source unfortunately lost), and I want to include a portion of it in a new document, can that be done?

This previous question explains how to do it in general, but when I try this with a passworded input and compile using XeLaTeX, I get a XeLaTeX error xelatex> <use "myOldPdf.pdf"> Command Line Error: Incorrect password. Is there a way to pass XeLaTeX a password for this file?

Best Answer

No. You have to remove the password from the PDF to be able to handle it with XeTeX/pdfTeX/LuaTeX - no program in the TeX "universe" handles password-protected PDFs.