From 9907cf572bb79e0c2a02c979ca3dc2aaeeb9b241 Mon Sep 17 00:00:00 2001 From: Carlos Goce Date: Fri, 23 Jan 2015 21:29:21 +0100 Subject: Remove all borders from table --- lib/carlosgoce/layout/layouts.rb | 3 +- spec/output/simple.pdf | 296 +-------------------------------------- 2 files changed, 6 insertions(+), 293 deletions(-) diff --git a/lib/carlosgoce/layout/layouts.rb b/lib/carlosgoce/layout/layouts.rb index f9594ca..2382573 100644 --- a/lib/carlosgoce/layout/layouts.rb +++ b/lib/carlosgoce/layout/layouts.rb @@ -21,7 +21,8 @@ module CarlosGoce table( tables.each_slice(3).to_a, - :cell_style => {:align => :center, :padding => [5, 5, 5, 5]} + cell_style: {align: :center, padding: [5, 5, 5, 5], + border_width: 0} ) end end diff --git a/spec/output/simple.pdf b/spec/output/simple.pdf index febcdf1..ec14a63 100644 --- a/spec/output/simple.pdf +++ b/spec/output/simple.pdf @@ -17,37 +17,13 @@ endobj >> endobj 4 0 obj -<< /Length 36355 +<< /Length 32915 >> stream q 1 w /DeviceRGB CS 0.000 0.000 0.000 SCN -36.000 756.000 m -186.049 756.000 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -36.000 637.448 m -186.049 637.448 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -36.000 756.500 m -36.000 636.948 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -186.049 756.500 m -186.049 636.948 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN 1 w 0.000 0.000 0.000 SCN @@ -336,30 +312,6 @@ BT [<3331>] TJ ET -1 w -0.000 0.000 0.000 SCN -186.049 756.000 m -343.875 756.000 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -186.049 637.448 m -343.875 637.448 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -186.049 756.500 m -186.049 636.948 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -343.875 756.500 m -343.875 636.948 l -S -[ ] 0 d 1 w 0.000 0.000 0.000 SCN 1 w @@ -623,30 +575,6 @@ BT [<3238>] TJ ET -1 w -0.000 0.000 0.000 SCN -343.875 756.000 m -503.647 756.000 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -343.875 637.448 m -503.647 637.448 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -343.875 756.500 m -343.875 636.948 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -503.647 756.500 m -503.647 636.948 l -S -[ ] 0 d 1 w 0.000 0.000 0.000 SCN 1 w @@ -937,30 +865,6 @@ BT [<3331>] TJ ET -1 w -0.000 0.000 0.000 SCN -36.000 637.448 m -186.049 637.448 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -36.000 518.896 m -186.049 518.896 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -36.000 637.948 m -36.000 518.396 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -186.049 637.948 m -186.049 518.396 l -S -[ ] 0 d 1 w 0.000 0.000 0.000 SCN 1 w @@ -1242,30 +1146,6 @@ BT [<3330>] TJ ET -1 w -0.000 0.000 0.000 SCN -186.049 637.448 m -343.875 637.448 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -186.049 518.896 m -343.875 518.896 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -186.049 637.948 m -186.049 518.396 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -343.875 637.948 m -343.875 518.396 l -S -[ ] 0 d 1 w 0.000 0.000 0.000 SCN 1 w @@ -1556,30 +1436,6 @@ BT [<3331>] TJ ET -1 w -0.000 0.000 0.000 SCN -343.875 637.448 m -503.647 637.448 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -343.875 518.896 m -503.647 518.896 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -343.875 637.948 m -343.875 518.396 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -503.647 637.948 m -503.647 518.396 l -S -[ ] 0 d 1 w 0.000 0.000 0.000 SCN 1 w @@ -1861,30 +1717,6 @@ BT [<3330>] TJ ET -1 w -0.000 0.000 0.000 SCN -36.000 518.896 m -186.049 518.896 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -36.000 400.344 m -186.049 400.344 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -36.000 519.396 m -36.000 399.844 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -186.049 519.396 m -186.049 399.844 l -S -[ ] 0 d 1 w 0.000 0.000 0.000 SCN 1 w @@ -2175,30 +2007,6 @@ BT [<3331>] TJ ET -1 w -0.000 0.000 0.000 SCN -186.049 518.896 m -343.875 518.896 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -186.049 400.344 m -343.875 400.344 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -186.049 519.396 m -186.049 399.844 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -343.875 519.396 m -343.875 399.844 l -S -[ ] 0 d 1 w 0.000 0.000 0.000 SCN 1 w @@ -2489,30 +2297,6 @@ BT [<3331>] TJ ET -1 w -0.000 0.000 0.000 SCN -343.875 518.896 m -503.647 518.896 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -343.875 400.344 m -503.647 400.344 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -343.875 519.396 m -343.875 399.844 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -503.647 519.396 m -503.647 399.844 l -S -[ ] 0 d 1 w 0.000 0.000 0.000 SCN 1 w @@ -2794,30 +2578,6 @@ BT [<3330>] TJ ET -1 w -0.000 0.000 0.000 SCN -36.000 400.344 m -186.049 400.344 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -36.000 281.792 m -186.049 281.792 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -36.000 400.844 m -36.000 281.292 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -186.049 400.844 m -186.049 281.292 l -S -[ ] 0 d 1 w 0.000 0.000 0.000 SCN 1 w @@ -3108,30 +2868,6 @@ BT [<3331>] TJ ET -1 w -0.000 0.000 0.000 SCN -186.049 400.344 m -343.875 400.344 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -186.049 281.792 m -343.875 281.792 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -186.049 400.844 m -186.049 281.292 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -343.875 400.844 m -343.875 281.292 l -S -[ ] 0 d 1 w 0.000 0.000 0.000 SCN 1 w @@ -3413,30 +3149,6 @@ BT [<3330>] TJ ET -1 w -0.000 0.000 0.000 SCN -343.875 400.344 m -503.647 400.344 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -343.875 281.792 m -503.647 281.792 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -343.875 400.844 m -343.875 281.292 l -S -[ ] 0 d -1 w -0.000 0.000 0.000 SCN -503.647 400.844 m -503.647 281.292 l -S -[ ] 0 d 1 w 0.000 0.000 0.000 SCN 1 w @@ -3756,13 +3468,13 @@ xref 0000000109 00000 n 0000000158 00000 n 0000000215 00000 n -0000036623 00000 n -0000036801 00000 n +0000033183 00000 n +0000033361 00000 n trailer << /Size 7 /Root 2 0 R /Info 1 0 R >> startxref -36898 +33458 %%EOF -- cgit v1.2.3