2

I am developing a Python script which starts a PDF in diffrent programms depending on the file name. But if i want to open the PDF with the Microsoft App Drawboard PDF, the standard Powershell & Python commands only start the software and don't acutally open the file.

Using the standard context menu works fine (see picture) Contextmenu

File is opened in the Drawboard PDF Software

Drawboard PDF open file

but as soon as I try to open the file using Powershell, Python or Cmd, only the Drawboard PDF software opens without the file.

Drawboard PDF no opened file

Does work:

The PDF is open in Firefox.

Start-Process Firefox .\Desktop\test.pdf

Does not work:

Drawbord PDF is open without the pdf file...

Start-Process "C:\Program Files\WindowsApps\DRAWBOARD.DRAWBOARDPDF_6.44.7.0_x64__az88965nfbvjc\Db.App.exe" ".\Desktop\test.pdf"

Taskmanager command prompt:

Taskmanager command promt

"C:\Programm Files\WindowsApps\DRAWBOARD.DAWBOARDPDF_6.44.7.0_x64_az88965nfbvjc\Db.App.exe" -ServerName:App.AppXng8x4fsh0hwtx18bgqjhjna1wfdk1xqy.mca

Drawboard PDF as default PDF viewer is not a solution. Thanks for the support.

tcprod
  • 21
  • 3
  • You need to check whether drawboard's interface is the same of not. You can open the pdf with it normally and go to Task Manager -> Details, select columns - enable "Command prompt" there. Now you'll see what the process was run as under the hood. You'll see whether argument was supplied directly or with some flag - just use the same flags – h4z3 Jul 25 '23 at 14:27
  • Thank you, it was a good idea, unfortunately there is also no argument for a file recognizable. – tcprod Jul 27 '23 at 07:22
  • I added the task manager detail to the post. If I described my post poorly, please tell me what I can improve to be a better part of the community. Its my first post on stack overflow. – tcprod Jul 27 '23 at 07:35

0 Answers0