prawn-svg 0.9.1 → 0.9.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/README +27 -3
  2. metadata +31 -3
data/README CHANGED
@@ -1,4 +1,4 @@
1
- The very start of an SVG renderer for Prawn.
1
+ An SVG renderer for the Prawn PDF library.
2
2
 
3
3
  This will take an SVG file as input and render it into your PDF. Find out more about the Prawn PDF library at:
4
4
 
@@ -13,5 +13,29 @@ Using prawn-svg:
13
13
  :at must be specified. :width, :height, or neither may be specified; if neither is present,
14
14
  the resolution specified in the SVG will be used.
15
15
 
16
- Note that only a very small subset of SVG is currently supported. It's just enough so that
17
- it renders a simple graph made by Scruffy.
16
+ prawn-svg is in its infancy and does not support the full SVG specifications. It currently supports:
17
+
18
+ - line tag
19
+ - polyline tag
20
+ - polygon tag
21
+ - circle tag
22
+ - ellipse tag (although this seems to be buggy)
23
+
24
+ - rect tag
25
+ supports rounded rects, but only one radius is applied to all corners
26
+
27
+ - path tag
28
+ supports moveto, closepath, lineto, horiz lineto, vert lineto, curveto, smooth curveto, quad curveto, smooth quad curveto
29
+ does not support elliptical arc
30
+
31
+ - text tag
32
+ attributes: size, text-anchor
33
+ partially supported attributes: font-family
34
+
35
+ - attributes/styles: fill, stroke, stroke-width, opacity, fill-opacity, stroke-opacity, transform
36
+
37
+ - transform methods: translate, rotate, scale
38
+
39
+ - colors: html standard names, #xxx, #xxxxxx, rgb(1, 2, 3), rgb(1%, 2%, 3%)
40
+
41
+ prawn-svg does NOT support CSS classes, named elements, anything in the defs tag, the tspan tag, gradients/patterns or markers.
metadata CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 9
8
8
  - 1
9
- version: 0.9.1
9
+ - 1
10
+ version: 0.9.1.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Roger Nesbitt
@@ -16,8 +17,35 @@ cert_chain: []
16
17
 
17
18
  date: 2010-03-26 00:00:00 +13:00
18
19
  default_executable:
19
- dependencies: []
20
-
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: prawn
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ - 8
31
+ - 4
32
+ version: 0.8.4
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: prawn-core
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ segments:
43
+ - 0
44
+ - 8
45
+ - 4
46
+ version: 0.8.4
47
+ type: :runtime
48
+ version_requirements: *id002
21
49
  description: SVG renderer for Prawn PDF library
22
50
  email: roger@seriousorange.com
23
51
  executables: []