How to set top and bottom margin in Post Script code generated by TFORMER Tool
<p>In my web app, I am using TFORMER tool to generate templates which are going to be used in retail stores.</p>

<p>Here I am using PSType(Post Script) type in TFORMER to print the template details. Here I want to set margins for (Top,Left,Right,Botton) in the generated Print Script Code.</p>

<p>How can I do It ?? Here is my generated code of the template details that need to be pritned.</p>

<pre><code>&lt;TFORMer major="1" minor="0"&gt;
  &lt;!-- (c) 1998-2008 TEC-IT Datenverarbeitung GmbH                                --&gt;
  &lt;!-- htpp://www.tec-it.com                                                      --&gt;
  &lt;!-- support@tec-it.com                                                         --&gt;

  &lt;!-- This TFORMer configuration file contains standard settings for             --&gt;
  &lt;!-- PDF/PostScript and HTML Output                                             --&gt; 
  &lt;!-- Edit this file if you want to change PDF/PS/HTML specific output options   --&gt;
  &lt;!-- or if you need to use custom form sizes                                    --&gt;


  &lt;!-- COMMON Options - Configure settings that apply to all printers             --&gt;
  &lt;COMMON&gt;

  &lt;!-- ErrorHandling                                                              --&gt;
  &lt;!-- Decides what TFORMer does if a barcode, image or expression error occurs   --&gt;
  &lt;!-- during printing. All 3 attributes accept the following arguments:          --&gt;
  &lt;!-- * abort          Abort printing if an error occurs                         --&gt;
  &lt;!-- * ignore         Ignore the error and continue printing                    --&gt;
  &lt;!-- * print          Print error information instead of the component that     --&gt;
  &lt;!--                  caused the error                                          --&gt;
    &lt;ErrorHandling barcode-error="print" image-error="print" 
                   expression-error="print" unicode-font-error="print"/&gt;

  &lt;!-- URLPictures                                                                --&gt;
  &lt;!-- Specifies how TFORMer handles requests for downloading pictures via URL.   --&gt;
  &lt;!-- URLPictures are supported on Windows systems only.                         --&gt;
  &lt;!-- enabled             "0|1" enable/disable downloading of images             --&gt;
  &lt;!-- size-max            the maximum bytes per picture allowed. "0" = unlimited --&gt;
  &lt;!-- timeout             the download time in [ms] allowed per picture.         --&gt;
  &lt;!--                     "0" = no timeout                                       --&gt;
    &lt;URLPictures enabled="1" size-max="0" timeout="0" /&gt;

  &lt;/COMMON&gt;

  &lt;!-- PDF OPTIONS - Configure settings for PDF output                            --&gt;
  &lt;!-- form                Default page size, must be listed in &lt;Forms&gt; below     --&gt;
  &lt;!-- orientation         Default orientation "landscape|portrait"               --&gt;
  &lt;!-- compression         Enable/disable zip compression of the PDF "1|0"        --&gt;
  &lt;!-- margin-top          Additional top margin of the page in 1/1000mm          --&gt;
  &lt;!-- margin-left         Additional left margin of the page in 1/1000mm         --&gt;
  &lt;!-- margin-right        Additional right margin of the page in 1/1000mm        --&gt;
  &lt;!-- margin-bottom       Additional bottom margin of the page in 1/1000mm       --&gt;
  &lt;!-- embed-fonts         Embed all TrueType fonts in the document "0|1"         --&gt;
  &lt;!-- embed-subset-fonts  Embed all TrueType fonts as subset "0|1"               --&gt;
  &lt;!--                     This will usually result in smaller PDF files.         --&gt;
  &lt;!-- embed-type3-fonts   Embed all fonts as type3 fonts which are some times    --&gt;
  &lt;!--                     smaller, but might look bad on screen. "0|1"           --&gt;
  &lt;!-- colormode           color|grayscale|blackwhite                             --&gt;
  &lt;!-- simulate-font-styles if 1 TFORMer will simulate bold fonts for fonts       --&gt;
  &lt;!--                      that are not available as bold on this system.        --&gt;
  &lt;PDF form="A4" orientation="portrait" compression="1" margin-top="15240" margin-left="0" 
       margin-right="0" margin-bottom="15748" embed-fonts="1" embed-subset-fonts="0" 
       embed-type3-fonts="0" colormode="color" simulate-font-styles="1" &gt;     

  &lt;!-- compression-method  "jpeg|zip|auto":                                       --&gt;
  &lt;!--                     - "jpeg"  all images will be jpeg compressed           --&gt;
  &lt;!--                     - "zip"   all images are zip compressed                --&gt;
  &lt;!--                     - "auto"  use jpeg compression for jpegs, else zip     --&gt;    
  &lt;!-- jpeg-quality        jpeg quality setting for jpeg compression (0-100)      --&gt;
    &lt;Images compression-method="auto" jpeg-quality="80"&gt;      

  &lt;!-- Images can be downsampled if they are higher than the specified resolution --&gt;
  &lt;!-- enabled             "0|1" enable/disable downsampling of images            --&gt;
  &lt;!-- dpi                 all images are downsampled to this resolution          --&gt;
      &lt;Downsample enabled="1" dpi="300" /&gt;
    &lt;/Images&gt;    
  &lt;/PDF&gt;  

  &lt;!-- POSTSCRIPT OPTIONS: Configure settings for PostScript output               --&gt;
  &lt;!-- form                Default page size, must be listed in &lt;Forms&gt; below     --&gt;
  &lt;!-- orientation         Default orientation "landscape|portrait"               --&gt;
  &lt;!-- colormode           color|grayscale|blackwhite                             --&gt;
  &lt;!-- Header              Path to the PostScript header file                     --&gt;
  &lt;!-- Footer              Path to the PostScript footer file                     --&gt;
  &lt;!-- Encoding            Only relevant for Unix systems:                        --&gt;
  &lt;!--                     The default encoding of your system                    --&gt;
  &lt;!--                     UTF-8 is a good choice for Linux                       --&gt;
  &lt;!--                     Latin1 is a good idea for AIX                          --&gt;
  **&lt;POSTSCRIPT form="A4" orientation="portrait" colormode="color" &gt;
      &lt;Header filename="header.ps" /&gt;
      &lt;Footer filename="footer.ps" /&gt;
      &lt;Encoding system="UTF-8" /&gt;
  &lt;/POSTSCRIPT&gt;**

  &lt;!-- HTML OPTIONS:       Configure settings for HTML output                     --&gt;
  &lt;!-- form                Default page size, must be listed in &lt;Forms&gt; below     --&gt;
  &lt;!-- orientation         Default orientation "landscape|portrait"               --&gt;
  &lt;!-- 96dpi - this should be used as default resolution for Microsoft Windows    --&gt;
  &lt;!-- 108dpi - seems to work on Linux machines quite good (depends on X settings)--&gt;
  &lt;!-- 72dpi - might be a good choice if your target audience is on MAC OS        --&gt;
  &lt;!--                                                                            --&gt;
  &lt;!-- barcode-opt-resolution         print barcodes in optimal resolution        --&gt;
  &lt;!--                                This will create readable barcodes which    --&gt;
  &lt;!--                                might look different as in design mode.     --&gt;
  &lt;!-- always-print-barcodes          will print barcodes even if they will be    --&gt;
  &lt;!--                                not readable. This is ONLY useful for       --&gt;
  &lt;!--                                preview purposes.                           --&gt;
  &lt;HTML form="A4" orientation="portrait" resolution="96" barcode-opt-resolution="0"
    always-print-barcodes="1" /&gt;

  &lt;!-- IMAGE OPTIONS:       Configure settings for image output                   --&gt;
  &lt;!-- form                 Default page size, must be listed in &lt;Forms&gt; below    --&gt;
  &lt;!-- orientation          Default orientation "landscape|portrait"              --&gt;
  &lt;!-- resolution           The output resolution in dpi.                         --&gt;
  &lt;!-- anti-aliasing        1 = enabled                                           --&gt;
  &lt;!--                      0 = disabled                                          --&gt;
  &lt;!--                      Anti-aliasing improves the quality of the output      --&gt;
  &lt;!--                      in lower resolutions or for on scree display.         --&gt;
  &lt;!-- jpeg-quality         jpeg quality setting for jpeg compression (0-100)     --&gt;
  &lt;!-- tiff-compression     Compression of generated tiff images.                 --&gt;
  &lt;!--                      A few compression schemes are only allowed for b&amp;w    --&gt;
  &lt;!--                      or color output. Suggested values that should always  --&gt;
  &lt;!--                      work are: nocomp, lzw or jpeg                         --&gt;
  &lt;!--                      Valid values:                                         --&gt;
  &lt;!--                      nocomp, lzw, packbits, ccitt3, ccitt4, ccittfax, jpeg --&gt;
  &lt;!-- colormode            color|grayscale|blackwhite                            --&gt;
  &lt;!-- dither-mode          Specifies how images are converted to black&amp;white     --&gt;  
  &lt;!--                      Applies only if colormode="blackwhite"                --&gt;  
  &lt;!--                      0 = Use scatter dithering (simulates grayscale)       --&gt;  
  &lt;!--                      1 = Use ordered dithering (simulates grayscale)       --&gt;  
  &lt;!--                      2 = Use threshold dithering (results in b&amp;w only)     --&gt;  
  &lt;IMAGE form="seljpeg" orientation="portrait" resolution="96" anti-aliasing="1" 
    jpeg-quality="80" tiff-compression="nocomp" colormode="color" dither-mode="0" /&gt;

  &lt;!-- ZEBRA OPTIONS:       Configure options for Zebra/ZPL output                --&gt;
  &lt;!-- form                 Default page size, must be listed in &lt;Forms&gt; below    --&gt;
  &lt;!-- orientation          Default orientation "landscape|portrait"              --&gt;
  &lt;!-- compression          Image compression for graphics embedded in ZPL        --&gt;
  &lt;!--                      'hex' = no compression, data is only hex encoded      --&gt;
  &lt;!--                      'rle' = data is run-length-encoded                    --&gt;  
  &lt;!--                      'png' = data is png and base64 encoded                --&gt;  
  &lt;!-- don't dither text    Text will always be drawn black, no dithering occurs  --&gt;  
  &lt;!--                      This leads to improved text quality                   --&gt;  
  &lt;!-- dither-mode          Specifies how images are converted to black&amp;white     --&gt;  
  &lt;!--                      0 = Use scatter dithering (simulates grayscale)       --&gt;  
  &lt;!--                      1 = Use ordered dithering (simulates grayscale)       --&gt;  
  &lt;!--                      2 = Use threshold dithering (results in b&amp;w only)     --&gt;  
  &lt;!-- scaling              Resolution mode of the Zebra printer device           --&gt;
  &lt;!--                      0 = normal resolution (^JMA  Command)                 --&gt;
  &lt;!--                      1 = half resolution, doubled output size (^JMB Cmd)   --&gt;
  &lt;!-- resolution           resolution of the printer in dpi                      --&gt;
  &lt;!-- Header               custom ZPL code that is printed before each label     --&gt;
  &lt;ZEBRA form="A4" orientation="portrait" compression="rle" scaling="0" 
    dont-dither-text="1" dither-mode="0" resolution="203"&gt;
    &lt;Header&gt;^MMT&lt;/Header&gt;
  &lt;/ZEBRA&gt;

  &lt;!-- Settings for Windows Printers                                              --&gt;
  &lt;WINGDI&gt; 
    &lt;!-- Settings for TBARCODE lib                                                --&gt;
    &lt;!-- drawing-mode       Specifies method for drawing bars on gdi printers     --&gt;
    &lt;!--                    0 = Default                                           --&gt;
    &lt;!--                    1 = Compatible                                        --&gt;
    &lt;!--                        Use the GDI rectangle functions to draw bars.     --&gt;
    &lt;!--                        May result in sub-optimal output quality,         --&gt;
    &lt;!--                        but is compatible to nearly all printers.         --&gt;
    &lt;!--                    2 = Advanced                                          --&gt;
    &lt;!--                        Best quality. Not supported by all printers.      --&gt;
    &lt;!--                    3 = Dual                                              --&gt;
    &lt;!--                        A combination of the GDI drawing methods is used. --&gt;
    &lt;!--                        This method produces correct output on most       --&gt;
    &lt;!--                        printers but might decrease drawing speed.        --&gt;
    &lt;TBARCODE drawing-mode="1" /&gt;
  &lt;/WINGDI&gt;

  &lt;!-- DEFINED FORM SIZES                                                         --&gt;
  &lt;!-- Add YOUR CUSTOM FORM-SIZES to the list and use them in TFORMer             --&gt;
  &lt;!-- Use them by specifying the name of the custom form as output tray name     --&gt;
  &lt;!-- (enter the custom name directly into the tray option in TFORMer Designer)  --&gt;
  &lt;!-- All measurements are specified in 1/1000 millimeters                       --&gt;
   &lt;Forms&gt;
    &lt;Form name="A0"           width="841000"  height="1189000" /&gt;
    &lt;Form name="A1"           width="594000"  height="841000"  /&gt;
    &lt;Form name="A2"           width="420000"  height="594000"  /&gt;
    &lt;Form name="A3"           width="297000"  height="420000"  /&gt;
    &lt;Form name="A4"           width="210000"  height="297000"  /&gt;
    &lt;Form name="A5"           width="148000"  height="210000"  /&gt;
    &lt;Form name="A6"           width="105000"  height="148000"  /&gt;
    &lt;Form name="A7"           width="74000"   height="105000"  /&gt;
    &lt;Form name="A8"           width="52000"   height="74000"   /&gt;
    &lt;Form name="A9"           width="37000"   height="52000"   /&gt;
    &lt;Form name="A10"          width="26000"   height="37000"   /&gt;
    &lt;Form name="B0"           width="1000000" height="1414000" /&gt;
    &lt;Form name="B1"           width="707000"  height="1000000" /&gt;
    &lt;Form name="B2"           width="500000"  height="707000"  /&gt;
    &lt;Form name="B3"           width="353000"  height="500000"  /&gt;
    &lt;Form name="B4"           width="250000"  height="353000"  /&gt;
    &lt;Form name="B5"           width="176000"  height="250000"  /&gt;
    &lt;Form name="B6"           width="125000"  height="176000"  /&gt;
    &lt;Form name="B7"           width="88000"   height="125000"  /&gt;
    &lt;Form name="B8"           width="62000"   height="88000"   /&gt;
    &lt;Form name="B9"           width="44000"   height="62000"   /&gt;
    &lt;Form name="B10"          width="31000"   height="44000"   /&gt;
    &lt;Form name="C0"           width="917000"  height="1297000" /&gt;
    &lt;Form name="C1"           width="648000"  height="917000"  /&gt;
    &lt;Form name="C2"           width="458000"  height="648000"  /&gt;
    &lt;Form name="C3"           width="324000"  height="458000"  /&gt;
    &lt;Form name="C4"           width="229000"  height="324000"  /&gt;
    &lt;Form name="C5"           width="162000"  height="229000"  /&gt;
    &lt;Form name="C6"           width="114000"  height="162000"  /&gt;
    &lt;Form name="C7"           width="81000"   height="114000"  /&gt;
    &lt;Form name="C8"           width="57000"   height="81000"   /&gt;
    &lt;Form name="C9"           width="40000"   height="57000"   /&gt;
    &lt;Form name="C10"          width="28000"   height="40000"   /&gt;
    &lt;Form name="D0"           width="771000"  height="1091000" /&gt;
    &lt;Form name="D1"           width="545000"  height="771000"  /&gt;
    &lt;Form name="D2"           width="385000"  height="545000"  /&gt;
    &lt;Form name="D3"           width="272000"  height="385000"  /&gt;
    &lt;Form name="D4"           width="192000"  height="272000"  /&gt;
    &lt;Form name="D5"           width="136000"  height="192000"  /&gt;
    &lt;Form name="D6"           width="96000"   height="136000"  /&gt;
    &lt;Form name="D7"           width="68000"   height="96000"   /&gt;
    &lt;Form name="E0"           width="800000"  height="1120000" /&gt;
    &lt;Form name="E1"           width="560000"  height="800000"  /&gt;
    &lt;Form name="E2"           width="400000"  height="560000"  /&gt;
    &lt;Form name="E3"           width="280000"  height="400000"  /&gt;
    &lt;Form name="E4"           width="200000"  height="280000"  /&gt;
    &lt;Form name="E5"           width="140000"  height="200000"  /&gt;
    &lt;Form name="E6"           width="100000"  height="140000"  /&gt;
    &lt;Form name="E7"           width="70000"   height="100000"  /&gt;
    &lt;Form name="B0JIS"        width="1030000" height="1456000" /&gt;
    &lt;Form name="B1JIS"        width="728000"  height="1030000" /&gt;
    &lt;Form name="B2JIS"        width="515000"  height="728000"  /&gt;
    &lt;Form name="B3JIS"        width="364000"  height="515000"  /&gt;
    &lt;Form name="B4JIS"        width="257000"  height="364000"  /&gt;
    &lt;Form name="B5JIS"        width="128000"  height="257000"  /&gt;
    &lt;Form name="B6JIS"        width="128000"  height="182000"  /&gt;
    &lt;Form name="B7JIS"        width="91000"   height="128000"  /&gt;
    &lt;Form name="B8JIS"        width="64000"   height="91000"   /&gt;
    &lt;Form name="B9JIS"        width="45000"   height="64000"   /&gt;
    &lt;Form name="B10JIS"       width="32000"   height="45000"   /&gt;
    &lt;Form name="Invoice"      width="140000"  height="216000"  /&gt;
    &lt;Form name="Executive"    width="191000"  height="254000"  /&gt;
    &lt;Form name="Legal"        width="216000"  height="356000"  /&gt;
    &lt;Form name="Letter"       width="216000"  height="279000"  /&gt;
    &lt;Form name="Ledger"       width="432000"  height="279000"  /&gt;
    &lt;Form name="Tabloid"      width="279000"  height="432000"  /&gt;
    &lt;Form name="Broadsheet"   width="432000"  height="559000"  /&gt;
    &lt;Form name="Screen"       width="297000"  height="210000"  /&gt;
    &lt;Form name="Custom"       width="210000"  height="297000"  /&gt;
    &lt;Form name="Comm10"       width="105000"  height="241000"  /&gt;
    &lt;Form name="DL"           width="110000"  height="220000"  /&gt;
    &lt;Form name="Folio"        width="210000"  height="330000"  /&gt;
    &lt;Form name="P1"           width="560000"  height="860000"  /&gt;
    &lt;Form name="P2"           width="430000"  height="560000"  /&gt;
    &lt;Form name="P3"           width="280000"  height="430000"  /&gt;
    &lt;Form name="P4"           width="215000"  height="280000"  /&gt;
    &lt;Form name="P5"           width="140000"  height="215000"  /&gt;
    &lt;Form name="P6"           width="107000"  height="140000"  /&gt;
    &lt;!-- add custom forms below this point --&gt;    
     &lt;Form name="seljpeg"      width="70000"  height="38000"  /&gt;
  &lt;/Forms&gt;
&lt;/TFORMer&gt;
</code></pre>

<p>Here, you can see that for Post Script option, there is no provision of margin-left and margin-right. It is there with PDF  type.</p>

<p>Is there any way so I can set the margins ???</p>
