Page 1 of 1

Command Line printing to scale

Posted: Thu Jun 06, 2019 8:19 pm
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

Re: Command Line printing to scale

Posted: Thu Jun 06, 2019 10:00 pm
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!