Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to fill the whole page with a picture #8

Closed
mportesdev opened this issue Mar 29, 2023 · 2 comments
Closed

Add an option to fill the whole page with a picture #8

mportesdev opened this issue Mar 29, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@mportesdev
Copy link
Owner

This would be useful e.g. for creating PDFs from scanned documents where the picture aspect ratios are very close to (but not exactly the same as) the page aspect ratio.

@mportesdev
Copy link
Owner Author

This would introduce a fill_page option with the default value of False.

When set to True, this option would conflict with the following options:

  • layout --- the layout would be forced to 1x1
  • margin --- the margin would be forced to zero
  • stretch_small --- the picture dimensions would be forced to the page dimensions

@mportesdev
Copy link
Owner Author

Alternatively, introduce a fill_area option that would not conflict with layout and margin. Filling the whole page with a picture would then be achieved by setting margin=0 and fill_area=True (using the default 1x1 layout).

mportesdev added a commit that referenced this issue Apr 4, 2023
@mportesdev mportesdev added the enhancement New feature or request label Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant