pagesize option should support "Legal" format (8.5inx14in) and "Tabloid" (11inx17in) #52

Closed
opened 3 years ago by josch · 0 comments
josch commented 3 years ago
Owner

By Ben on 2018-12-02T14:43:48.787Z

pagesize option should (at least) support "Legal" and "Tabloid" formats (widely used in North America).

That would help integration with the lp command (ex: -o PageSize=Legal):

Example:

mg2pdf --output out.pdf --pagesize Legal *.jpg

Should create a pdf file of

8.5inx14in


Other formats that could be supported (option parameters seem to be printer dependent):

Cups > CUPS Programming Manual > Getting Supported Options and Values

CUPS_MEDIA: Controls the media size that is used, typically one of the following: 

3X5                (3inx5in)
4X6                (4inx6in)
5X7                (5inx7in)
8X10               (8inx10in)
ENV10              (241.3mmx104.8mm)
ENVDL              (220mm×110 mm)
LEGAL              (8.5inx14in)
PHOTO_L            (330mmx483mm)
SUPERBA3           (13inx19in)
TABLOID            (11inx17in)

https://www.cups.org/doc/cupspm.html#getting-supported-options-and-values


Selecting the Media Size, Type, and Source

The available media sizes, types, and sources depend on the printer, but most support the following options (case is not significant):

    Letter - US Letter (8.5x11 inches, or 216x279mm)
    Legal - US Legal (8.5x14 inches, or 216x356mm)
    A4 - ISO A4 (8.27x11.69 inches, or 210x297mm)
    COM10 - US #10 Envelope (9.5x4.125 inches, or 241x105mm)
    DL - ISO DL Envelope (8.66x4.33 inches, or 220x110mm) 

https://www.cups.org/doc/options.html

References:

https://papersizes.io/photography/3r-l

https://www.papersizes.org/a-paper-sizes.htm


By josch on 2018-12-02T20:48:21.230Z


Which is the size that you personally were missing when you tried using img2pdf?


By Ben on 2018-12-02T21:17:48.641Z


Legal and Tabloid are a must in North America.


By josch on 2018-12-02T21:44:59.528Z


Let me phrase my question differently: Did you personally find yourself in the position where you had a raster image of Legal or Tabloid format that you wanted to convert to pdf?


By Ben on 2018-12-02T21:53:24.909Z


All legal documents are printed on legal paper. So yes, daily, I / we scan, print and convert images in or to the legal format. Tabloid format is used for blueprint and schedules.

PS: We don't use Ax format in North America...


By josch on 2018-12-24T17:12:00.056Z


Status changed to closed by commit b39e755424

*By Ben on 2018-12-02T14:43:48.787Z* pagesize option should (at least) support "Legal" and "Tabloid" formats (widely used in North America). That would help integration with the `lp` command (ex: `-o PageSize=Legal`): Example: `mg2pdf --output out.pdf --pagesize Legal *.jpg` Should create a pdf file of `8.5inx14in` *** Other formats that could be supported (option parameters seem to be printer dependent): ``` Cups > CUPS Programming Manual > Getting Supported Options and Values CUPS_MEDIA: Controls the media size that is used, typically one of the following: 3X5 (3inx5in) 4X6 (4inx6in) 5X7 (5inx7in) 8X10 (8inx10in) ENV10 (241.3mmx104.8mm) ENVDL (220mm×110 mm) LEGAL (8.5inx14in) PHOTO_L (330mmx483mm) SUPERBA3 (13inx19in) TABLOID (11inx17in) https://www.cups.org/doc/cupspm.html#getting-supported-options-and-values ``` ``` Selecting the Media Size, Type, and Source The available media sizes, types, and sources depend on the printer, but most support the following options (case is not significant): Letter - US Letter (8.5x11 inches, or 216x279mm) Legal - US Legal (8.5x14 inches, or 216x356mm) A4 - ISO A4 (8.27x11.69 inches, or 210x297mm) COM10 - US #10 Envelope (9.5x4.125 inches, or 241x105mm) DL - ISO DL Envelope (8.66x4.33 inches, or 220x110mm) https://www.cups.org/doc/options.html ``` References: https://papersizes.io/photography/3r-l https://www.papersizes.org/a-paper-sizes.htm --- *By josch on 2018-12-02T20:48:21.230Z* --- Which is the size that you personally were missing when you tried using img2pdf? --- *By Ben on 2018-12-02T21:17:48.641Z* --- Legal and Tabloid are a must in North America. --- *By josch on 2018-12-02T21:44:59.528Z* --- Let me phrase my question differently: Did you personally find yourself in the position where you had a raster image of Legal or Tabloid format that you wanted to convert to pdf? --- *By Ben on 2018-12-02T21:53:24.909Z* --- All legal documents are printed on legal paper. So yes, daily, I / we scan, print and convert images in or to the legal format. Tabloid format is used for blueprint and schedules. PS: We don't use Ax format in North America... --- *By josch on 2018-12-24T17:12:00.056Z* --- Status changed to closed by commit b39e75542481460ae2c672c8493e4466424fcedb
josch closed this issue 3 years ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: josch/img2pdf#52
Loading…
There is no content yet.