Permalink
Browse files

add image_block, add margin for text block

  • Loading branch information...
1 parent 5cbcb92 commit bd057910abff8cef15f62d742cf8c0beb9240dfb @schorsch schorsch committed Dec 31, 2012
Showing with 22 additions and 1 deletion.
  1. +1 −1 lib/happypdf/version.rb
  2. +11 −0 schema/v1.0/image_block.json
  3. +10 −0 schema/v1.0/text_block.json
View
@@ -1,5 +1,5 @@
module HappyPdf
class Schema
- VERSION='0.0.2'
+ VERSION='0.0.3'
end
end
@@ -0,0 +1,11 @@
+{
+ "title": "Image Block",
+ "extends": "block",
+ "description":"A single line text block. Multiline text-blocks inherit from this one, see textflow for ref.",
+ "name": "image_block",
+ "type":"object",
+ "properties":{
+
+
+ }
+}
@@ -9,6 +9,16 @@
"description": "Content if no text is supplied by the client.",
"type": "string"
},
+ "margin":{
+ "description": "One or two float values describing horizontal and vertical extensions of a textbox.",
+ "type": "array",
+ "properties":{
+ "type": "number"
+ },
+ "minItems": 1,
+ "maxItems": 2,
+ "default": [0]
+ },
"fillcolor":{
"description": "Text fill color. Defaults to black",
"type": "color",

0 comments on commit bd05791

Please sign in to comment.