asciidoctor / asciidoctorj-pdf

AsciidoctorJ PDF bundles the Asciidoctor PDF RubyGem (asciidoctor-pdf) so it can be loaded into the JVM using JRuby.
Apache License 2.0
36 stars 17 forks source link

asciidoctorj-pdf is not rendering Cylinder shape #34

Closed myron-randall closed 4 years ago

myron-randall commented 4 years ago

I am using the following versions in my pom using maven:

2.0.0-RC.1 2.1.0 1.5.18 9.2.9.0 1.5.0-beta.7 Here is a snipet of the code: subgraph cluster_storage_2 { label = "Persistent Storage"; style=filled; fillcolor=dodgerblue2; disk3 [shape=cylinder, label="Disk 2", color=red, style=filled, fillcolor=pink] disk4 [shape=cylinder, label="Disk 1", color=blue, style=filled, fillcolor=lightblue] }
robertpanzer commented 4 years ago

Hi,

I cannot reproduce your description. I created this document:

= Test

Test

== Test

[graphviz,test,svg]
----
graph cluster_storage_2 {
label = "Persistent Storage";
style=filled;
fillcolor=dodgerblue2;
disk3 [shape=cylinder, label="Disk 2", color=red, style=filled, fillcolor=pink]
disk4 [shape=cylinder, label="Disk 1", color=blue, style=filled, fillcolor=lightblue]
}
----

and as a result I got this in my PDF:

Screen Shot 2019-11-20 at 7 59 06 AM

Can you please provide an example that allows to reproduce your issue? And also a description of what you see instead?

myron-randall commented 4 years ago

I am using Jenkins to run a maven build. My diagram is an external file that is pulled into the adoc. I am seeing boxes instead of cylinders.

myron-randall commented 4 years ago

Attached files:

Capture

robertpanzer commented 4 years ago

Can you add which version of graphviz you have installed on that machine? That should do the actual rendering.

myron-randall commented 4 years ago

Running on CentOS7 Ouput from dot -v dot - graphviz version 2.30.1 (20180420.1509) libdir = "/usr/lib64/graphviz" Activated plugin library: libgvplugin_pango.so.6 Using textlayout: textlayout:cairo Activated plugin library: libgvplugin_dot_layout.so.6 Using layout: dot:dot_layout Activated plugin library: libgvplugin_core.so.6 Using render: dot:core Using device: dot:dot:core The plugin configuration file: /usr/lib64/graphviz/config6 was successfully loaded. render : cairo dot fig map pic pov ps svg tk vml xdot layout : circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi textlayout : textlayout device : bmp canon cmap cmapx cmapx_np dot eps fig gtk gv ico imap imap_np ismap jpe jpeg jpg pdf pic plain plain-ext png pov ps ps2 svg svgz tif tiff tk vml vmlz x11 xdot xlib loadimage : (lib) eps gif jpe jpeg jpg png ps svg

robertpanzer commented 4 years ago

OK, it looks like your version of Graphviz is too old. According to the changeling the cylinder shape was added in 2.40.0: https://gitlab.com/graphviz/graphviz/blob/master/ChangeLog#L41

myron-randall commented 4 years ago

ok, thank you! I'll see what I can do to get it updated to a newer version.