pc load letter in matlab

To load a custom paper size such as PC Load Letter in MATLAB and print a document with it, follow these steps:

  1. Open the printer properties dialog in MATLAB by calling the command printdlg.

  2. In the "Paper/Quality" tab of the dialog, click the "Advanced" button to open the advanced properties dialog.

  3. Click on the "Paper/Output" tab in the advanced properties dialog.

  4. Under "Paper Size", select "Custom" from the drop-down list.

  5. Enter "PC Load Letter" in the "Name" text box and set its width and height dimensions accordingly.

% Define the paper size
paperSize = [8.5*72, 11*72]; % Units are points (72 points/inch)

% Print the document with the custom paper size
print('-dpdf', '-bestfit', '-r300', '-noui', '-painters', ...
    sprintf('-S%s', printerName), ...
    sprintf('-Px%g,y%g', paperSize), '-cmyk', fileName);
295 chars
8 lines
  1. Print the document using the custom paper size by specifying it in the print command.

With these steps you should be able to print any document in MATLAB using the custom PC Load Letter paper size.

gistlibby LogSnag