[Ticket cloned from T6800: a few issues with ck editor pdf rendering in 1.8.42 in Angular]
as for the wrong space under tables, I am just not able to reproduce it anywhere.
Do you have some hints on what may go wrong to cause this, so that I can either figure out the cause of the issue or create a sample of the issue?
Thanks
Hello,
It is difficult to determine the issue without live sample. I can guess that this may be caused by some CSS rules which affect on margins/paddings/other spacing
Thanks, Alex
SurveyJS Team
OK.
as you can see, everything looks alright here. there is no huge padding or margin at the bottom
when I select the table. these are the styles I got
it looks alright to me.
I have tried to add many
console.logs
insurvey.pdf.js
to check thecss
forcn
and other stuff, but I just don't see anything wrong. Could you suggest me where to add someconsole.logs
to see what may go wrong? (either the builtsurvey.pdf.js
or the source code on github are fine, I can build it myself if needed.)Thanks
1 more hint
this is the pdf structure for ckeditor with a table in its answer (I used edit object selector to select this object in adobe acrobat)
at least the margin in the pdf looks alright.
but it may be the padding or something else is wrong?
Hello,
The htmlToImage method converts some string with HTML value to image before draw it in PDF document. You can debug here. For example look at
div
element created beforediv.remove();
line. Find that element in markup of your page, unset itstop
andleft
styles and check its margins/paddings. Is it OK? Probably we can find issue hereThanks, Alex
SurveyJS Team