Command Line printing to scale

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
rm15062
User
Posts: 1
Joined: Mon Jan 04, 2010 10:07 pm

Command Line printing to scale

Post by rm15062 »

Hello,

I am using the command line interface to PDFXEdit to print PDF's of engineering drawings. The problem is that I always want the print size to be scaled to landscape 8.5"x11" paper, and sometimes the drawings are 11x17 or other sizes.

I'm looking at the /ImportSettings command line option, hoping there is a way I can set the settings to "force" the print output always to be scaled to the paper size (8.5x11), but I can't figure out where to set those settings, or whether those settings are exported in Menu/Edit/Export Settings.

Is there a way to accomplish what I want, to force scaling to a certain page size, so I can automate printing PDF's that have different sizes?

What do I need to do in the Editor program to set this setting, and what is the best way to communicate this setting to the /ImportSettings command?

Bob
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8588
Joined: Wed Jan 03, 2018 6:52 pm

Re: Command Line printing to scale

Post by TrackerSupp-Daniel »

Hello rn15062,

This should be possible as a general idea, although may be a bit less practical in practice. The /ImportSettings is only able to affect the options in the lower half of the print dialog, while the options in the upper half are pulled from the global profile (tied to your default printer)
image.png
So while you can definietely accomplish this command line printing, you would need to specify the page size and orientation, by changing the default settings of the default printer, and printing to it exclusively for these operations.

I hope this helps!
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Post Reply