HTML-Renderer icon indicating copy to clipboard operation
HTML-Renderer copied to clipboard

Only one page shown SOMETIMES when using tables.

Open Ixonal opened this issue 9 years ago • 2 comments

This is a weird one, and I'm having some trouble isolating exactly what inputs cause the issue. Basically, I have a table to show some data, followed by a list of images. The combined length of the table and the images is over one page long (actually, the length of the images alone that I've been testing with is over one page long). If I convert the whole thing, only the first page is shown. Other pages exist (and sometimes are landscape oriented for some reason), but they're blank. If I display just the list of images, they display fine on all pages. If I comment out certain things in the table, the content shows properly on both pages. So far, it seems like the issue only shows itself in two cases: 1, when there are tags inside of a td (as per https://htmlrenderer.codeplex.com/workitem/9094); 2, when there is only empty space (spaces or tabs) inside of a td. Any idea what's up?

Ixonal avatar Jun 24 '16 19:06 Ixonal

After further investigation, it seems that img tags work inside of a td, as long as there is no empty space around them. Other tags existing (div and br, for example) inside of the td still cause the additional pages to be blank, even if all extra white space is removed.

BTW, I'm using the version 1.5.0.6 version currently on NuGet.

Also, just in case, @ArthurHub ping

Ixonal avatar Jun 29 '16 20:06 Ixonal

Provide some HTML to reproduce?

bjorn-ali-goransson avatar Jan 10 '18 21:01 bjorn-ali-goransson