py-pdf / py-pdf/pdfly

ENH: pdfly x2pdf --format

Open
#63 2 comments 0 reactions 1 assignee View on GitHub

@mulla028 is already working on this.

Since Oct 30, 2024.

enhancement good first issue hacktoberfest is-feature-request up-for-grabs
Dominant language
Python
Stars
571
Forks
50
PR merge metrics
No merged PRs in 30d

Description

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

  • Letter
  • a4-portrait
  • A4-landscape
  • 210x297

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.