Hello,
Welcome to Microsoft Q&A!
After testing, we could confirm that this issue is related to that specific PDF file you shared. When testing other standard PDF files, your code works correctly. The behavior you mentioned only happens when handling that specific PDF file. Then, for test purposes, I opened your PDF file in a browser and printed it as a new standard PDF file. Your code could open the newly generated PDF file correctly. So, this behavior is related to the PDF file that you are using. And the solution is that you might need to convert the target PDF file into a standard PDF file first via other ways like using a browser.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.