danfickle / danfickle/openhtmltopdf

Border not working on <tr>/<thead> tag as expected

Open
#744 2 comments 0 reactions 0 assignees View on GitHub
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
![image](https://user-images.githubusercontent.com/67004443/129490244-813cb9f6-3bef-484e-ac91-4c2614bbf31c.png)

but gives the following on the generated pdf
![image](https://user-images.githubusercontent.com/67004443/129490223-97f7c86a-cc7d-4d85-ba40-106bbb4096a5.png)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.