Description
Print full server-side (load, xml generation and PDF creation) one or more editorial pages (GET).
Available since 1.6.
Parameters
Ids
comma-separated database ids for one or more id of page(s) to print.
Id
integer for Id of the print preset.
PrintOpt
allows to overwrite some options set in the selected print configuration (id parameter). Available since version 2.0.
Defining options
To define the options, use the current syntax: 'name1:value1;name2:value2...'
The available options to overwrite are:
•PDFFile: output Pdf file name;
•Scale: scale the page content to output file (% value, 100 default value);
•Rotation: rotate the page content to output file (degrees*10 value: 0 default value, 1800 -> 180°);
•Caption: formatted text caption to write on PDF result;
•Mirror: If true, print the content in mirror mode;
•Fit: if true, fit the page on the paper;
•MediaBoxW: paper width;
•MediaBoxH: paper height;
•OffsetY: margin Y;
•OffsetX: margin X;
•CenterPage: if true, center the page on paper;
•DoublePrint: Print pages mode: 0 = Two singles; 1 = One double; 2 = Left only; 3 = Right only;
•ColorQuality: color image quality (0-100);
•GrayQuality: grayscale image quality (0-100);
•GrayImageResolution: gray image resolution in page;
•ColorImageResolution: color image resolution in page;
•PDF_EPS_AsImg: if true print only the image preview of EPS/PDF (size optimization for output) the result is an output with all image full compressed;
•OneFilePerPage: one file for every printed page; (not valid for tracy mode)
•Modified the 'TracyOpt' parameter: the format to insert the values is more usable.
TracyOpt (to print pages with tracking layout)
To define the options is necessary use the current syntax: 'name1:value1;name2:value2...' (like print opt)
The options are:
TracyLayoutColumns: number of tracy columns;
TracyHorizontalSheets: number of pages used for print the horizontal layout;
TracyPageBoardW: single page pasteboard width of tracy layout;
TracyPageBoardH: single page pasteboard height of tracy layout;
TracyFontSize: font size of page label
TracyGridHor: background grid size (X axis);
TracyGridVert: background grid size (Y axis);
Content: page content mode (full (0) or layout (3));
Examples
http://localhost/GN4/edo.ashx?Cmd=ServerPrint&Ids=34240,34237,34242&Id=4493&PrintOpt=OneFilePerPage:true;PDFFile:pippo_%26n_.pdf'
Where “pippo_%26n_.pdf” is “PDFFile:pippo_&n_.pdf” : to write the page number in the output files name
http://localhost/GN4/edo.ashx?Cmd=ServerPrint&Ids=34240,34237,34242&Id=4493&PrintOpt=MediaBoxW:1000pt;MediaBoxH:1000pt
for measures parameter (mediabox, tracypasteboard, etc) it is necessary specify the measure units (pt, mm, cm, in, etc).