From d9a496fbf211166766ed88981a4ee151707fbc41 Mon Sep 17 00:00:00 2001 From: scuri Date: Wed, 24 Feb 2010 02:16:57 +0000 Subject: *** empty log message *** --- html/examples/cdpdf.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 html/examples/cdpdf.lua (limited to 'html/examples') diff --git a/html/examples/cdpdf.lua b/html/examples/cdpdf.lua new file mode 100644 index 0000000..4f62977 --- /dev/null +++ b/html/examples/cdpdf.lua @@ -0,0 +1,9 @@ +require"cdlua" +require"cdluapdf" + +canvas = cd.CreateCanvas(cd.PDF, "test.pdf") +canvas:Foreground (cd.RED) +canvas:Box (10, 55, 10, 55) +canvas:Foreground(cd.EncodeColor(255, 32, 140)) +canvas:Line(0, 0, 300, 100) +canvas:Kill() -- cgit v1.2.3