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

Displaying <table> during generation #425

Open
arshad95 opened this Issue Dec 24, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@arshad95
Copy link

arshad95 commented Dec 24, 2018

Hello,

When generating my pdf I have an error in the layout.
I generated a pdf containing several tables that appear one after the other (see link -> picture: content court), the problem is that if the content of my second table is short, it is displayed correctly to following the first. But if the content of my second table is long, HTML2PDF will skip a page after displaying my first table and displays the second on a second page (see image link -> long content).

But I would like that, no matter the size of my second table this one is always displayed after my second without skipping page.

Link to the drive or find the pictures : https://drive.google.com/open?id=1OwHAn_rvfGeS73hIWg-M3IUKvGXvwmJZ

@LittleBigFox

This comment has been minimized.

Copy link
Contributor

LittleBigFox commented Dec 27, 2018

Hi!

Html2PDF uses the largest cell size to calculate what goes on one page or another.

If you want two tables to follow each other, you must delete the top table, replacing it with a div for example.

Regards,
LBF

@arshad95

This comment has been minimized.

Copy link

arshad95 commented Dec 28, 2018

Hi!

Html2PDF uses the largest cell size to calculate what goes on one page or another.

If you want two tables to follow each other, you must delete the top table, replacing it with a div for example.

Regards,
LBF

Thanks for your help !

I reformat my display by replacing my tables no div gold today my structure of an element this presents as well (See photo Capture.png):
link: https://drive.google.com/open?id=1OwHAn_rvfGeS73hIWg-M3IUKvGXvwmJZ

I have several information paragraph having the same syntax, with this format the problem is that if the content of my tag

is too long a white space this adds to the rest of my text so my second table (my second element with the syntax above) does not really appear afterwards but a large white space separates these two elements and I do not do not understand how to prevent this.

If you had an idea?

Yours,
Arshad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment