asciidoctor-pdf: embed svg image totally corrupts pdf output

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

asciidoctor-pdf: embed svg image totally corrupts pdf output

wimalopaan
Hi all,

sometimes I get warnings of the following form when using asciidoctor-pdf-1.5.0.alpha12:

asciidoctor: WARNING: could not embed image: /home/lmeier/Lehre/Eigene/Prog2NeuesKonzept/ppc/doc/images/vector2.svg; undefined method `strip' for :italic:Symbol

In the output pdf the image isn't rendered and the document afterwards get corrupted.

Using asciidoctor to render html all is ok.

Any hints?

The image:


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/PR-SVG-20010719/DTD/svg10.dtd">
<svg width="23cm" height="8cm" viewBox="38 48 449 151" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <g>
    <rect style="fill: #ffffff" x="300" y="80" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="300" y="80" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="380" y="102.9">
      <tspan x="380" y="102.9">Point[1,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <rect style="fill: #ffffff" x="300" y="120" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="300" y="120" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="380" y="142.9">
      <tspan x="380" y="142.9">Point[2,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <rect style="fill: #ffffff" x="300" y="160" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="300" y="160" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="380" y="182.9">
      <tspan x="380" y="182.9">Point[3,0,0,"red"]</tspan>
    </text>
  </g>
  <text font-size="12.8" style="fill: #0000ff;text-anchor:start;font-family:sans-serif;font-style:normal;font-weight:700" x="300" y="60">
    <tspan x="300" y="60">std::vector&lt;Point&gt; points</tspan>
  </text>
  <g>
    <rect style="fill: #ffffff" x="40" y="80" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="40" y="80" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="120" y="102.9">
      <tspan x="120" y="102.9">Point[0,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <path style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" d="M 200 99 C 233.2,99 266.8,99 290.264,99"/>
    <polygon style="fill: #ff0000" points="297.764,99 287.764,104 290.264,99 287.764,94 "/>
    <polygon style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" points="297.764,99 287.764,104 290.264,99 287.764,94 "/>
  </g>
  <g>
    <path style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" d="M 200 99 C 233.2,99 266.8,139 290.264,139"/>
    <polygon style="fill: #ff0000" points="297.764,139 287.764,144 290.264,139 287.764,134 "/>
    <polygon style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" points="297.764,139 287.764,144 290.264,139 287.764,134 "/>
  </g>
  <g>
    <path style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" d="M 200 99 C 233.2,99 266.8,179 290.264,179"/>
    <polygon style="fill: #ff0000" points="297.764,179 287.764,184 290.264,179 287.764,174 "/>
    <polygon style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" points="297.764,179 287.764,184 290.264,179 287.764,174 "/>
  </g>
  <text font-size="12.8" style="fill: #0000ff;text-anchor:start;font-family:sans-serif;font-style:normal;font-weight:700" x="100" y="60">
    <tspan x="100" y="60">Point p</tspan>
  </text>
  <text font-size="12.8" style="fill: #ff0000;text-anchor:start;font-family:sans-serif;font-style:normal;font-weight:normal" x="240" y="80">
    <tspan x="240" y="80">Kopie</tspan>
  </text>
</svg>

Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor-pdf: embed svg image totally corrupts pdf output

mojavelinux
Administrator
This is an upstream bug in Prawn SVG. I've submitted an issue:


and a fix:


Until this is resolved, it's not possible to use italic text in an SVG.

-Dan

On Thu, Sep 8, 2016 at 8:12 AM, wimalopaan [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi all,

sometimes I get warnings of the following form when using asciidoctor-pdf-1.5.0.alpha12:

asciidoctor: WARNING: could not embed image: /home/lmeier/Lehre/Eigene/Prog2NeuesKonzept/ppc/doc/images/vector2.svg; undefined method `strip' for :italic:Symbol

In the output pdf the image isn't rendered and the document afterwards get corrupted.

Using asciidoctor to render html all is ok.

Any hints?

