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

template command for flexible multi-layout #183

Open
abey79 opened this issue Jan 27, 2021 · 0 comments
Open

template command for flexible multi-layout #183

abey79 opened this issue Jan 27, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@abey79
Copy link
Owner

abey79 commented Jan 27, 2021

New template command to generate arbitrary multi-layout based on a config file, e.g.:

image

Config file:

[template.three4x6]
page_size = "letter"
landscape = false

[[template.three4x6.slot]]
size = ["4in", "6in"]
position = [0, 0]  # slot's top-left corner on page

[[template.three4x6.slot]]
size = ["4in", "6in"]
position = ["4.5in", 0]

[[template.three4x6.slot]]
size = ["4in", "6in"]
position = ["1in", "6.5"]
landscape = true

Usage:

vpype read input.svg [...] template --fit-to-margins 0.5in --landscape three4x6 write output.svg

@abey79 abey79 added the enhancement New feature or request label Jan 27, 2021
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