diff --git a/README.md b/README.md index 93da398d..1b13710b 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ always when a new page appear, in this case, a header may have many rows, lines * With `go get`: ```bash -go get github.com/johnfercher/maroto/v2/pkg@v2.0.0-alpha.39 +go get github.com/johnfercher/maroto/v2/pkg@v2.0.0-alpha.40 ``` diff --git a/docs/README.md b/docs/README.md index 46d32090..f13eef96 100644 --- a/docs/README.md +++ b/docs/README.md @@ -2,12 +2,12 @@ [![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go#template-engines) [![Branch](https://img.shields.io/badge/V2-Branch-pink)](https://github.com/johnfercher/maroto/tree/v2) [![Roadmap](https://img.shields.io/badge/V2-Roadmap-purple)](https://github.com/users/johnfercher/projects/1) [![Discussion](https://img.shields.io/badge/V2-Discussion-blue)](https://github.com/johnfercher/maroto/issues/257) [![Release Notes](https://img.shields.io/badge/Release-Notes-cyan)](https://github.com/johnfercher/maroto/releases) [![Visits Badge](https://badges.pufler.dev/visits/johnfercher/maroto)](https://badges.pufler.dev) -#### Maroto`v2.0.0-alpha.39`is here! Try out: +#### Maroto`v2.0.0-alpha.40`is here! Try out: * Installation with`go get`: ```bash -go get github.com/johnfercher/maroto/v2/pkg@v2.0.0-alpha.39 +go get github.com/johnfercher/maroto/v2/pkg@v2.0.0-alpha.40 ``` The public API was completely redesigned with the aim of enhancing the diff --git a/maroto.go b/maroto.go index 8f44dc81..d0cd5f5f 100644 --- a/maroto.go +++ b/maroto.go @@ -134,7 +134,8 @@ func (m *maroto) GetStructure() *node.Node[core.Structure] { m.fillPageToAddNew() str := core.Structure{ - Type: "maroto", + Type: "maroto", + Details: m.config.ToMap(), } node := node.New(str) diff --git a/pkg/components/col/col_test.go b/pkg/components/col/col_test.go index a3658854..a6fe59fd 100644 --- a/pkg/components/col/col_test.go +++ b/pkg/components/col/col_test.go @@ -22,7 +22,7 @@ func TestNew(t *testing.T) { // Assert test.New(t).Assert(c.GetStructure()).Equals("components/cols/new_zero_size.json") }) - t.Run("when size is defined, should use not use max", func(t *testing.T) { + t.Run("when size is defined, should not use max", func(t *testing.T) { // Act c := col.New(12) @@ -36,6 +36,14 @@ func TestNew(t *testing.T) { // Assert test.New(t).Assert(c.GetStructure()).Equals("components/cols/new_with_components.json") }) + t.Run("when has component, should retrieve components", func(t *testing.T) { + // Act + prop := fixture.CellProp() + c := col.New(12).WithStyle(&prop) + + // Assert + test.New(t).Assert(c.GetStructure()).Equals("components/cols/new_with_props.json") + }) } func TestCol_GetSize(t *testing.T) { @@ -63,7 +71,30 @@ func TestCol_GetSize(t *testing.T) { } func TestCol_Render(t *testing.T) { - t.Run("should call provider correctly", func(t *testing.T) { + t.Run("when not createCell, should call provider correctly", func(t *testing.T) { + // Arrange + cfg := &entity.Config{} + cell := fixture.CellEntity() + style := &props.Cell{} + + provider := &mocks.Provider{} + + component := &mocks.Component{} + component.EXPECT().Render(provider, &cell) + component.EXPECT().SetConfig(cfg) + + sut := col.New(12).Add(component) + sut.WithStyle(style) + sut.SetConfig(cfg) + + // Act + sut.Render(provider, cell, false) + + // Assert + component.AssertNumberOfCalls(t, "Render", 1) + component.AssertNumberOfCalls(t, "SetConfig", 1) + }) + t.Run("when createCell, should call provider correctly", func(t *testing.T) { // Arrange cfg := &entity.Config{} cell := fixture.CellEntity() diff --git a/pkg/components/list/list_test.go b/pkg/components/list/list_test.go new file mode 100644 index 00000000..b18c9f02 --- /dev/null +++ b/pkg/components/list/list_test.go @@ -0,0 +1,129 @@ +package list_test + +import ( + "fmt" + "testing" + + "github.com/johnfercher/maroto/v2/internal/fixture" + "github.com/johnfercher/maroto/v2/pkg/components/list" + "github.com/johnfercher/maroto/v2/pkg/components/page" + "github.com/johnfercher/maroto/v2/pkg/components/row" + "github.com/johnfercher/maroto/v2/pkg/components/text" + "github.com/johnfercher/maroto/v2/pkg/core" + "github.com/johnfercher/maroto/v2/pkg/test" + "github.com/stretchr/testify/assert" +) + +type anyType struct { + Key string + Value string +} + +func (a anyType) GetHeader() core.Row { + r := row.New(10).Add( + text.NewCol(6, "Key"), + text.NewCol(6, "Value"), + ) + + return r +} + +func (a anyType) GetContent(i int) core.Row { + r := row.New(10).Add( + text.NewCol(6, a.Key), + text.NewCol(6, a.Value), + ) + + if i%2 == 0 { + cell := fixture.CellProp() + r.WithStyle(&cell) + } + + return r +} + +func TestBuild(t *testing.T) { + t.Run("when arr is empty, should return error", func(t *testing.T) { + // Act + r, err := list.Build[anyType](nil) + + // Assert + assert.NotNil(t, err) + assert.Nil(t, r) + }) + t.Run("when arr is not empty, should return rows", func(t *testing.T) { + // Arrange + arr := buildList(10) + + // Act + r, err := list.Build(arr) + p := page.New().Add(r...) + + // Assert + assert.Nil(t, err) + test.New(t).Assert(p.GetStructure()).Equals("components/list/build.json") + }) +} + +func TestBuildFromPointer(t *testing.T) { + t.Run("when arr is empty, should return error", func(t *testing.T) { + // Arrange + arr := buildPointerList(0) + + // Act + r, err := list.BuildFromPointer(arr) + + // Assert + assert.NotNil(t, err) + assert.Nil(t, r) + }) + t.Run("when arr is not empty, should return rows", func(t *testing.T) { + // Arrange + arr := buildPointerList(10) + + // Act + r, _ := list.BuildFromPointer(arr) + p := page.New().Add(r...) + + // Assert + test.New(t).Assert(p.GetStructure()).Equals("components/list/build_from_pointer.json") + }) + t.Run("when arr is has a nil element, should return error", func(t *testing.T) { + // Arrange + arr := buildPointerList(10) + arr[5] = nil + + // Act + r, err := list.BuildFromPointer(arr) + + // Assert + assert.NotNil(t, err) + assert.Nil(t, r) + }) +} + +func buildList(qtd int) []anyType { + var arr []anyType + + for i := 0; i < qtd; i++ { + arr = append(arr, anyType{ + Key: fmt.Sprintf("key(%d)", i), + Value: fmt.Sprintf("value(%d)", i), + }) + } + + return arr +} + +func buildPointerList(qtd int) []*anyType { + var arr []*anyType + + for i := 0; i < qtd; i++ { + arr = append(arr, &anyType{ + Key: fmt.Sprintf("key(%d)", i), + Value: fmt.Sprintf("value(%d)", i), + }) + } + + return arr +} diff --git a/pkg/components/row/row_test.go b/pkg/components/row/row_test.go index 7c9fdc13..f5dd7a3e 100644 --- a/pkg/components/row/row_test.go +++ b/pkg/components/row/row_test.go @@ -1,18 +1,116 @@ package row_test import ( - "fmt" "testing" + "github.com/johnfercher/maroto/v2/internal/fixture" + "github.com/johnfercher/maroto/v2/mocks" + "github.com/johnfercher/maroto/v2/pkg/components/col" "github.com/johnfercher/maroto/v2/pkg/components/row" + "github.com/johnfercher/maroto/v2/pkg/core/entity" + "github.com/johnfercher/maroto/v2/pkg/test" "github.com/stretchr/testify/assert" ) func TestNew(t *testing.T) { - // Act - sut := row.New(10) + t.Run("when there is no cols", func(t *testing.T) { + // Act + r := row.New(10) - // Assert - assert.NotNil(t, sut) - assert.Equal(t, "*row.row", fmt.Sprintf("%T", sut)) + // Assert + test.New(t).Assert(r.GetStructure()).Equals("components/rows/new_empty_col.json") + }) + t.Run("when has component, should retrieve components", func(t *testing.T) { + // Act + r := row.New(12).Add(col.New(12)) + + // Assert + test.New(t).Assert(r.GetStructure()).Equals("components/rows/new_filled_col.json") + }) + t.Run("when has prop, should apply correctly", func(t *testing.T) { + // Act + prop := fixture.CellProp() + r := row.New(12).WithStyle(&prop) + + // Assert + test.New(t).Assert(r.GetStructure()).Equals("components/rows/new_col_with_prop.json") + }) +} + +func TestRow_GetHeight(t *testing.T) { + t.Run("should return height correctly", func(t *testing.T) { + // Act + r := row.New(10) + + // Assert + assert.Equal(t, 10.0, r.GetHeight()) + }) +} + +func TestRow_GetStructure(t *testing.T) { + t.Run("when there is no style, should call provider correctly", func(t *testing.T) { + // Arrange + cfg := &entity.Config{ + MaxGridSize: 12, + } + cell := fixture.CellEntity() + + provider := &mocks.Provider{} + provider.EXPECT().CreateRow(cell.Height) + + col := &mocks.Col{} + col.EXPECT().Render(provider, cell, true) + col.EXPECT().SetConfig(cfg) + col.EXPECT().GetSize().Return(12) + + sut := row.New(cell.Height).Add(col) + sut.SetConfig(cfg) + + // Act + sut.Render(provider, cell) + + // Assert + provider.AssertNumberOfCalls(t, "CreateRow", 1) + col.AssertNumberOfCalls(t, "Render", 1) + col.AssertNumberOfCalls(t, "SetConfig", 1) + }) + t.Run("when there is style, should call provider correctly", func(t *testing.T) { + // Arrange + cfg := &entity.Config{ + MaxGridSize: 12, + } + cell := fixture.CellEntity() + prop := fixture.CellProp() + + provider := &mocks.Provider{} + provider.EXPECT().CreateRow(cell.Height) + provider.EXPECT().CreateCol(cell.Width, cell.Height, cfg, &prop) + + col := &mocks.Col{} + col.EXPECT().Render(provider, cell, false) + col.EXPECT().SetConfig(cfg) + col.EXPECT().GetSize().Return(12) + + sut := row.New(cell.Height).Add(col).WithStyle(&prop) + sut.SetConfig(cfg) + + // Act + sut.Render(provider, cell) + + // Assert + provider.AssertNumberOfCalls(t, "CreateCol", 1) + provider.AssertNumberOfCalls(t, "CreateRow", 1) + col.AssertNumberOfCalls(t, "Render", 1) + col.AssertNumberOfCalls(t, "SetConfig", 1) + }) +} + +func TestRow_SetConfig(t *testing.T) { + t.Run("should call correctly", func(t *testing.T) { + // Arrange + sut := row.New(10) + + // Act + sut.SetConfig(nil) + }) } diff --git a/pkg/config/builder.go b/pkg/config/builder.go index b45179cc..a026d9b3 100644 --- a/pkg/config/builder.go +++ b/pkg/config/builder.go @@ -273,7 +273,7 @@ func (b *builder) WithCreationDate(time time.Time) Builder { return b } - b.metadata.CreationDate = time + b.metadata.CreationDate = &time return b } diff --git a/pkg/core/entity/config.go b/pkg/core/entity/config.go index dba84e97..3660c37a 100644 --- a/pkg/core/entity/config.go +++ b/pkg/core/entity/config.go @@ -21,3 +21,61 @@ type Config struct { Metadata *Metadata BackgroundImage *Image } + +func (c *Config) ToMap() map[string]interface{} { + m := make(map[string]interface{}) + + if c.ProviderType != "" { + m["config_provider_type"] = c.ProviderType + } + + if c.Dimensions != nil { + m = c.Dimensions.AppendMap(m) + } + + if c.Margins != nil { + m = c.Margins.AppendMap(m) + } + + if c.DefaultFont != nil { + m = c.DefaultFont.AppendMap(m) + } + + if c.Workers != 0 { + m["config_workers"] = c.Workers + } + + if c.Debug { + m["config_debug"] = c.Debug + } + + if c.MaxGridSize != 0 { + m["config_max_grid_sum"] = c.MaxGridSize + } + + if c.PageNumberPattern != "" { + m["config_page_number_pattern"] = c.PageNumberPattern + } + + if c.PageNumberPlace != "" { + m["config_page_number_place"] = c.PageNumberPlace + } + + if c.Protection != nil { + m = c.Protection.AppendMap(m) + } + + if c.Compression { + m["config_compression"] = c.Compression + } + + if c.Metadata != nil { + m = c.Metadata.AppendMap(m) + } + + if c.BackgroundImage != nil { + m = c.BackgroundImage.AppendMap(m) + } + + return m +} diff --git a/pkg/core/entity/dimensions.go b/pkg/core/entity/dimensions.go index d040e5c0..9f66bd50 100644 --- a/pkg/core/entity/dimensions.go +++ b/pkg/core/entity/dimensions.go @@ -4,3 +4,15 @@ type Dimensions struct { Width float64 Height float64 } + +func (d *Dimensions) AppendMap(m map[string]interface{}) map[string]interface{} { + if d.Width != 0 { + m["dimension_width"] = d.Width + } + + if d.Height != 0 { + m["dimension_height"] = d.Height + } + + return m +} diff --git a/pkg/core/entity/image.go b/pkg/core/entity/image.go index 912bcc6b..ab83bed2 100644 --- a/pkg/core/entity/image.go +++ b/pkg/core/entity/image.go @@ -1,9 +1,36 @@ package entity -import "github.com/johnfercher/maroto/v2/pkg/consts/extension" +import ( + "fmt" + + "github.com/johnfercher/maroto/v2/pkg/consts/extension" +) + +const trimSize = 10 type Image struct { Bytes []byte Extension extension.Type Dimensions *Dimensions } + +func (i *Image) AppendMap(m map[string]interface{}) map[string]interface{} { + lenBytes := len(i.Bytes) + if lenBytes != 0 { + trimSize := trimSize + if lenBytes < trimSize { + trimSize = lenBytes + } + m["entity_image_bytes"] = fmt.Sprintf("%v", i.Bytes[:trimSize]) + } + + if i.Extension != "" { + m["entity_extension"] = i.Extension + } + + if i.Dimensions != nil { + m = i.Dimensions.AppendMap(m) + } + + return m +} diff --git a/pkg/core/entity/margins.go b/pkg/core/entity/margins.go index 12fbfc6f..ddbcc2f6 100644 --- a/pkg/core/entity/margins.go +++ b/pkg/core/entity/margins.go @@ -6,3 +6,23 @@ type Margins struct { Top float64 Bottom float64 } + +func (m *Margins) AppendMap(mp map[string]interface{}) map[string]interface{} { + if m.Left != 0 { + mp["config_margin_left"] = m.Left + } + + if m.Top != 0 { + mp["config_margin_top"] = m.Top + } + + if m.Right != 0 { + mp["config_margin_right"] = m.Right + } + + if m.Bottom != 0 { + mp["config_margin_bottom"] = m.Bottom + } + + return mp +} diff --git a/pkg/core/entity/metadata.go b/pkg/core/entity/metadata.go index 48154637..7ffd89fa 100644 --- a/pkg/core/entity/metadata.go +++ b/pkg/core/entity/metadata.go @@ -1,16 +1,47 @@ package entity -import "time" +import ( + "fmt" + "time" +) type Metadata struct { Author *Utf8Text Creator *Utf8Text Subject *Utf8Text Title *Utf8Text - CreationDate time.Time + CreationDate *time.Time +} + +func (m *Metadata) AppendMap(mp map[string]interface{}) map[string]interface{} { + if m.Author != nil { + mp["config_metadata_author"] = m.Author.ToString() + } + + if m.Creator != nil { + mp["config_metadata_creator"] = m.Creator.ToString() + } + + if m.Subject != nil { + mp["config_metadata_subject"] = m.Subject.ToString() + } + + if m.Title != nil { + mp["config_metadata_title"] = m.Title.ToString() + } + + if m.CreationDate != nil { + mp["config_metadata_creation_date"] = true + } + + return mp } type Utf8Text struct { Text string UTF8 bool } + +func (u *Utf8Text) ToString() string { + return fmt.Sprintf("Utf8Text(%s, %v)", u.Text, u.UTF8) +} diff --git a/pkg/core/entity/protection.go b/pkg/core/entity/protection.go index 1fa9d83a..c10ca003 100644 --- a/pkg/core/entity/protection.go +++ b/pkg/core/entity/protection.go @@ -1,9 +1,27 @@ package entity -import "github.com/johnfercher/maroto/v2/pkg/consts/protection" +import ( + "github.com/johnfercher/maroto/v2/pkg/consts/protection" +) type Protection struct { Type protection.Type UserPassword string OwnerPassword string } + +func (p *Protection) AppendMap(m map[string]interface{}) map[string]interface{} { + if p.Type != 0 { + m["config_protection_type"] = p.Type + } + + if p.UserPassword != "" { + m["config_user_password"] = p.UserPassword + } + + if p.OwnerPassword != "" { + m["config_owner_password"] = p.OwnerPassword + } + + return m +} diff --git a/pkg/props/cell.go b/pkg/props/cell.go index 1fd37680..c38c689c 100644 --- a/pkg/props/cell.go +++ b/pkg/props/cell.go @@ -21,23 +21,23 @@ func (c *Cell) ToMap() map[string]interface{} { m := make(map[string]interface{}) if c.BorderType != "" { - m["cell_prop_border_type"] = c.BorderType + m["prop_border_type"] = c.BorderType } if c.BorderThickness != 0 { - m["cell_prop_border_thickness"] = c.BorderThickness + m["prop_border_thickness"] = c.BorderThickness } if c.LineStyle != "" { - m["cell_prop_border_line_style"] = c.LineStyle + m["prop_border_line_style"] = c.LineStyle } if c.BackgroundColor != nil { - m["cell_prop_backgrond_color"] = c.BackgroundColor.ToString() + m["prop_background_color"] = c.BackgroundColor.ToString() } if c.BorderColor != nil { - m["cell_prop_border_color"] = c.BorderColor.ToString() + m["prop_border_color"] = c.BorderColor.ToString() } return m diff --git a/pkg/props/font.go b/pkg/props/font.go index 264492ac..739f8aa9 100644 --- a/pkg/props/font.go +++ b/pkg/props/font.go @@ -17,6 +17,26 @@ type Font struct { Color *Color } +func (f *Font) AppendMap(m map[string]interface{}) map[string]interface{} { + if f.Family != "" { + m["prop_font_family"] = f.Family + } + + if f.Style != "" { + m["prop_font_style"] = f.Style + } + + if f.Size != 0 { + m["prop_font_size"] = f.Size + } + + if f.Color != nil { + m["prop_font_color"] = f.Color.ToString() + } + + return m +} + // MakeValid from Font define default values for a Signature. func (f *Font) MakeValid(defaultFamily string) { if f.Family == "" { diff --git a/pkg/providers/gofpdf/gofpdf.go b/pkg/providers/gofpdf/gofpdf.go index eac00a4a..bf05bdec 100644 --- a/pkg/providers/gofpdf/gofpdf.go +++ b/pkg/providers/gofpdf/gofpdf.go @@ -232,7 +232,7 @@ func (g *gofpdfProvider) SetMetadata(metadata *entity.Metadata) { } if !metadata.CreationDate.IsZero() { - g.fpdf.SetCreationDate(metadata.CreationDate) + g.fpdf.SetCreationDate(*metadata.CreationDate) } } diff --git a/test/maroto/components/cols/new_with_props.json b/test/maroto/components/cols/new_with_props.json new file mode 100755 index 00000000..d57ddb4c --- /dev/null +++ b/test/maroto/components/cols/new_with_props.json @@ -0,0 +1,11 @@ +{ + "value": 12, + "type": "col", + "details": { + "prop_background_color": "RGB(255, 100, 50)", + "prop_border_color": "RGB(200, 80, 60)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.6, + "prop_border_type": "L" + } +} \ No newline at end of file diff --git a/test/maroto/components/list/build.json b/test/maroto/components/list/build.json new file mode 100755 index 00000000..43cb567d --- /dev/null +++ b/test/maroto/components/list/build.json @@ -0,0 +1,326 @@ +{ + "type": "page", + "nodes": [ + { + "value": 10, + "type": "row", + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "Key", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "Value", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "details": { + "prop_background_color": "RGB(255, 100, 50)", + "prop_border_color": "RGB(200, 80, 60)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.6, + "prop_border_type": "L" + }, + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(0)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(0)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(1)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(1)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "details": { + "prop_background_color": "RGB(255, 100, 50)", + "prop_border_color": "RGB(200, 80, 60)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.6, + "prop_border_type": "L" + }, + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(2)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(2)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(3)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(3)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "details": { + "prop_background_color": "RGB(255, 100, 50)", + "prop_border_color": "RGB(200, 80, 60)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.6, + "prop_border_type": "L" + }, + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(4)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(4)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(5)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(5)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "details": { + "prop_background_color": "RGB(255, 100, 50)", + "prop_border_color": "RGB(200, 80, 60)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.6, + "prop_border_type": "L" + }, + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(6)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(6)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(7)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(7)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "details": { + "prop_background_color": "RGB(255, 100, 50)", + "prop_border_color": "RGB(200, 80, 60)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.6, + "prop_border_type": "L" + }, + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(8)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(8)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(9)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(9)", + "type": "text" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/maroto/components/list/build_from_pointer.json b/test/maroto/components/list/build_from_pointer.json new file mode 100755 index 00000000..43cb567d --- /dev/null +++ b/test/maroto/components/list/build_from_pointer.json @@ -0,0 +1,326 @@ +{ + "type": "page", + "nodes": [ + { + "value": 10, + "type": "row", + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "Key", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "Value", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "details": { + "prop_background_color": "RGB(255, 100, 50)", + "prop_border_color": "RGB(200, 80, 60)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.6, + "prop_border_type": "L" + }, + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(0)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(0)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(1)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(1)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "details": { + "prop_background_color": "RGB(255, 100, 50)", + "prop_border_color": "RGB(200, 80, 60)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.6, + "prop_border_type": "L" + }, + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(2)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(2)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(3)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(3)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "details": { + "prop_background_color": "RGB(255, 100, 50)", + "prop_border_color": "RGB(200, 80, 60)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.6, + "prop_border_type": "L" + }, + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(4)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(4)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(5)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(5)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "details": { + "prop_background_color": "RGB(255, 100, 50)", + "prop_border_color": "RGB(200, 80, 60)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.6, + "prop_border_type": "L" + }, + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(6)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(6)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(7)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(7)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "details": { + "prop_background_color": "RGB(255, 100, 50)", + "prop_border_color": "RGB(200, 80, 60)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.6, + "prop_border_type": "L" + }, + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(8)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(8)", + "type": "text" + } + ] + } + ] + }, + { + "value": 10, + "type": "row", + "nodes": [ + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "key(9)", + "type": "text" + } + ] + }, + { + "value": 6, + "type": "col", + "nodes": [ + { + "value": "value(9)", + "type": "text" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/test/maroto/components/rows/new_col_with_prop.json b/test/maroto/components/rows/new_col_with_prop.json new file mode 100755 index 00000000..3b1f2cbb --- /dev/null +++ b/test/maroto/components/rows/new_col_with_prop.json @@ -0,0 +1,11 @@ +{ + "value": 12, + "type": "row", + "details": { + "prop_background_color": "RGB(255, 100, 50)", + "prop_border_color": "RGB(200, 80, 60)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.6, + "prop_border_type": "L" + } +} \ No newline at end of file diff --git a/test/maroto/components/rows/new_empty_col.json b/test/maroto/components/rows/new_empty_col.json new file mode 100755 index 00000000..62133048 --- /dev/null +++ b/test/maroto/components/rows/new_empty_col.json @@ -0,0 +1,4 @@ +{ + "value": 10, + "type": "row" +} \ No newline at end of file diff --git a/test/maroto/components/rows/new_filled_col.json b/test/maroto/components/rows/new_filled_col.json new file mode 100755 index 00000000..cfa9e846 --- /dev/null +++ b/test/maroto/components/rows/new_filled_col.json @@ -0,0 +1,10 @@ +{ + "value": 12, + "type": "row", + "nodes": [ + { + "value": 12, + "type": "col" + } + ] +} \ No newline at end of file diff --git a/test/maroto/example_unit_test.json b/test/maroto/example_unit_test.json index 26560a7e..2a7ffb30 100755 --- a/test/maroto/example_unit_test.json +++ b/test/maroto/example_unit_test.json @@ -1,5 +1,18 @@ { "type": "maroto", + "details": { + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/addpage.json b/test/maroto/examples/addpage.json index 042e7b3a..6405fdb0 100755 --- a/test/maroto/examples/addpage.json +++ b/test/maroto/examples/addpage.json @@ -1,5 +1,21 @@ { "type": "maroto", + "details": { + "config_debug": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_page_number_pattern": "{current} / {total}", + "config_page_number_place": "south", + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/background.json b/test/maroto/examples/background.json index 0aa9d70d..54747e9f 100755 --- a/test/maroto/examples/background.json +++ b/test/maroto/examples/background.json @@ -1,5 +1,17 @@ { "type": "maroto", + "details": { + "config_margin_bottom": 20.0025, + "config_max_grid_sum": 20, + "config_provider_type": "gofpdf", + "dimension_height": 210, + "dimension_width": 297, + "entity_extension": "png", + "entity_image_bytes": "[137 80 78 71 13 10 26 10 0 0]", + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/barcodegrid.json b/test/maroto/examples/barcodegrid.json index b8c1c21e..66c15671 100755 --- a/test/maroto/examples/barcodegrid.json +++ b/test/maroto/examples/barcodegrid.json @@ -1,5 +1,19 @@ { "type": "maroto", + "details": { + "config_debug": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/billing.json b/test/maroto/examples/billing.json index 33e21a39..1f0b2b6c 100755 --- a/test/maroto/examples/billing.json +++ b/test/maroto/examples/billing.json @@ -1,5 +1,20 @@ { "type": "maroto", + "details": { + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 15, + "config_max_grid_sum": 12, + "config_page_number_pattern": "Page {current} of {total}", + "config_page_number_place": "south_east", + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", @@ -93,7 +108,7 @@ "value": 7, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(55, 55, 55)" + "prop_background_color": "RGB(55, 55, 55)" }, "nodes": [ { @@ -174,7 +189,7 @@ "value": 4, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -281,7 +296,7 @@ "value": 4, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -388,7 +403,7 @@ "value": 4, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -495,7 +510,7 @@ "value": 4, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -602,7 +617,7 @@ "value": 4, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -709,7 +724,7 @@ "value": 4, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -816,7 +831,7 @@ "value": 4, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -923,7 +938,7 @@ "value": 4, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1030,7 +1045,7 @@ "value": 4, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1137,7 +1152,7 @@ "value": 4, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1244,7 +1259,7 @@ "value": 4, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1351,7 +1366,7 @@ "value": 4, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1458,7 +1473,7 @@ "value": 4, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1565,7 +1580,7 @@ "value": 4, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { diff --git a/test/maroto/examples/cellstyle.json b/test/maroto/examples/cellstyle.json index b0c61f9c..c288b660 100755 --- a/test/maroto/examples/cellstyle.json +++ b/test/maroto/examples/cellstyle.json @@ -1,5 +1,18 @@ { "type": "maroto", + "details": { + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", @@ -12,11 +25,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -36,11 +49,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -60,11 +73,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -90,8 +103,8 @@ "value": 10, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(220, 220, 220)", - "cell_prop_border_color": "RGB(0, 0, 200)" + "prop_background_color": "RGB(220, 220, 220)", + "prop_border_color": "RGB(0, 0, 200)" }, "nodes": [ { @@ -156,11 +169,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -180,11 +193,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -204,11 +217,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -234,9 +247,9 @@ "value": 10, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(220, 220, 220)", - "cell_prop_border_color": "RGB(0, 0, 200)", - "cell_prop_border_type": "1" + "prop_background_color": "RGB(220, 220, 220)", + "prop_border_color": "RGB(0, 0, 200)", + "prop_border_type": "1" }, "nodes": [ { @@ -301,11 +314,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -325,11 +338,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -349,11 +362,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -379,9 +392,9 @@ "value": 10, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(220, 220, 220)", - "cell_prop_border_color": "RGB(0, 0, 200)", - "cell_prop_border_type": "L" + "prop_background_color": "RGB(220, 220, 220)", + "prop_border_color": "RGB(0, 0, 200)", + "prop_border_type": "L" }, "nodes": [ { @@ -446,11 +459,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -470,11 +483,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -494,11 +507,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -524,9 +537,9 @@ "value": 10, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(220, 220, 220)", - "cell_prop_border_color": "RGB(0, 0, 200)", - "cell_prop_border_type": "R" + "prop_background_color": "RGB(220, 220, 220)", + "prop_border_color": "RGB(0, 0, 200)", + "prop_border_type": "R" }, "nodes": [ { @@ -591,11 +604,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -615,11 +628,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -639,11 +652,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -669,9 +682,9 @@ "value": 10, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(220, 220, 220)", - "cell_prop_border_color": "RGB(0, 0, 200)", - "cell_prop_border_type": "T" + "prop_background_color": "RGB(220, 220, 220)", + "prop_border_color": "RGB(0, 0, 200)", + "prop_border_type": "T" }, "nodes": [ { @@ -736,11 +749,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -760,11 +773,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -784,11 +797,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -814,9 +827,9 @@ "value": 10, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(220, 220, 220)", - "cell_prop_border_color": "RGB(0, 0, 200)", - "cell_prop_border_type": "B" + "prop_background_color": "RGB(220, 220, 220)", + "prop_border_color": "RGB(0, 0, 200)", + "prop_border_type": "B" }, "nodes": [ { @@ -881,11 +894,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -905,11 +918,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -929,11 +942,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -974,8 +987,8 @@ "value": 10, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(220, 220, 220)", - "cell_prop_border_color": "RGB(0, 0, 200)" + "prop_background_color": "RGB(220, 220, 220)", + "prop_border_color": "RGB(0, 0, 200)" }, "nodes": [ { @@ -1040,11 +1053,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1064,11 +1077,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1088,11 +1101,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1118,9 +1131,9 @@ "value": 10, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(220, 220, 220)", - "cell_prop_border_color": "RGB(0, 0, 200)", - "cell_prop_border_type": "1" + "prop_background_color": "RGB(220, 220, 220)", + "prop_border_color": "RGB(0, 0, 200)", + "prop_border_type": "1" }, "nodes": [ { @@ -1185,11 +1198,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1209,11 +1222,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1233,11 +1246,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1263,9 +1276,9 @@ "value": 10, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(220, 220, 220)", - "cell_prop_border_color": "RGB(0, 0, 200)", - "cell_prop_border_type": "L" + "prop_background_color": "RGB(220, 220, 220)", + "prop_border_color": "RGB(0, 0, 200)", + "prop_border_type": "L" }, "nodes": [ { @@ -1330,11 +1343,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1354,11 +1367,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1378,11 +1391,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1408,9 +1421,9 @@ "value": 10, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(220, 220, 220)", - "cell_prop_border_color": "RGB(0, 0, 200)", - "cell_prop_border_type": "R" + "prop_background_color": "RGB(220, 220, 220)", + "prop_border_color": "RGB(0, 0, 200)", + "prop_border_type": "R" }, "nodes": [ { @@ -1475,11 +1488,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1499,11 +1512,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1523,11 +1536,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1553,9 +1566,9 @@ "value": 10, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(220, 220, 220)", - "cell_prop_border_color": "RGB(0, 0, 200)", - "cell_prop_border_type": "T" + "prop_background_color": "RGB(220, 220, 220)", + "prop_border_color": "RGB(0, 0, 200)", + "prop_border_type": "T" }, "nodes": [ { @@ -1620,11 +1633,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1644,11 +1657,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1668,11 +1681,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1698,9 +1711,9 @@ "value": 10, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(220, 220, 220)", - "cell_prop_border_color": "RGB(0, 0, 200)", - "cell_prop_border_type": "B" + "prop_background_color": "RGB(220, 220, 220)", + "prop_border_color": "RGB(0, 0, 200)", + "prop_border_type": "B" }, "nodes": [ { @@ -1765,11 +1778,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1789,11 +1802,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1813,11 +1826,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1843,8 +1856,8 @@ "value": 10, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(220, 220, 220)", - "cell_prop_border_color": "RGB(0, 0, 200)" + "prop_background_color": "RGB(220, 220, 220)", + "prop_border_color": "RGB(0, 0, 200)" }, "nodes": [ { @@ -1924,11 +1937,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1948,11 +1961,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -1972,11 +1985,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -2002,9 +2015,9 @@ "value": 10, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(220, 220, 220)", - "cell_prop_border_color": "RGB(0, 0, 200)", - "cell_prop_border_type": "1" + "prop_background_color": "RGB(220, 220, 220)", + "prop_border_color": "RGB(0, 0, 200)", + "prop_border_type": "1" }, "nodes": [ { @@ -2069,11 +2082,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -2093,11 +2106,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -2117,11 +2130,11 @@ "value": 4, "type": "col", "details": { - "cell_prop_backgrond_color": "RGB(80, 80, 80)", - "cell_prop_border_color": "RGB(200, 0, 0)", - "cell_prop_border_line_style": "dashed", - "cell_prop_border_thickness": 0.5, - "cell_prop_border_type": "1" + "prop_background_color": "RGB(80, 80, 80)", + "prop_border_color": "RGB(200, 0, 0)", + "prop_border_line_style": "dashed", + "prop_border_thickness": 0.5, + "prop_border_type": "1" }, "nodes": [ { @@ -2147,9 +2160,9 @@ "value": 10, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(220, 220, 220)", - "cell_prop_border_color": "RGB(0, 0, 200)", - "cell_prop_border_type": "L" + "prop_background_color": "RGB(220, 220, 220)", + "prop_border_color": "RGB(0, 0, 200)", + "prop_border_type": "L" }, "nodes": [ { diff --git a/test/maroto/examples/compression.json b/test/maroto/examples/compression.json index a38fd5ac..7caad530 100755 --- a/test/maroto/examples/compression.json +++ b/test/maroto/examples/compression.json @@ -1,5 +1,19 @@ { "type": "maroto", + "details": { + "config_compression": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/customdimensions.json b/test/maroto/examples/customdimensions.json index e28c60d1..f8f0dc62 100755 --- a/test/maroto/examples/customdimensions.json +++ b/test/maroto/examples/customdimensions.json @@ -1,5 +1,19 @@ { "type": "maroto", + "details": { + "config_debug": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 200, + "dimension_width": 200, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/customfont.json b/test/maroto/examples/customfont.json index 349c0d2a..85f2a2f3 100755 --- a/test/maroto/examples/customfont.json +++ b/test/maroto/examples/customfont.json @@ -1,5 +1,18 @@ { "type": "maroto", + "details": { + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial-unicode-ms", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", @@ -44,7 +57,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -111,7 +124,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -178,7 +191,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -245,7 +258,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -312,7 +325,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -379,7 +392,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -446,7 +459,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -513,7 +526,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -580,7 +593,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -647,7 +660,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -714,7 +727,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -781,7 +794,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -848,7 +861,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -915,7 +928,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -982,7 +995,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1049,7 +1062,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1116,7 +1129,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1183,7 +1196,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1250,7 +1263,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1317,7 +1330,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1384,7 +1397,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1451,7 +1464,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1518,7 +1531,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1585,7 +1598,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1652,7 +1665,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1719,7 +1732,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1801,7 +1814,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1868,7 +1881,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1935,7 +1948,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2002,7 +2015,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2069,7 +2082,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2136,7 +2149,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2203,7 +2216,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2270,7 +2283,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2337,7 +2350,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2404,7 +2417,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2471,7 +2484,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2538,7 +2551,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2605,7 +2618,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2672,7 +2685,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2739,7 +2752,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2806,7 +2819,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2873,7 +2886,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2940,7 +2953,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -3007,7 +3020,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -3074,7 +3087,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -3141,7 +3154,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -3208,7 +3221,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -3275,7 +3288,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -3342,7 +3355,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -3409,7 +3422,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -3476,7 +3489,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -3558,7 +3571,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -3625,7 +3638,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -3692,7 +3705,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { diff --git a/test/maroto/examples/custompage.json b/test/maroto/examples/custompage.json index ca51de31..9f472c1e 100755 --- a/test/maroto/examples/custompage.json +++ b/test/maroto/examples/custompage.json @@ -1,5 +1,19 @@ { "type": "maroto", + "details": { + "config_debug": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 594, + "dimension_width": 419.9, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/datamatrixgrid.json b/test/maroto/examples/datamatrixgrid.json index 57579c13..20ee9316 100755 --- a/test/maroto/examples/datamatrixgrid.json +++ b/test/maroto/examples/datamatrixgrid.json @@ -1,5 +1,19 @@ { "type": "maroto", + "details": { + "config_debug": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/footer.json b/test/maroto/examples/footer.json index 9a60169e..bcd4219e 100755 --- a/test/maroto/examples/footer.json +++ b/test/maroto/examples/footer.json @@ -1,5 +1,19 @@ { "type": "maroto", + "details": { + "config_debug": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/header.json b/test/maroto/examples/header.json index 60ba5a58..ae321e5e 100755 --- a/test/maroto/examples/header.json +++ b/test/maroto/examples/header.json @@ -1,5 +1,19 @@ { "type": "maroto", + "details": { + "config_debug": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/imagegrid.json b/test/maroto/examples/imagegrid.json index 0859506a..5f60961b 100755 --- a/test/maroto/examples/imagegrid.json +++ b/test/maroto/examples/imagegrid.json @@ -1,5 +1,19 @@ { "type": "maroto", + "details": { + "config_debug": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/line.json b/test/maroto/examples/line.json index 43e96237..270ef442 100755 --- a/test/maroto/examples/line.json +++ b/test/maroto/examples/line.json @@ -1,5 +1,19 @@ { "type": "maroto", + "details": { + "config_debug": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/list.json b/test/maroto/examples/list.json index 02730961..37ec8861 100755 --- a/test/maroto/examples/list.json +++ b/test/maroto/examples/list.json @@ -1,5 +1,18 @@ { "type": "maroto", + "details": { + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", @@ -40,7 +53,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -95,7 +108,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -150,7 +163,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -205,7 +218,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -260,7 +273,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -315,7 +328,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -370,7 +383,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -425,7 +438,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -480,7 +493,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -535,7 +548,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -590,7 +603,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -645,7 +658,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -700,7 +713,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -755,7 +768,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -810,7 +823,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -865,7 +878,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -920,7 +933,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -975,7 +988,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1030,7 +1043,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1085,7 +1098,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1140,7 +1153,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1195,7 +1208,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1250,7 +1263,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1305,7 +1318,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1360,7 +1373,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1415,7 +1428,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1485,7 +1498,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1540,7 +1553,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1595,7 +1608,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1650,7 +1663,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1705,7 +1718,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1760,7 +1773,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1815,7 +1828,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1870,7 +1883,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1925,7 +1938,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -1980,7 +1993,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2035,7 +2048,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2090,7 +2103,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2145,7 +2158,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2200,7 +2213,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2255,7 +2268,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2310,7 +2323,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2365,7 +2378,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2420,7 +2433,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2475,7 +2488,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2530,7 +2543,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2585,7 +2598,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2640,7 +2653,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2695,7 +2708,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { @@ -2750,7 +2763,7 @@ "value": 5, "type": "row", "details": { - "cell_prop_backgrond_color": "RGB(200, 200, 200)" + "prop_background_color": "RGB(200, 200, 200)" }, "nodes": [ { diff --git a/test/maroto/examples/margins.json b/test/maroto/examples/margins.json index f37e2c7b..aacdd897 100755 --- a/test/maroto/examples/margins.json +++ b/test/maroto/examples/margins.json @@ -1,5 +1,19 @@ { "type": "maroto", + "details": { + "config_debug": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 20, + "config_margin_right": 20, + "config_margin_top": 20, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/maxgridsum.json b/test/maroto/examples/maxgridsum.json index e5afcdff..d97e94de 100755 --- a/test/maroto/examples/maxgridsum.json +++ b/test/maroto/examples/maxgridsum.json @@ -1,5 +1,19 @@ { "type": "maroto", + "details": { + "config_debug": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 14, + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/mergepdf.json b/test/maroto/examples/mergepdf.json index 74507547..8df6f5da 100755 --- a/test/maroto/examples/mergepdf.json +++ b/test/maroto/examples/mergepdf.json @@ -1,5 +1,20 @@ { "type": "maroto", + "details": { + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_page_number_pattern": "{current} / {total}", + "config_page_number_place": "south_east", + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/metadatas.json b/test/maroto/examples/metadatas.json index 287bf742..aed9ca86 100755 --- a/test/maroto/examples/metadatas.json +++ b/test/maroto/examples/metadatas.json @@ -1,5 +1,23 @@ { "type": "maroto", + "details": { + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_metadata_author": "Utf8Text(author, false)", + "config_metadata_creation_date": true, + "config_metadata_creator": "Utf8Text(creator, false)", + "config_metadata_subject": "Utf8Text(subject, false)", + "config_metadata_title": "Utf8Text(title, false)", + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/orientation.json b/test/maroto/examples/orientation.json index ddf9db68..a591fcd3 100755 --- a/test/maroto/examples/orientation.json +++ b/test/maroto/examples/orientation.json @@ -1,5 +1,19 @@ { "type": "maroto", + "details": { + "config_debug": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 210, + "dimension_width": 297, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/pagenumber.json b/test/maroto/examples/pagenumber.json index 477ec423..513660f8 100755 --- a/test/maroto/examples/pagenumber.json +++ b/test/maroto/examples/pagenumber.json @@ -1,5 +1,21 @@ { "type": "maroto", + "details": { + "config_debug": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_page_number_pattern": "Page {current} of {total}", + "config_page_number_place": "south", + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/parallelism.json b/test/maroto/examples/parallelism.json index a1a38a05..a4542ed9 100755 --- a/test/maroto/examples/parallelism.json +++ b/test/maroto/examples/parallelism.json @@ -1,5 +1,20 @@ { "type": "maroto", + "details": { + "config_debug": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "config_workers": 7, + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/protection.json b/test/maroto/examples/protection.json index 347b0d9d..f4e0b29d 100755 --- a/test/maroto/examples/protection.json +++ b/test/maroto/examples/protection.json @@ -1,5 +1,20 @@ { "type": "maroto", + "details": { + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_owner_password": "owner", + "config_provider_type": "gofpdf", + "config_user_password": "user", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/qrgrid.json b/test/maroto/examples/qrgrid.json index 4aa4a060..e385385e 100755 --- a/test/maroto/examples/qrgrid.json +++ b/test/maroto/examples/qrgrid.json @@ -1,5 +1,19 @@ { "type": "maroto", + "details": { + "config_debug": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/signaturegrid.json b/test/maroto/examples/signaturegrid.json index 4b4f7608..91e2a9d0 100755 --- a/test/maroto/examples/signaturegrid.json +++ b/test/maroto/examples/signaturegrid.json @@ -1,5 +1,19 @@ { "type": "maroto", + "details": { + "config_debug": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/simplest.json b/test/maroto/examples/simplest.json index 6cf1af79..b1d48d85 100755 --- a/test/maroto/examples/simplest.json +++ b/test/maroto/examples/simplest.json @@ -1,5 +1,18 @@ { "type": "maroto", + "details": { + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page", diff --git a/test/maroto/examples/textgrid.json b/test/maroto/examples/textgrid.json index db2e4218..4eb31d0e 100755 --- a/test/maroto/examples/textgrid.json +++ b/test/maroto/examples/textgrid.json @@ -1,5 +1,19 @@ { "type": "maroto", + "details": { + "config_debug": true, + "config_margin_bottom": 20.0025, + "config_margin_left": 10, + "config_margin_right": 10, + "config_margin_top": 10, + "config_max_grid_sum": 12, + "config_provider_type": "gofpdf", + "dimension_height": 297, + "dimension_width": 210, + "prop_font_color": "RGB(0, 0, 0)", + "prop_font_family": "arial", + "prop_font_size": 10 + }, "nodes": [ { "type": "page",