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 a custom page break command #141

Closed
pyriand3r opened this issue Apr 2, 2020 · 3 comments · Fixed by #147
Closed

Add a custom page break command #141

pyriand3r opened this issue Apr 2, 2020 · 3 comments · Fixed by #147
Labels
good first issue Good for newcomers help wanted Extra attention is needed new feature New feature or request

Comments

@pyriand3r
Copy link

Is your feature request related to a problem? Please describe.
We face the problem, that we need to create a new page in the pdf before the actual page is full. So we need a custom page break command.

Describe the solution you'd like
It would be great to be able to tell maroto via command or method call to add a page break at the current position and all content added after the call will be added to a new page.

Describe alternatives you've considered
There are no alternatives, as maroto is the only pdf tool i found not using x/y coordinates.

Additional context
Maroto is based on/uses gofpdf in the background which allows custom page breaks via the .AddPage() method.

@johnferchermeli johnferchermeli added good first issue Good for newcomers help wanted Extra attention is needed new feature New feature or request labels Apr 2, 2020
@johnferchermeli
Copy link
Contributor

johnferchermeli commented Apr 2, 2020

Hi @pyriand3r we will add this as soon as possible, probably today or tomorrow.

This will be added in the a new version after the v0.25.0, if you are using a version older than v0.25.0 will be better to update, because we have a little breaking change (Now the Col has a gridSize parameter).

@elamre
Copy link

elamre commented May 11, 2020

Is this feature already implemented?

@johnferchermeli
Copy link
Contributor

johnferchermeli commented May 14, 2020

We have a branch with the feature but is missing the quality proceedings. Brach: https://github.com/johnfercher/maroto/tree/feature/add-page, PR: #147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed new feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants