summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscuri <scuri>2010-02-24 02:16:57 +0000
committerscuri <scuri>2010-02-24 02:16:57 +0000
commitd9a496fbf211166766ed88981a4ee151707fbc41 (patch)
tree557415185abd9e2da60c85314e1118be50a84b76
parent2dda083d64d68978478ddcf644549a6b57b8fdaa (diff)
*** empty log message ***
-rw-r--r--html/examples/cdpdf.lua9
1 files changed, 9 insertions, 0 deletions
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()