hello @Ashok Kumar , Welcome to Microsoft Q&A
When I open above attached pdf file with PdfDocument api, it throw "Exception from HRESULT: 0x80048040", it looks above pdf file is not standard pdf file. For this scenario, we suggest you use Microsoft Edge pdf viewer to open pdf file then print pdf as Microsoft PDF standard document.
Steps:
Open pdf file with Microsoft Edge
Press Print button show print dialog
Select Microsoft Print to PDF option within Printer combobox
Click Print to save as new pdf file.
You will open the new pdf file with PdfDocument api successfully.
Thanks
Nico Zhu
If the response is helpful, please click "Accept Answer" and upvote it.
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.