Explorar o código

Buttons 1mm wider

michel %!s(int64=3) %!d(string=hai) anos
pai
achega
1d7e6336b6
Modificáronse 2 ficheiros con 78 adicións e 88 borrados
  1. 22 32
      ZX-Keyboard/Logic/PdfContentsExtention.cs
  2. 56 56
      ZX-Keyboard/Logic/RenderPdf.cs

+ 22 - 32
ZX-Keyboard/Logic/PdfContentsExtention.cs

@@ -1,14 +1,4 @@
-using Microsoft.VisualBasic;
-using PdfFileWriter;
-using System;
-using System.Collections.Generic;
-using System.Drawing;
-using System.Linq;
-using System.Reflection.Metadata;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-using static System.Windows.Forms.LinkLabel;
+using PdfFileWriter;
 
 namespace ZX_Keyboard.Logic
 {
@@ -29,7 +19,7 @@ namespace ZX_Keyboard.Logic
 
             // Draw graph
             // Outline
-            PdfRectangle GraphRect = new PdfRectangle(left + 6.6, bottom + 6, left + 6.6 + 2, bottom + 6 + 2);
+            PdfRectangle GraphRect = new PdfRectangle(left + 7.6, bottom + 6, left + 7.6 + 2, bottom + 6 + 2);
             PdfDrawCtrl DrawGraphCtrl = new PdfDrawCtrl();
             DrawGraphCtrl.Shape = DrawShape.Rectangle;
             DrawGraphCtrl.Paint = DrawPaint.Border;
@@ -40,7 +30,7 @@ namespace ZX_Keyboard.Logic
             // Top Left
             if ((graph & 0b1000) != 0)
             {
-                PdfRectangle innerRect = new PdfRectangle(left + 6.6, bottom + 7, left + 6.6 + 1, bottom + 7 + 1);
+                PdfRectangle innerRect = new PdfRectangle(left + 7.6, bottom + 7, left + 7.6 + 1, bottom + 7 + 1);
                 PdfDrawCtrl DrawInnerCtrl = new PdfDrawCtrl();
                 DrawInnerCtrl.Shape = DrawShape.Rectangle;
                 DrawInnerCtrl.Paint = DrawPaint.Fill;
@@ -51,7 +41,7 @@ namespace ZX_Keyboard.Logic
             // Top Right
             if ((graph & 0b0100) != 0)
             {
-                PdfRectangle innerRect = new PdfRectangle(left + 7.6, bottom + 7, left + 7.6 + 1, bottom + 7 + 1);
+                PdfRectangle innerRect = new PdfRectangle(left + 8.6, bottom + 7, left + 8.6 + 1, bottom + 7 + 1);
                 PdfDrawCtrl DrawInnerCtrl = new PdfDrawCtrl();
                 DrawInnerCtrl.Shape = DrawShape.Rectangle;
                 DrawInnerCtrl.Paint = DrawPaint.Fill;
@@ -62,7 +52,7 @@ namespace ZX_Keyboard.Logic
             // Bottom Right
             if ((graph & 0b0010) != 0)
             {
-                PdfRectangle innerRect = new PdfRectangle(left + 7.6, bottom + 6, left + 7.6 + 1, bottom + 6 + 1);
+                PdfRectangle innerRect = new PdfRectangle(left + 8.6, bottom + 6, left + 8.6 + 1, bottom + 6 + 1);
                 PdfDrawCtrl DrawInnerCtrl = new PdfDrawCtrl();
                 DrawInnerCtrl.Shape = DrawShape.Rectangle;
                 DrawInnerCtrl.Paint = DrawPaint.Fill;
@@ -73,7 +63,7 @@ namespace ZX_Keyboard.Logic
             // Bottom Left
             if ((graph & 0b0001) != 0)
             {
-                PdfRectangle innerRect = new PdfRectangle(left + 6.6, bottom + 6, left + 6.6 + 1, bottom + 6 + 1);
+                PdfRectangle innerRect = new PdfRectangle(left + 7.6, bottom + 6, left + 7.6 + 1, bottom + 6 + 1);
                 PdfDrawCtrl DrawInnerCtrl = new PdfDrawCtrl();
                 DrawInnerCtrl.Shape = DrawShape.Rectangle;
                 DrawInnerCtrl.Paint = DrawPaint.Fill;
@@ -99,19 +89,19 @@ namespace ZX_Keyboard.Logic
             cShiftedTextCtrl.Justify = TextJustify.Right;
             contents.DrawText(cShiftedTextCtrl, left + 8, bottom + 4, cShifted);
 
-            PdfDrawTextCtrl eKeywordTextCtrl = new PdfDrawTextCtrl(document, "Verdana", FontStyle.Bold, 4);
+            PdfDrawTextCtrl eKeywordTextCtrl = new PdfDrawTextCtrl(document, "Verdana", FontStyle.Bold, 5);
             if ("5678".Contains(key))
             {
                 eKeywordTextCtrl = new PdfDrawTextCtrl(document, "Webdings", FontStyle.Bold, 8);
             }
             eKeywordTextCtrl.TextColor = Color.Black;
             eKeywordTextCtrl.Justify = TextJustify.Center;
-            contents.DrawText(eKeywordTextCtrl, left + 5.5, bottom + 8.5, eKeyword);
+            contents.DrawText(eKeywordTextCtrl, left + 6.3, bottom + 8.5, eKeyword);
 
-            PdfDrawTextCtrl eShiftedTextCtrl = new PdfDrawTextCtrl(document, "Verdana", FontStyle.Bold, 4);
+            PdfDrawTextCtrl eShiftedTextCtrl = new PdfDrawTextCtrl(document, "Verdana", FontStyle.Bold, 5);
             eShiftedTextCtrl.TextColor = Color.Red;
             eShiftedTextCtrl.Justify = TextJustify.Center;
-            contents.DrawText(eShiftedTextCtrl, left + 5.5, bottom + 1, eShifted);
+            contents.DrawText(eShiftedTextCtrl, left + 6, bottom + 1, eShifted);
 
         }
 
@@ -125,7 +115,7 @@ namespace ZX_Keyboard.Logic
                 Color textColor,
                 Color backColor)
         {
-            Double width = 11.6;
+            Double width = 12.6;
             Double height = 11;
             PdfRectangle Rect = new PdfRectangle(left, bottom, left + width, bottom + height);
             PdfDrawCtrl DrawCtrl = new PdfDrawCtrl();
@@ -145,8 +135,8 @@ namespace ZX_Keyboard.Logic
             PdfDrawTextCtrl keyLine1Ctrl = new PdfDrawTextCtrl(document, "Verdana", FontStyle.Bold, textSize);
             keyLine1Ctrl.TextColor = textColor;
             keyLine1Ctrl.Justify = TextJustify.Center;
-            contents.DrawText(keyLine1Ctrl, left + 5.8, line1vPos, line1);
-            contents.DrawText(keyLine1Ctrl, left + 5.8, line1vPos - 2.5, line2);
+            contents.DrawText(keyLine1Ctrl, left + 6.3, line1vPos, line1);
+            contents.DrawText(keyLine1Ctrl, left + 6.3, line1vPos - 2.5, line2);
         }
 
         public static void AddButton(this PdfContents contents,
@@ -166,17 +156,17 @@ namespace ZX_Keyboard.Logic
             PdfDrawTextCtrl sShiftedTextCtrl = new PdfDrawTextCtrl(document, "Verdana", FontStyle.Bold, 6);
             sShiftedTextCtrl.TextColor = Color.Red;
             sShiftedTextCtrl.Justify = TextJustify.Right;
-            contents.DrawText(sShiftedTextCtrl, left + 10.4, bottom + 6, sShifted);
+            contents.DrawText(sShiftedTextCtrl, left + 11.4, bottom + 6, sShifted);
 
-            PdfDrawTextCtrl eKeywordTextCtrl = new PdfDrawTextCtrl(document, "Verdana", FontStyle.Bold, 4);
+            PdfDrawTextCtrl eKeywordTextCtrl = new PdfDrawTextCtrl(document, "Verdana", FontStyle.Bold, 5);
             eKeywordTextCtrl.TextColor = Color.Green;
             eKeywordTextCtrl.Justify = TextJustify.Center;
-            contents.DrawText(eKeywordTextCtrl, left + 5.5, bottom + 8.5, eKeyword);
+            contents.DrawText(eKeywordTextCtrl, left + 6.3, bottom + 8.5, eKeyword);
 
-            PdfDrawTextCtrl eShiftedTextCtrl = new PdfDrawTextCtrl(document, "Verdana", FontStyle.Bold, 4);
+            PdfDrawTextCtrl eShiftedTextCtrl = new PdfDrawTextCtrl(document, "Verdana", FontStyle.Bold, 5);
             eShiftedTextCtrl.TextColor = Color.Red;
             eShiftedTextCtrl.Justify = TextJustify.Center;
-            contents.DrawText(eShiftedTextCtrl, left + 5.5, bottom + 1, eShifted);
+            contents.DrawText(eShiftedTextCtrl, left + 6, bottom + 1, eShifted);
         }
 
         public static void AddColourLabel(this PdfContents contents,
@@ -193,7 +183,7 @@ namespace ZX_Keyboard.Logic
             DrawCtrl.Shape = DrawShape.RoundedRect;
             DrawCtrl.Paint = DrawPaint.Border;
             DrawCtrl.BorderColor = Color.Black;
-            if (colour == Color.White)
+            if (colour == Color.White || colour == Color.Yellow || colour == Color.Cyan)
             {
                 DrawCtrl.Paint = DrawPaint.BorderAndFill;
                 DrawCtrl.BackgroundTexture = Color.Black;
@@ -211,7 +201,7 @@ namespace ZX_Keyboard.Logic
 
         private static void KeyOutline(PdfContents contents, double left, double bottom)
         {
-            Double width = 11.6;
+            Double width = 12.6;
             Double height = 11;
             PdfRectangle Rect = new PdfRectangle(left, bottom, left + width, bottom + height);
             PdfDrawCtrl DrawCtrl = new PdfDrawCtrl();
@@ -232,10 +222,10 @@ namespace ZX_Keyboard.Logic
 
         private static void Statement(PdfContents contents, PdfDocument document, double left, double bottom, string statement)
         {
-            PdfDrawTextCtrl statementTextCtrl = new PdfDrawTextCtrl(document, "Verdana", FontStyle.Bold, 4);
+            PdfDrawTextCtrl statementTextCtrl = new PdfDrawTextCtrl(document, "Verdana", FontStyle.Bold, 5);
             statementTextCtrl.TextColor = Color.Black;
             statementTextCtrl.Justify = TextJustify.Right;
-            contents.DrawText(statementTextCtrl, left + 10.4, bottom + 4, statement);
+            contents.DrawText(statementTextCtrl, left + 11.8, bottom + 4, statement);
         }
     }
 }

+ 56 - 56
ZX-Keyboard/Logic/RenderPdf.cs

@@ -33,74 +33,74 @@ namespace ZX_Keyboard.Logic
                 TextCtrl.Justify = TextJustify.Center;
                 Contents.DrawText(TextCtrl, 304, 830, "ZX-Keyboard Created by Badmuts");
 
-                for (int duplicate = 1; duplicate <= 5; duplicate++)
+                for (int duplicate = 0; duplicate <= 4; duplicate++)
                 {
-                    var vMargin = -55 * (duplicate - 1);
+                    var vMargin = -55 * duplicate;
                     // Row 1
                     Contents.AddNumberGraphButton(Document, 15, vMargin + 275, "1", 0b0100, Color.Blue, "!", "EDIT", "DEF FN");
-                    Contents.AddNumberGraphButton(Document, 28, vMargin + 275, "2", 0b1000, Color.Red, "@", "CAPS LOCK", "FN");
-                    Contents.AddNumberGraphButton(Document, 41, vMargin + 275, "3", 0b1100, Color.Magenta, "#", "TRUE VIDEO", "Row");
-                    Contents.AddNumberGraphButton(Document, 54, vMargin + 275, "4", 0b0010, Color.Green, "$", "INV VIDEO", "OPEN");
-                    Contents.AddNumberGraphButton(Document, 67, vMargin + 275, "5", 0b0110, Color.Cyan, "%", "3", "CLOSE");
-                    Contents.AddNumberGraphButton(Document, 80, vMargin + 275, "6", 0b1010, Color.Yellow, "&", "6", "MOVE");
-                    Contents.AddNumberGraphButton(Document, 93, vMargin + 275, "7", 0b0001, Color.Black, "'", "5", "ERASE");
-                    Contents.AddNumberGraphButton(Document, 106, vMargin + 275, "8", 0b0000, Color.Black, "(", "4", "POINT");
-                    Contents.AddNumberButton(Document, 119, vMargin + 275, "9", ")", "GRAPHICS", "CAT");
-                    Contents.AddNumberButton(Document, 132, vMargin + 275, "0", "_", "DELETE", "FORMAT");
+                    Contents.AddNumberGraphButton(Document, 29, vMargin + 275, "2", 0b1000, Color.Red, "@", "CAPS LOCK", "FN");
+                    Contents.AddNumberGraphButton(Document, 43, vMargin + 275, "3", 0b1100, Color.Magenta, "#", "TRUE VIDEO", "LINE");
+                    Contents.AddNumberGraphButton(Document, 57, vMargin + 275, "4", 0b0010, Color.Green, "$", "INV VIDEO", "OPEN");
+                    Contents.AddNumberGraphButton(Document, 71, vMargin + 275, "5", 0b0110, Color.Cyan, "%", "3", "CLOSE");
+                    Contents.AddNumberGraphButton(Document, 85, vMargin + 275, "6", 0b1010, Color.Yellow, "&", "6", "MOVE");
+                    Contents.AddNumberGraphButton(Document, 99, vMargin + 275, "7", 0b0001, Color.Black, "'", "5", "ERASE");
+                    Contents.AddNumberGraphButton(Document, 113, vMargin + 275, "8", 0b0000, Color.Black, "(", "4", "POINT");
+                    Contents.AddNumberButton(Document, 127, vMargin + 275, "9", ")", "GRAPHICS", "CAT");
+                    Contents.AddNumberButton(Document, 141, vMargin + 275, "0", "_", "DELETE", "FORMAT");
 
                     // Row 2
-                    Contents.AddButton(Document, 145, vMargin + 275, "Q", "PLOT", "<=", "SIN", "ASN");
-                    Contents.AddButton(Document, 158, vMargin + 275, "W", "DRAW", "<>", "COS", "ACS");
-                    Contents.AddButton(Document, 171, vMargin + 275, "E", "REM", ">=", "TAN", "ATN");
-                    Contents.AddButton(Document, 184, vMargin + 275, "R", "RUN", "<", "INT", "VERIFY");
-                    Contents.AddButton(Document, 15, vMargin + 262, "T", "RAND", ">", "RND", "MERGE");
-                    Contents.AddButton(Document, 28, vMargin + 262, "Y", "RETURN", "AND", "STR$", "[");
-                    Contents.AddButton(Document, 41, vMargin + 262, "U", "IF", "OR", "CHR$", "]");
-                    Contents.AddButton(Document, 54, vMargin + 262, "I", "INPUT", "AT", "CODE", "IN");
-                    Contents.AddButton(Document, 67, vMargin + 262, "O", "POKE", ";", "PEEK", "OUT");
-                    Contents.AddButton(Document, 80, vMargin + 262, "P", "PRINT", "\"", "TAB", "©");
+                    Contents.AddButton(Document, 155, vMargin + 275, "Q", "PLOT", "<=", "SIN", "ASN");
+                    Contents.AddButton(Document, 169, vMargin + 275, "W", "DRAW", "<>", "COS", "ACS");
+                    Contents.AddButton(Document, 183, vMargin + 275, "E", "REM", ">=", "TAN", "ATN");
+                    Contents.AddButton(Document, 15, vMargin + 262, "R", "RUN", "<", "INT", "VERIFY");
+                    Contents.AddButton(Document, 29, vMargin + 262, "T", "RAND", ">", "RND", "MERGE");
+                    Contents.AddButton(Document, 43, vMargin + 262, "Y", "RETURN", "AND", "STR$", "[");
+                    Contents.AddButton(Document, 57, vMargin + 262, "U", "IF", "OR", "CHR$", "]");
+                    Contents.AddButton(Document, 71, vMargin + 262, "I", "INPUT", "AT", "CODE", "IN");
+                    Contents.AddButton(Document, 85, vMargin + 262, "O", "POKE", ";", "PEEK", "OUT");
+                    Contents.AddButton(Document, 99, vMargin + 262, "P", "PRINT", "\"", "TAB", "©");
 
                     // Row 3
-                    Contents.AddButton(Document, 93, vMargin + 262, "A", "NEW", "STOP", "READ", "~");
-                    Contents.AddButton(Document, 106, vMargin + 262, "S", "SAVE", "NOT", "RESTORE", "|");
-                    Contents.AddButton(Document, 119, vMargin + 262, "D", "DIM", "STEP", "DATA", "\\");
-                    Contents.AddButton(Document, 132, vMargin + 262, "F", "FOR", "TO", "SGN", "{");
-                    Contents.AddButton(Document, 145, vMargin + 262, "G", "GOTO", "THEN", "ABS", "}");
-                    Contents.AddButton(Document, 158, vMargin + 262, "H", "GOSUB", "↑", "SQR", "CIRCLE");
-                    Contents.AddButton(Document, 171, vMargin + 262, "J", "LOAD", "-", "VAL", "VAL$");
-                    Contents.AddButton(Document, 184, vMargin + 262, "K", "LIST", "+", "LEN", "SCREEN$");
-                    Contents.AddButton(Document, 15, vMargin + 249, "L", "LET", "=", "USR", "ATR");
-                    Contents.AddTextButton(Document, 28, vMargin + 249, "ENTER", "", 7, Color.Black, Color.Red);
+                    Contents.AddButton(Document, 113, vMargin + 262, "A", "NEW", "STOP", "READ", "~");
+                    Contents.AddButton(Document, 127, vMargin + 262, "S", "SAVE", "NOT", "RESTORE", "|");
+                    Contents.AddButton(Document, 141, vMargin + 262, "D", "DIM", "STEP", "DATA", "\\");
+                    Contents.AddButton(Document, 155, vMargin + 262, "F", "FOR", "TO", "SGN", "{");
+                    Contents.AddButton(Document, 169, vMargin + 262, "G", "GOTO", "THEN", "ABS", "}");
+                    Contents.AddButton(Document, 183, vMargin + 262, "H", "GOSUB", "↑", "SQR", "CIRCLE");
+                    Contents.AddButton(Document, 15, vMargin + 249, "J", "LOAD", "-", "VAL", "VAL$");
+                    Contents.AddButton(Document, 29, vMargin + 249, "K", "LIST", "+", "LEN", "SCREEN$");
+                    Contents.AddButton(Document, 43, vMargin + 249, "L", "LET", "=", "USR", "ATR");
+                    Contents.AddTextButton(Document, 57, vMargin + 249, "ENTER", "", 7, Color.Black, Color.Red);
 
                     // Row 4
-                    Contents.AddTextButton(Document, 41, vMargin + 249, "CAPS", "SHIFT", 5, Color.Black, Color.White);
-                    Contents.AddButton(Document, 54, vMargin + 249, "Z", "COPY", ":", "LN", "BEEP");
-                    Contents.AddButton(Document, 67, vMargin + 249, "X", "CLEAR", "£", "LN", "INK");
-                    Contents.AddButton(Document, 80, vMargin + 249, "C", "CONT", "?", "LN", "PAPER");
-                    Contents.AddButton(Document, 93, vMargin + 249, "V", "CLS", "/", "LN", "FLASH");
-                    Contents.AddButton(Document, 106, vMargin + 249, "B", "BORDER", "*", "LN", "BRIGHT");
-                    Contents.AddButton(Document, 119, vMargin + 249, "N", "NEXT", ",", "LN", "OVER");
-                    Contents.AddButton(Document, 132, vMargin + 249, "M", "PAUSE", ".", "LN", "INVERSE");
-                    Contents.AddTextButton(Document, 145, vMargin + 249, "SYMBOL", "SHIFT", 5, Color.Red, Color.White);
-                    Contents.AddTextButton(Document, 158, vMargin + 249, "BREAK", "SPACE", 5, Color.Black, Color.White);
+                    Contents.AddTextButton(Document, 71, vMargin + 249, "CAPS", "SHIFT", 5, Color.Black, Color.White);
+                    Contents.AddButton(Document, 85, vMargin + 249, "Z", "COPY", ":", "LN", "BEEP");
+                    Contents.AddButton(Document, 99, vMargin + 249, "X", "CLEAR", "£", "EXP", "INK");
+                    Contents.AddButton(Document, 113, vMargin + 249, "C", "CONT", "?", "LPRINT", "PAPER");
+                    Contents.AddButton(Document, 127, vMargin + 249, "V", "CLS", "/", "LLIST", "FLASH");
+                    Contents.AddButton(Document, 141, vMargin + 249, "B", "BORDER", "*", "BIN", "BRIGHT");
+                    Contents.AddButton(Document, 155, vMargin + 249, "N", "NEXT", ",", "INKEY$", "OVER");
+                    Contents.AddButton(Document, 169, vMargin + 249, "M", "PAUSE", ".", "PI", "INVERSE");
+                    Contents.AddTextButton(Document, 183, vMargin + 249, "SYMBOL", "SHIFT", 5, Color.Red, Color.White);
+                    Contents.AddTextButton(Document, 15, vMargin + 236, "BREAK", "SPACE", 5, Color.Black, Color.White);
 
                     // Extra for colour labels
-                    Contents.AddNumberGraphButton(Document, 15, vMargin + 236, "1", 0b0100, Color.Black, "!", "EDIT", "DEF FN");
-                    Contents.AddNumberGraphButton(Document, 28, vMargin + 236, "2", 0b1000, Color.Black, "@", "CAPS LOCK", "FN");
-                    Contents.AddNumberGraphButton(Document, 41, vMargin + 236, "3", 0b1100, Color.Black, "#", "TRUE VIDEO", "Row");
-                    Contents.AddNumberGraphButton(Document, 54, vMargin + 236, "4", 0b0010, Color.Black, "$", "INV VIDEO", "OPEN");
-                    Contents.AddNumberGraphButton(Document, 67, vMargin + 236, "5", 0b0110, Color.Black, "%", "3", "CLOSE");
-                    Contents.AddNumberGraphButton(Document, 80, vMargin + 236, "6", 0b1010, Color.Black, "&", "6", "MOVE");
-                    Contents.AddNumberGraphButton(Document, 93, vMargin + 236, "7", 0b1110, Color.Black, "'", "5", "ERASE");
-                    Contents.AddNumberGraphButton(Document, 106, vMargin + 236, "8", 0b0000, Color.Black, "(", "4", "POINT");
+                    Contents.AddNumberGraphButton(Document, 29, vMargin + 236, "1", 0b0100, Color.Black, "!", "EDIT", "DEF FN");
+                    Contents.AddNumberGraphButton(Document, 43, vMargin + 236, "2", 0b1000, Color.Black, "@", "CAPS LOCK", "FN");
+                    Contents.AddNumberGraphButton(Document, 57, vMargin + 236, "3", 0b1100, Color.Black, "#", "TRUE VIDEO", "LINE");
+                    Contents.AddNumberGraphButton(Document, 71, vMargin + 236, "4", 0b0010, Color.Black, "$", "INV VIDEO", "OPEN");
+                    Contents.AddNumberGraphButton(Document, 85, vMargin + 236, "5", 0b0110, Color.Black, "%", "3", "CLOSE");
+                    Contents.AddNumberGraphButton(Document, 99, vMargin + 236, "6", 0b1010, Color.Black, "&", "6", "MOVE");
+                    Contents.AddNumberGraphButton(Document, 113, vMargin + 236, "7", 0b1110, Color.Black, "'", "5", "ERASE");
+                    Contents.AddNumberGraphButton(Document, 127, vMargin + 236, "8", 0b0000, Color.Black, "(", "4", "POINT");
 
-                    Contents.AddColourLabel(Document, 119, vMargin + 242, "BLUE", Color.Blue);
-                    Contents.AddColourLabel(Document, 119, vMargin + 236, "RED", Color.Red);
-                    Contents.AddColourLabel(Document, 132, vMargin + 242, "MAGENTA", Color.Magenta);
-                    Contents.AddColourLabel(Document, 132, vMargin + 236, "GREEN", Color.Green);
-                    Contents.AddColourLabel(Document, 145, vMargin + 242, "CYAN", Color.Cyan);
-                    Contents.AddColourLabel(Document, 145, vMargin + 236, "YELLOW", Color.Yellow);
-                    Contents.AddColourLabel(Document, 158, vMargin + 242, "WHITE", Color.White);
+                    Contents.AddColourLabel(Document, 141, vMargin + 242, "BLUE", Color.Blue);
+                    Contents.AddColourLabel(Document, 141, vMargin + 236, "RED", Color.Red);
+                    Contents.AddColourLabel(Document, 155, vMargin + 242, "MAGENTA", Color.Magenta);
+                    Contents.AddColourLabel(Document, 155, vMargin + 236, "GREEN", Color.Green);
+                    Contents.AddColourLabel(Document, 169, vMargin + 242, "CYAN", Color.Cyan);
+                    Contents.AddColourLabel(Document, 169, vMargin + 236, "YELLOW", Color.Yellow);
+                    Contents.AddColourLabel(Document, 183, vMargin + 242, "WHITE", Color.White);
                 }
 
                 // create pdf file