From 32b8c34bbd526e2b465cabfe415b595159330a49 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Thu, 29 Aug 2013 12:10:51 +0100 Subject: [PATCH] Updated nocomp --- META | 2 +- cpdfcommand.ml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/META b/META index 62d2c92..954877b 100644 --- a/META +++ b/META @@ -1,5 +1,5 @@ name="cpdf" -description="PDF command line tools and library" +description="High-level pdf tools base on CamlPDF" version="1.7" requires="camlpdf" archive(byte)="cpdf.cma" diff --git a/cpdfcommand.ml b/cpdfcommand.ml index 26f4d50..7a45abf 100644 --- a/cpdfcommand.ml +++ b/cpdfcommand.ml @@ -1,5 +1,6 @@ (* cpdf command line tools} *) let demo = false +and noncomp = true and major_version = 1 and minor_version = 7 and version_date = "(7th August 2013)" @@ -3343,6 +3344,12 @@ let align_specs s = let go_withargv argv = if demo then flprint "This demo is for evaluation only. http://www.coherentpdf.com/\n"; + if noncomp then + begin + prerr_string "For non-commercial use only\n"; + prerr_string "To purchase a license visit http://www.coherentpdf.com/\n\n"; + flush stderr + end; try (* Split the arguments into sets either side of ANDs *) let sets =