Login  Register

How to get rid of border around SVG images

Posted by siddjain on Oct 23, 2020; 10:43pm
URL: https://discuss.asciidoctor.org/How-to-get-rid-of-border-around-SVG-images-tp8284.html

Hello

Here is an SVG image: https://gist.github.com/siddjain/4c78da162319a26cd66991617bf62aeb

Save the gist as test.svg. Then write a file test.adoc that is simply

image::test.svg[]

Convert the adoc to PDF using asciidoctorpdf.

Observed: There is a black border around the image



Expected: No black border. Below is the image when I open it in chrome



How can I get the expected behavior?

I am using asciidoctor/docker-asciidoctor:1.2.0 which in turn uses asciidoctor-pdf 1.5.3

Thanks