Welcome Guest Search | Active Topics | Sign In | Register

ConvertUrl empty pdf pages added with bootstrap 5.0.2 Options
soppie
Posted: Monday, August 30, 2021 11:17:44 AM
Rank: Newbie
Groups: Member

Joined: 11/6/2018
Posts: 9
in the process of modernizing a pdf generating web app I noticed a lot of empty pdf pages where added after the end of the html content in the pdf. After some trial and error it looked like it had something to do with the html page which is utilizing a (default) bootstrap 5.0.2 min css file.

When I disable the bootstrap style sheet in the html page, or simply use bootstrap 4.6, NO empty pdf pages are added at the end and all looks fine after calling HtmlToPdf.ConvertUrl

I'm using EO dll versions 21.0.32.0

Any ideas?
eo_support
Posted: Monday, August 30, 2021 5:24:43 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

Have you tried the latest build? We tested the latest build with some bootstrap 5 sample sites and we do not see such problems.

Thanks!
soppie
Posted: Tuesday, August 31, 2021 5:06:12 AM
Rank: Newbie
Groups: Member

Joined: 11/6/2018
Posts: 9
when I use version 21.1.93 the problem is still there.
So I checked for an older version from a past project and used 18.0.23.0 and used the old license key.
All looks oke with version 18.0.23.0.

So I started to strip all html until the problem was gone and began adding styling again.
I think I eliminated all possible other influences in the html and this is my conclusion:

EO version 21.0.32.0 / html BS 5.x / table with class "table" = problem
EO version 21.0.32.0 / html BS 4.6 / table with class "table" = OK

EO version 21.1.93.0 / html BS 5.x / table with class "table" = problem
EO version 21.1.93.0 / html BS 4.6 / table with class "table" = OK

EO version 18.0.23.0 / html BS 5.x / table with class "table" = OK
EO version 18.0.23.0 / html BS 4.6 / table with class "table" = OK


So a simple 1 page pdf for a html page with a table with class table returns a 16 page pdf.
page 1 displays the table and 15 empty pages are added extra.
eo_support
Posted: Tuesday, August 31, 2021 8:13:36 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

Can you send us a test page so that we can investigate here? See here for more information on how to send test file to us:

https://www.essentialobjects.com/forum/test_project.aspx

Thanks!
soppie
Posted: Tuesday, August 31, 2021 9:32:10 AM
Rank: Newbie
Groups: Member

Joined: 11/6/2018
Posts: 9
I don't think there is any need for a sample project, I've mailed a simple url to support@ in regard to this issue
eo_support
Posted: Tuesday, August 31, 2021 3:42:00 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

We have looked into the test page you sent to us and found out the root of the problem. This will be fixed in our next build and it should come out either this week or next week.

Thanks!
eo_support
Posted: Thursday, September 2, 2021 3:33:14 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

This is just to let you know that we have posted a new build should fix this issue. You can download the new build from our download page. Please take a look and let us know how it goes.

Thanks
soppie
Posted: Friday, September 3, 2021 5:46:18 AM
Rank: Newbie
Groups: Member

Joined: 11/6/2018
Posts: 9
checked latest build 21.2.29 and all looks oke now, so no empty pages added anymore with bs 5.x css html elements.
Thx for the quick fix!
eo_support
Posted: Friday, September 3, 2021 7:46:44 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Great. Thanks for confirming the fix!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.