User Tools

Site Tools


map_suite_webapi_printing

This is an old revision of the document!


Map Suite WebAPI Printing

Video Overview

Overview

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 grid, or 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 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.

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.

Label Printer Layer

Border
Label printer layers.

The label printer layer is using for show label on the page. You can customize the font of label and content.

Image Printer Layer

Border
Image printer layers.

The image printer layer is using for show image on the page. You can customize the image and image's size on the page.

Scale Line Printer Layer

Border
Scale line printer layers.

The scale line printer layer is using for show scale line on the page. It was bound to the map printer layer.

Scale Bar Printer Layer

Border
Scale Bar printer layers.

The scale bar printer layer is using for show scale bar on the page. It was bound to the map printer layer.

Data Grid Printer Layer

Border
Scale Bar printer layers.

The data grid printer layer is using for show data grid on the page. In the sample, the data grid show the columns information of the countries that population > 150 million.

In the sample, we can set paper size, orientation and percentage.

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).

Orientation

Border
Portrait.
Border
Landscape.

Users can select portrait and/ or landscape for page orientation.

Export

This sample shows how you can export the page printer layer, save it as bitmap, PDF and how to print.

map_suite_webapi_printing.1450731764.txt.gz · Last modified: 2015/12/21 21:02 by mwolffer