Remove Page Sizes of Small, Medium, LARGE, and Best Fit

Issue #385 closed
Robert Leach created an issue

USE CASE: WHAT DO YOU WANT TO DO?

Have page-size options be restricted to controlling the dimensions of the surrounding document.

STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)

  1. Open any file and initiate an export
  2. Select PDF format
  3. Click the Paper Size dropdown to view the options

CURRENT BEHAVIOR

Among supported page size options, the options of Small, Medium, LARGE, and Best Fit don't seem to apply to the size or dimensions of the surrounding document, but rather to the resolution of the exported image on the page. There is currently no mechanism for actually creating images corresponding to these sizes. Selecting an image format such as PNG, JPG, or PPM in fact, disables the page size dropdown since it is not relevant.

EXPECTED BEHAVIOR

All page size options should relate to the size of the page and not the image. They should change the dimensions of the page exported.

DEVELOPERS ONLY SECTION

SUGGESTED CHANGE (Pseudocode optional)

Remove the options in question.

FILES AFFECTED (where the changes will be implemented) - developers only

PaperType.java

LEVEL OF EFFORT - developers only

trivial

COMMENTS

To address resolution adjustments, refer to BB issue #384.

Comments (5)

  1. Robert Leach reporter

    I just ran a test to see what options were valid for page size:

    String[] test = PageConstants.getSizeList();
    LogBuffer.println("Page sizes available: [" + String.join(", ",test) + "].");
    

    I got:

    Page sizes available: [International, A4, Letter, A3, Legal, A5, A6, Executive, Ledger].
    

    I will add these.

  2. Log in to comment