danfickle / danfickle/openhtmltopdf

I got a issue about the <table/> when parsing html to pdf

Open
#160 1 comment 0 reactions 0 assignees View on GitHub
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.
![screen shot 2017-12-20 at 8 01 43 pm](https://user-images.githubusercontent.com/20917162/34208344-b39f5a68-e5c0-11e7-954d-9145f1973d51.png)

And the html file is rendered in chrome :
![screen shot 2017-12-20 at 8 04 17 pm](https://user-images.githubusercontent.com/20917162/34208461-fff03a36-e5c0-11e7-801b-293d90317fd5.png)

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:
![screen shot 2017-12-20 at 8 11 19 pm](https://user-images.githubusercontent.com/20917162/34208780-3e8289f6-e5c2-11e7-8c2a-fae9abf16857.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.