danfickle / danfickle/openhtmltopdf
I got a issue about the <table/> when parsing html to pdf
- Dominant language
- Java
- Stars
- 2.2k
- Forks
- 423
- PR merge metrics
- No merged PRs in 30d
Description
I don't know why the rendered pdf file is missing the border and rowspan.

And the html file is rendered in chrome :

Can someone help me? 💯
This is the css:
` @page {
size: A4;
margin-bottom: 0px;
margin-top: 10px;
}
@font-face {
src: url('./fonts/ARIALUNI.TTF');
-fs-pdf-font-embed: embed;
-fs-pdf-font-encoding: Identity-H;
}
body {
display:block;
font-family: Arial Unicode MS, Arial, verdana, sans-serif;
}
.table {
width: 100%;
max-width: 100%;
border-collapse: collapse;
margin-bottom: 8px;
text-align: center;
}
table tr td {
border: 1px solid black;
font-size: 12px;
text-align: center;
}
.box-print{
padding: 0px 30px;
}
.title-qr{
text-align: center;
font-size: 14px;
}
.small-column{
width :25%;
}
.medium-column{
width :25%;
}
.large-column{
width: 30%;
}
`
The java code:

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.