danfickle / danfickle/openhtmltopdf
Border not working on <tr>/<thead> tag as expected
- Dominant language
- Java
- Stars
- 2.2k
- Forks
- 423
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
the border style does not seem to work on tr / thead tag of a table. Attaching the HTML below.
```
1
2
3
```
The above code gives the following output on chrome

but gives the following on the generated pdf

As you can see the border is not getting rendered on the pdf.
The same can be observed on `` tag.
Adding the code that I used to generate pdf below.
```
PdfRendererBuilder builder = new PdfRendererBuilder();
builder.useFastMode();
builder.useUnicodeBidiSplitter(splitter);
builder.useUnicodeBidiReorderer(reorderer);
builder.useUriResolver((baseUri, uri) -> {
Object file = attributes.get(uri);
if (file instanceof File) {
uri = ((File) file).getName();
}
return uriResolver.resolveURI(baseUri, uri);
});
ByteArrayOutputStream bos = new ByteArrayOutputStream();
builder.withHtmlContent(html, Paths.get(this.fileStoreLocation).toUri().toURL().toExternalForm());
builder.toStream(bos);
builder.run();
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.