The image:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/PR-SVG-20010719/DTD/svg10.dtd">
<svg width="23cm" height="8cm" viewBox="38 48 449 151" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <g>
    <rect style="fill: #ffffff" x="300" y="80" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="300" y="80" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="380" y="102.9">
      <tspan x="380" y="102.9">Point[1,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <rect style="fill: #ffffff" x="300" y="120" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="300" y="120" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="380" y="142.9">
      <tspan x="380" y="142.9">Point[2,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <rect style="fill: #ffffff" x="300" y="160" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="300" y="160" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="380" y="182.9">
      <tspan x="380" y="182.9">Point[3,0,0,"red"]</tspan>
    </text>
  </g>
  <text font-size="12.8" style="fill: #0000ff;text-anchor:start;font-family:sans-serif;font-style:normal;font-weight:700" x="300" y="60">
    <tspan x="300" y="60">std::vector&lt;Point&gt; points</tspan>
  </text>
  <g>
    <rect style="fill: #ffffff" x="40" y="80" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="40" y="80" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="120" y="102.9">
      <tspan x="120" y="102.9">Point[0,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <path style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" d="M 200 99 C 233.2,99 266.8,99 290.264,99"/>
    <polygon style="fill: #ff0000" points="297.764,99 287.764,104 290.264,99 287.764,94 "/>
    <polygon style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" points="297.764,99 287.764,104 290.264,99 287.764,94 "/>
  </g>
  <g>
    <path style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" d="M 200 99 C 233.2,99 266.8,139 290.264,139"/>
    <polygon style="fill: #ff0000" points="297.764,139 287.764,144 290.264,139 287.764,134 "/>
    <polygon style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" points="297.764,139 287.764,144 290.264,139 287.764,134 "/>
  </g>
  <g>
    <path style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" d="M 200 99 C 233.2,99 266.8,179 290.264,179"/>
    <polygon style="fill: #ff0000" points="297.764,179 287.764,184 290.264,179 287.764,174 "/>
    <polygon style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" points="297.764,179 287.764,184 290.264,179 287.764,174 "/>
  </g>
  <text font-size="12.8" style="fill: #0000ff;text-anchor:start;font-family:sans-serif;font-style:normal;font-weight:700" x="100" y="60">
    <tspan x="100" y="60">Point p</tspan>
  </text>
  <text font-size="12.8" style="fill: #ff0000;text-anchor:start;font-family:sans-serif;font-style:normal;font-weight:normal" x="240" y="80">
    <tspan x="240" y="80">Kopie</tspan>
  </text>
</svg>




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/asciidoctor-pdf-embed-svg-image-totally-corrupts-pdf-output-tp4938.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor-pdf: embed svg image totally corrupts pdf output

mojavelinux
Administrator
In reply to this post by wimalopaan
Thanks for reporting!

-Dan

On Thu, Sep 8, 2016 at 10:53 AM, Dan Allen <[hidden email]> wrote:
This is an upstream bug in Prawn SVG. I've submitted an issue:


and a fix:


Until this is resolved, it's not possible to use italic text in an SVG.

-Dan

On Thu, Sep 8, 2016 at 8:12 AM, wimalopaan [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi all,

sometimes I get warnings of the following form when using asciidoctor-pdf-1.5.0.alpha12:

asciidoctor: WARNING: could not embed image: /home/lmeier/Lehre/Eigene/Prog2NeuesKonzept/ppc/doc/images/vector2.svg; undefined method `strip' for :italic:Symbol

In the output pdf the image isn't rendered and the document afterwards get corrupted.

Using asciidoctor to render html all is ok.

Any hints?

The image:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/PR-SVG-20010719/DTD/svg10.dtd">
<svg width="23cm" height="8cm" viewBox="38 48 449 151" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <g>
    <rect style="fill: #ffffff" x="300" y="80" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="300" y="80" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="380" y="102.9">
      <tspan x="380" y="102.9">Point[1,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <rect style="fill: #ffffff" x="300" y="120" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="300" y="120" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="380" y="142.9">
      <tspan x="380" y="142.9">Point[2,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <rect style="fill: #ffffff" x="300" y="160" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="300" y="160" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="380" y="182.9">
      <tspan x="380" y="182.9">Point[3,0,0,"red"]</tspan>
    </text>
  </g>
  <text font-size="12.8" style="fill: #0000ff;text-anchor:start;font-family:sans-serif;font-style:normal;font-weight:700" x="300" y="60">
    <tspan x="300" y="60">std::vector&lt;Point&gt; points</tspan>
  </text>
  <g>
    <rect style="fill: #ffffff" x="40" y="80" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="40" y="80" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="120" y="102.9">
      <tspan x="120" y="102.9">Point[0,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <path style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" d="M 200 99 C 233.2,99 266.8,99 290.264,99"/>
    <polygon style="fill: #ff0000" points="297.764,99 287.764,104 290.264,99 287.764,94 "/>
    <polygon style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" points="297.764,99 287.764,104 290.264,99 287.764,94 "/>
  </g>
  <g>
    <path style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" d="M 200 99 C 233.2,99 266.8,139 290.264,139"/>
    <polygon style="fill: #ff0000" points="297.764,139 287.764,144 290.264,139 287.764,134 "/>
    <polygon style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" points="297.764,139 287.764,144 290.264,139 287.764,134 "/>
  </g>
  <g>
    <path style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" d="M 200 99 C 233.2,99 266.8,179 290.264,179"/>
    <polygon style="fill: #ff0000" points="297.764,179 287.764,184 290.264,179 287.764,174 "/>
    <polygon style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ff0000" points="297.764,179 287.764,184 290.264,179 287.764,174 "/>
  </g>
  <text font-size="12.8" style="fill: #0000ff;text-anchor:start;font-family:sans-serif;font-style:normal;font-weight:700" x="100" y="60">
    <tspan x="100" y="60">Point p</tspan>
  </text>
  <text font-size="12.8" style="fill: #ff0000;text-anchor:start;font-family:sans-serif;font-style:normal;font-weight:normal" x="240" y="80">
    <tspan x="240" y="80">Kopie</tspan>
  </text>
</svg>




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/asciidoctor-pdf-embed-svg-image-totally-corrupts-pdf-output-tp4938.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor-pdf: embed svg image totally corrupts pdf output

wimalopaan
Well, the reported problem has gone, thank!!!

But now, after including the foloowing image, all text is bold!

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/PR-SVG-20010719/DTD/svg10.dtd">
<svg width="23cm" height="8cm" viewBox="78 28 443 151" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <g>
    <rect style="fill: #ffffff" x="80" y="60" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="80" y="60" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="160" y="82.9">
      <tspan x="160" y="82.9">Point[1,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <rect style="fill: #ffffff" x="80" y="100" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="80" y="100" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="160" y="122.9">
      <tspan x="160" y="122.9">Point[2,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <rect style="fill: #ffffff" x="80" y="140" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="80" y="140" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="160" y="162.9">
      <tspan x="160" y="162.9">Point[3,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <rect style="fill: #d8e5e5" x="360" y="60" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="360" y="60" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="440" y="82.9">
      <tspan x="440" y="82.9">Point[4,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <rect style="fill: #d8e5e5" x="360" y="100" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="360" y="100" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="440" y="122.9">
      <tspan x="440" y="122.9">Point[5,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <rect style="fill: #d8e5e5" x="360" y="140" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="360" y="140" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="440" y="162.9">
      <tspan x="440" y="162.9">Point[6,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <polygon style="fill: #ffa500" points="280,110 310,110 310,100 340,120 310,140 310,130 280,130 "/>
    <polygon style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ffa500" points="280,110 310,110 310,100 340,120 310,140 310,130 280,130 "/>
    <polygon style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ffa500" points="280,110 310,110 310,100 340,120 310,140 310,130 280,130 "/>
  </g>
  <text font-size="12.8" style="fill: #000000;text-anchor:start;font-family:sans-serif;font-style:normal;font-weight:normal" x="80" y="40">
    <tspan x="80" y="40">std::vector&lt;Point&gt; v1</tspan>
  </text>
  <text font-size="12.8" style="fill: #000000;text-anchor:start;font-family:sans-serif;font-style:normal;font-weight:normal" x="360" y="40">
    <tspan x="360" y="40">std::vector&lt;Point&gt; v2</tspan>
  </text>
  <text font-size="12.8" style="fill: #ffa500;text-anchor:start;font-family:sans-serif;font-style:normal;font-weight:700" x="280" y="80">
    <tspan x="280" y="80">Kopie</tspan>
  </text>
</svg>

Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor-pdf: embed svg image totally corrupts pdf output

mojavelinux
Administrator
I'm not sure what you mean. Are you using a patched version of prawn-svg?

-Dan

On Thu, Sep 8, 2016 at 11:57 PM, wimalopaan [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Well, the reported problem has gone, thank!!!

But now, after including the foloowing image, all text is bold!


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/PR-SVG-20010719/DTD/svg10.dtd">
<svg width="23cm" height="8cm" viewBox="78 28 443 151" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <g>
    <rect style="fill: #ffffff" x="80" y="60" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="80" y="60" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="160" y="82.9">
      <tspan x="160" y="82.9">Point[1,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <rect style="fill: #ffffff" x="80" y="100" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="80" y="100" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="160" y="122.9">
      <tspan x="160" y="122.9">Point[2,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <rect style="fill: #ffffff" x="80" y="140" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="80" y="140" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="160" y="162.9">
      <tspan x="160" y="162.9">Point[3,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <rect style="fill: #d8e5e5" x="360" y="60" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="360" y="60" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="440" y="82.9">
      <tspan x="440" y="82.9">Point[4,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <rect style="fill: #d8e5e5" x="360" y="100" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="360" y="100" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="440" y="122.9">
      <tspan x="440" y="122.9">Point[5,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <rect style="fill: #d8e5e5" x="360" y="140" width="160" height="38"/>
    <rect style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #000000" x="360" y="140" width="160" height="38"/>
    <text font-size="12.8" style="fill: #ff0000;text-anchor:middle;font-family:sans-serif;font-style:italic;font-weight:normal" x="440" y="162.9">
      <tspan x="440" y="162.9">Point[6,0,0,"red"]</tspan>
    </text>
  </g>
  <g>
    <polygon style="fill: #ffa500" points="280,110 310,110 310,100 340,120 310,140 310,130 280,130 "/>
    <polygon style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ffa500" points="280,110 310,110 310,100 340,120 310,140 310,130 280,130 "/>
    <polygon style="fill: none; fill-opacity:0; stroke-width: 2; stroke: #ffa500" points="280,110 310,110 310,100 340,120 310,140 310,130 280,130 "/>
  </g>
  <text font-size="12.8" style="fill: #000000;text-anchor:start;font-family:sans-serif;font-style:normal;font-weight:normal" x="80" y="40">
    <tspan x="80" y="40">std::vector&lt;Point&gt; v1</tspan>
  </text>
  <text font-size="12.8" style="fill: #000000;text-anchor:start;font-family:sans-serif;font-style:normal;font-weight:normal" x="360" y="40">
    <tspan x="360" y="40">std::vector&lt;Point&gt; v2</tspan>
  </text>
  <text font-size="12.8" style="fill: #ffa500;text-anchor:start;font-family:sans-serif;font-style:normal;font-weight:700" x="280" y="80">
    <tspan x="280" y="80">Kopie</tspan>
  </text>
</svg>




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/asciidoctor-pdf-embed-svg-image-totally-corrupts-pdf-output-tp4938p4941.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor-pdf: embed svg image totally corrupts pdf output

wimalopaan
Yes, I applied the patch for prawn-svg-0.25.1
Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor-pdf: embed svg image totally corrupts pdf output

mojavelinux
Administrator

Hmm. I don't see all the text in the SVG in bold when I try it. Could you screenshot the SVG in the PDF so I can see if I'm seeing what you're seeing?

Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor-pdf: embed svg image totally corrupts pdf output

wimalopaan
Not the text in(!) the svg,

but the rest of the document after(!) including it.

Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor-pdf: embed svg image totally corrupts pdf output

mojavelinux
Administrator

Oh, right. Of course. Good news! That's another bug I fixed in the upcoming alpha 13 release. I'll be making that release this weekend, so stay tuned.

Cheers,

-Dan


Le 9 sept. 2016 4:43 AM, "wimalopaan [via Asciidoctor :: Discussion]" <[hidden email]> a écrit :
Not the text in(!) the svg,

but the rest of the document after(!) including it.




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/asciidoctor-pdf-embed-svg-image-totally-corrupts-pdf-output-tp4938p4946.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor-pdf: embed svg image totally corrupts pdf output

wimalopaan
Hi Dan,

any news?

--
 Wilhelm
Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor-pdf: embed svg image totally corrupts pdf output

mojavelinux
Administrator
Yep, this will be part of the alpha.13 release. All the issues are resolved and I'm about to publish it. Should be out in the next 24-48 hours.

-Dan

On Thu, Sep 15, 2016 at 2:00 PM, wimalopaan [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi Dan,

any news?

--
 Wilhelm


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/asciidoctor-pdf-embed-svg-image-totally-corrupts-pdf-output-tp4938p4958.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor-pdf: embed svg image totally corrupts pdf output

wimalopaan
Hi Dan,

that'll be great!

Thanks!
- Wilhelm
Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor-pdf: embed svg image totally corrupts pdf output

wimalopaan
Thank you!

The new release fixed it all.

--
 Wilhelm
Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor-pdf: embed svg image totally corrupts pdf output

mojavelinux
Administrator



On Wed, Sep 21, 2016 at 3:37 AM, wimalopaan [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Thank you!

The new release fixed it all.

--
 Wilhelm



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/asciidoctor-pdf-embed-svg-image-totally-corrupts-pdf-output-tp4938p4985.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux