danfickle / danfickle/openhtmltopdf

SVG with text not generated

Open
#676 3 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

This simple SVG is not generated by open2HTml.
```

```

Here is the sample code I use to generate pdf(it works when SVG does not contain text):
```
public static void openHtml2Pdf(File htmlFile, File pdfFile) throws IOException {
try (OutputStream os = new FileOutputStream(pdfFile)) {
PdfRendererBuilder builder = new PdfRendererBuilder();
builder.useFastMode();
builder.useSVGDrawer(new BatikSVGDrawer());
builder.withFile(htmlFile);
builder.toStream(os);
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.