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

Content goes to second column and then to next page #669

Closed
robertknecht opened this issue Aug 15, 2016 · 3 comments
Closed

Content goes to second column and then to next page #669

robertknecht opened this issue Aug 15, 2016 · 3 comments

Comments

@robertknecht
Copy link

robertknecht commented Aug 15, 2016

We're running into a major roadblock with this. We need a two-column directory where text goes down to the bottom of the first column, then down the second column, and then on to the next page.

This is functionality that we really need.

Is there a way to use hooks or something to track how far down the page the content has gone and create a function to break to the next column when at the bottom of the first.

We could count lines, but that would be hard to maintain and adjust appearance for, and there's not way of telling when an item will take more than one line.

The addition of column breaks or any ideas how we could implement this on our own using the pdfMake framework would be greatly appreciated.
#614 #604

Otherwise, I'm wondering if there is a way to track how many pages the content has taken before actually generating the PDF, so that we could create two pages of content, then manipulate the array of content into two columns for one page.

@robertknecht
Copy link
Author

Since there doesn't seem to be a way to make a block of text automatically overflow from one column to the next, it would be useful to be able to use functions to dynamically control the content of the PDF the same we can with the Header and Footer. That way I could put in place a system to track pages and correctly rearrange the data into columns.

@RobertPrediger
Copy link

+1

@liborm85
Copy link
Collaborator

duplicate: #604

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants