In LuaLaTeX I am using \includepdf[pages=-, noautoscale=true]{myEmbeddedDoc.pdf} to include an external multi-page PDF file "myEmbeddedDoc.pdf". (This command is provided by the "pdfpages" package, \usepackage{pdfpages}.) Prior to this included PDF document, I would like to have text in my LaTeX document saying "See embedded document 'myEmbeddedDoc.pdf' on pages X-Y (N pages)" where X is the beginning page of the included document, Y is the ending page of the included document, and N is the number of pages of the included document. I would like X, Y, and N to be automatically populated by LaTeX. Is this possible? If so, how do I do it? (Do I need a different command or LaTeX package to include the external PDF document in order to accomplish this?)
Edit: Clarifying my question: I want the page numbers of the included PDF document within -- i.e., in the context of -- the including LaTeX document, not to parse any page numbers from the included document. For example, if myEmbeddedDoc.pdf (the included PDF document) is itself 3 pages long and gets included after page 4 of the LaTeX document -- meaning the included PDF document would comprise pages 5-7 of the LaTeX document -- then I want the text on page 4 of my LaTeX document to say "See myEmbeddedDoc.pdf on pages 5-7 (3 pages)." I need these numbers to be produced automatically, because this is being done many, many times in my LaTeX document. Manually editing the resulting PDF file won't cut it.
