User Tools

Site Tools


map_suite_webapi_printing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
map_suite_webapi_printing [2015/12/15 03:53]
tgwikiupdate [Export]
map_suite_webapi_printing [2015/12/21 21:17] (current)
mwolffer [Overview]
Line 2: Line 2:
  
 ===== Video Overview ===== ===== Video Overview =====
- +{{youtube>​tise5efBFaY|WebAPI Printing Sample}}
-Coming soon. +
- +
- +
 <div newline></​div>​ <div newline></​div>​
 <div download_viewsource_buttons tryitonline>​ <div download_viewsource_buttons tryitonline>​
-{{filehistory:​webapieditionsample_topologyvalidation_cs_20151211.zip|C# Project}} +{{filehistory:​webapieditionsample_printing_cs_20151215.zip|C# Project}} 
-[[source_code_webapieditionsample_topologyvalidation.zip|View Source]]+[[source_code_webapieditionsample_printing.zip|View Source]]
 [[http://​samples.thinkgeo.com/​WebApiEdition/​SampleTemplates/​Printing/​leaflet/​|Try It Online(Leaflet)]] [[http://​samples.thinkgeo.com/​WebApiEdition/​SampleTemplates/​Printing/​leaflet/​|Try It Online(Leaflet)]]
 [[http://​samples.thinkgeo.com/​WebApiEdition/​SampleTemplates/​Printing/​openlayers/​|Try It Online(Openlayers)]] [[http://​samples.thinkgeo.com/​WebApiEdition/​SampleTemplates/​Printing/​openlayers/​|Try It Online(Openlayers)]]
Line 19: Line 15:
 =====Overview===== =====Overview=====
  
-This project shows you how to add robust printing support to your webapi ​application, using the code in this sampleyou will be able to build a Print Preview Interface ​that lets your users interactively arrange items (such as a map, scale line, labels, data grid or imageon a virtual page before printing the result to a printer, exporting to a PDF or to a bitmap image. Maps are printed using vector graphics so you can be sure the output will look great on anything from a PDF to a large plotter. The printing system also includes low-level report building classes that make it easy to generate reports in the web environment. ​+This project shows you how to add robust printing support to your WebAPI ​application. Using the code in this sample you will be able to build a print preview interface ​that lets your users interactively arrange items such as a map, scale line, labels, data gridor image on a virtual page before printing the result to a printer, exporting to a PDF or to a bitmap image. Maps are printed using vector graphics so you can be sure the output will look great on anything from a PDF or even a large plotter. The printing system also includes low-level report building classes that make it easy to generate reports in web environment. ​
  
  
 ===== Printer Layers ===== ===== Printer Layers =====
  
-In the sample, we show some of printer layers in Map Suite printing system, ​including label printer layer, image printer layer, scale line printer layer, scale bar printer layer, data grid printer layer. There is a whole setup API in the background, you can setting printer layers'​ size, position and content.+This sample ​shows you different APIs that allows you to build your own printing system. Some of the features include adding labelsimages, scale lines, scale barsand data grid.
 ==== Label Printer Layer ==== ==== Label Printer Layer ====
 <div captionwithborder floatright>​ <div captionwithborder floatright>​
Line 32: Line 28:
 // //
 </​div>​ </​div>​
-The label printer layer is using for show label on the page. You can customize the font of label and content.+The label printer layer allows you to add a label to the page. The user has full control and can customize the font and content ​of the label.
  
 <div newline></​div>​ <div newline></​div>​
Line 42: Line 38:
 // //
 </​div>​ </​div>​
-The image printer layer is using for show image on the page. You can customize the image and image'​s ​size on the page.+The image printer layer allows you to add an image to the page. You can customize the image and the image size on the page.
 <div newline></​div>​ <div newline></​div>​
 ==== Scale Line Printer Layer ==== ==== Scale Line Printer Layer ====
Line 51: Line 47:
 // //
 </​div>​ </​div>​
-The scale line printer layer is using for show scale line on the page. It was bound to the map printer layer.+The Scale Line printer layer allows you to add Scale Line to the page.
  
 <div newline></​div>​ <div newline></​div>​
Line 61: Line 57:
 // //
 </​div>​ </​div>​
-The scale bar printer layer is using for show scale bar on the page. It was bound to the map printer layer.+The scale bar printer layer allows you to add a scale bar to the page.
  
 <div newline></​div>​ <div newline></​div>​
Line 71: Line 67:
 // //
 </​div>​ </​div>​
-The data grid printer layer is using for show data grid on the page. In the samplethe data grid show the columns ​information of the countries that population > 150 million.+The data grid printer layer shows how to add a data grid to the page. In the sample the data grid shows the columns ​with the countries that have population > 150 million.
  
 <div newline></​div>​ <div newline></​div>​
 ===== Print preview ===== ===== Print preview =====
  
-In the sample, we can set paper size, orientation and percentage.+Print Preview allows users to specify ​paper size, page orientationand percentage.
  
 ==== Paper Size ==== ==== Paper Size ====
  
-In this sample, we can set the paper size,​including ​ANSI A-8.5 x 11(A4), ANSI B-11 x 17(A3), ANSI C-17 x 22(A2), ANSI D-22 x 34(A1), ANSI E-34 x 44(A0).+Users can specify ​paper size to predefined sizes such as ANSI A-8.5 x 11(A4), ANSI B-11 x 17(A3), ANSI C-17 x 22(A2), ANSI D-22 x 34(A1), ANSI E-34 x 44(A0) ​or create custom sizing
  
  
 <div newline></​div>​ <div newline></​div>​
 +==== Orientation ====
 <div captionwithborder floatright>​ <div captionwithborder floatright>​
 {{webapiedition:​printerlayerofportrait.png?​170|Border}} {{webapiedition:​printerlayerofportrait.png?​170|Border}}
Line 95: Line 91:
 </​div>​ </​div>​
  
-There are portrait and landscape for orientation. +Users can select ​portrait and/ or landscape for page orientation.
- +
  
  
 <div newline></​div>​ <div newline></​div>​
 ===== Export ===== ===== Export =====
-In this sample, we can export the page printer layer, save as bitmap, PDF and export ​to printer.+This sample ​shows how you can export the page printer layer, save it as bitmap, PDF and how to print.
  
 <div newline></​div>​ <div newline></​div>​
map_suite_webapi_printing.1450151597.txt.gz · Last modified: 2015/12/15 03:53 by tgwikiupdate