[Mapbender-commits] r3467 - branches/print_dev/http/print

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jan 20 09:54:16 EST 2009


Author: mschulz
Date: 2009-01-20 09:54:16 -0500 (Tue, 20 Jan 2009)
New Revision: 3467

Added:
   branches/print_dev/http/print/ConfigTemplateHelp.json
Log:
initial checkin: template configuration help

Added: branches/print_dev/http/print/ConfigTemplateHelp.json
===================================================================
--- branches/print_dev/http/print/ConfigTemplateHelp.json	                        (rev 0)
+++ branches/print_dev/http/print/ConfigTemplateHelp.json	2009-01-20 14:54:16 UTC (rev 3467)
@@ -0,0 +1,65 @@
+{
+    "type" : "templatePDF", 					# define the PDF type: "templatePDF", "dynamicPDF"
+    "orientation" : "L",
+    "units" : "mm",
+    "format" : "a4",
+    "controls" : [								# the controls object defines additional form elements
+    	{										# that should be displayed in the application
+    		"id" : "title",						# the id of the form element 
+    		"label" : "Titel",					# the label of the form element
+    		"type" : "text",					# the form elements type: text, select, ...
+    		"size" : 20,						# a size value, where applicable ...
+    		"pageElementsLink" : "title:value"	# this links the form element value to a page element 
+    	},										# in the pdf, the syntax is still work in progress
+    	{
+    		"id" : "dpi",
+    		"label" : "DPI",
+    		"type" : "select",
+    		"size" : 20,
+    		"pageElementsLink" : "map:res_dpi",
+    		"options" : [
+    			{
+    			"value" : "56",
+    			"label" : "niedrig (56)"
+    			},{
+    			"value" : "72",
+    			"label" : "normal (72)"
+    			},{
+    			"value" : "144",
+    			"label" : "hoch (dpi)"
+    			}
+    		]
+    	},
+    	{
+    		"id" : "comment",
+    		"label" : "Kommentar",
+    		"type" : "textarea",
+    		"size" : 5,
+    		"pageElementsLink" : "comment:value"
+    	}    	    		
+    ],
+    "pages" : [									# the pages elements defines a list of page configurations
+    	{
+    	 "tpl" : "mbtemplate1.pdf",				# which template to use
+    	 "useTplPage" : 1,						# which page of the template to use
+    	 "elements" : {							# the elements object defines which elements are placed on this page
+	    	 "map" : {
+    			"show" : true,
+    			"res_dpi" : 72, 
+    			"x_ul" : 10.1,
+	    		"y_ul" : 15.2,
+	    		"width" : 280,
+    			"height" : 185
+	   			},
+	   		"overview" : {
+    			"show" : true,
+    			"res_dpi" : 72, 
+    			"x_ul" : 10.1,
+	    		"y_ul" : 15.2,
+	    		"width" : 50,
+    			"height" : 50
+	   			}
+	   		}
+	   	}
+	]
+}
\ No newline at end of file



More information about the Mapbender_commits mailing list