phpSane icon indicating copy to clipboard operation
phpSane copied to clipboard

US page sizes not listed, even if uncommented

Open jimbolaya opened this issue 4 years ago • 1 comments

I'm running this on apache2 2.4.38 and PHP v7.4.

In incl/config.php, if I uncomment the

add_page_size('US Letter', 216, 279);
add_page_size('US Legal', 216, 356);
add_page_size('US Ledger', 432, 279);
add_page_size('US Tabloid', 279, 432);

lines, they don't show up in the drop down menu for "Page Size". I've set the $DEFAULT_PAGE_SIZE = 'US Letter'; it comes up as Custom in the drop down list. all the other A sizes do show up.

jimbolaya avatar Dec 07 '21 15:12 jimbolaya

OK, I figured out my own answer.

Somewhere in the documents, it mentions it wont show sizes outside the $MAX_SCAN_WIDTH_MM
or $MAX_SCAN_HEIGHT_MM.

The real answer is it wont show page sizes outside $PREVIEW_WIDTH_MM or $PREVIEW_HEIGHT_MM.

jimbolaya avatar Nov 17 '22 17:11 jimbolaya