danfickle / danfickle/openhtmltopdf

SVG issue

Open
#350 0 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

SVG layout is breaking.

am trying to print doughnut developed in SVG into PDF. below is my sample doughnut code:


PDF

in each circle I updated "fill from "transparent" to "white" to get the center of donut white in color, other wise it is rendering to black.

issue1: fill = transparent is not working as expected
issue2: one of the cycles (mostly the last one ) "stroke-width" is failing to pick up
issue3: there is change in size of svg in html and pdf

am using
compile group: 'com.openhtmltopdf', name: 'openhtmltopdf-pdfbox', version: '0.0.1-RC19'
compile group: 'com.openhtmltopdf', name: 'openhtmltopdf-svg-support', version: '0.0.1-RC19'

below is my sample code:

PdfRendererBuilder builder = new PdfRendererBuilder();

builder.withUri("test.html");
builder.useFastMode();
builder.toStream(os);
builder.useSVGDrawer(new BatikSVGDrawer()); // Load SVG support plugin
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.