Can't load printer profile from command line

This Forum is for the use of End Users requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers only - Please do not post requests for older versions of PDF-XChange or the PDF-Tools/OFFice2PDF applications here

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Stefan - PDF-XChange

ragkag
User
Posts: 17
Joined: Sat Jun 10, 2023 1:38 pm

Can't load printer profile from command line

Post by ragkag »

PDF-XChange Pro 10.7.6.404

I'm trying to load a printer profile using rundll32 using the following command line:

rundll32 "C:\Program Files\Tracker Software\PDF-XChange Standard\drvui.x64.dll",DUI30_Command /InstallProfile:"D:\Users\AllUsers\AppData\PDFXEditor\Printer Profiles\Offsite HardCopy.pxpp" /PrinterName:"PDF-XChange Standard" /ForUser

The command executes without any errors but viewing the Printer Preferences, the "Profile:" name does not indicate the new profile name:

Before running the command:
image(1).png

After running the command:
image(2).png
Notice the profile name did NOT change under Printer Preferences.
The InstallProfile and PrinterName do indeed exist.
You do not have the required permissions to view the files attached to this post.
User avatar
Sean - PDF-XChange
Site Admin
Posts: 485
Joined: Wed Sep 14, 2016 5:42 pm

Re: Can't load printer profile from command line

Post by Sean - PDF-XChange »

Hi ragkag,

The issue here is that you are installing the profile, but not activating it.

Note that /InstallProfile only imports the profile into the printer, it does not switch the printer to use that profile unless either:

you add /AsDefault, or you use /SetDefProfile:"Profile Name"

There are a couple of ways you can resolve this:

Option 1 - install, and make it the default printer:

rundll32 "C:\Program Files\Tracker Software\PDF-XChange Standard\drvui.x64.dll",DUI30_Command ^
/InstallProfile:"D:\Users\AllUsers\AppData\PDFXEditor\Printer Profiles\Offsite HardCopy.pxpp" ^
/PrinterName:"PDF-XChange Standard" ^
/ForUser ^
/AsDefault


Option 2 - install it, then explicitly set the default:

rundll32 "C:\Program Files\Tracker Software\PDF-XChange Standard\drvui.x64.dll",DUI30_Command ^
/InstallProfile:"D:\Users\AllUsers\AppData\PDFXEditor\Printer Profiles\Offsite HardCopy.pxpp" ^
/PrinterName:"PDF-XChange Standard" ^
/ForUser

rundll32 "C:\Program Files\Tracker Software\PDF-XChange Standard\drvui.x64.dll",DUI30_Command ^
/SetDefProfile:"Offsite HardCopy" ^
/PrinterName:"PDF-XChange Standard" ^
/ForUser


Note that you need to make sure that "Offsite HardCopy" exactly matches the internal profile name (not the filename).

Kind regards,
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
ragkag
User
Posts: 17
Joined: Sat Jun 10, 2023 1:38 pm

Re: Can't load printer profile from command line

Post by ragkag »

Thanks for the quick response. Works fine now. You can close this request.
User avatar
Sean - PDF-XChange
Site Admin
Posts: 485
Joined: Wed Sep 14, 2016 5:42 pm

Re: Can't load printer profile from command line

Post by Sean - PDF-XChange »

:)
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623