py-pdf / pdfly

CLI tool to extract (meta)data from PDF and manipulate PDF files
BSD 3-Clause "New" or "Revised" License
108 stars 18 forks source link

ENH: pdfly x2pdf --format #63

Open Lucas-C opened 3 weeks ago

Lucas-C commented 3 weeks ago

The new --format parameter would allow for values like:

All the pages in the output PDF would then have this format. Images provided to pdfly x2pdf would then be fitted to the page.

[EDIT] More specifically, we would like to support all valid formats given as $commonNameForDimensions or $commonNameForDimensions-$orientation.

$orientation is optional, can be landscape or portrait, an defaults to portrait.

$commonNameForDimensions could be any Ax standard format: https://en.wikipedia.org/wiki/Paper_size#Overview_of_ISO_paper_sizes (with lowercase or uppercase first letter). It would be nice to also support Bx & Cx page formats.

Finally, Letter refers to the US Letter format: https://en.wikipedia.org/wiki/Letter_(paper_size) We should also support Legal for US Legal: https://en.wikipedia.org/wiki/Paper_size#Loose_sizes

mulla028 commented 3 weeks ago

Hello! I would like to implement this new parameter! Please assign me to this issue!

Lucas-C commented 3 weeks ago

Hello! I would like to implement this new parameter! Please assign me to this issue!

Great! Done 🙂