Examples and References > Text Version of a Basic .3f Template File
  
Text Version of a Basic .3f Template File
The code extract shown below is the text version of an a4port.3f file found in an PTC ALD application. This list of macros defines a master page that will only be copied
Note how the code differs from that of an actual document (see Text Version of a Basic .3d Document File. The template contains text and graphic tagging information, page and document layout specifications and keywords to control document handling preferences but does not include any formatting, content or font information. Details of this kind are applied once a content stream has been added to create a document.
fdb

fdt "body",1,""
$<?tlb=1.2*h><?0,1,0,0,0,1,0,0,0,0,5>\

fdt "subpara1",1,""
$<?tlb=1.2*h><?0,0,5,0,5,1,0,0,0,0,5>\

fdt "subpara2",1,""
$<?tlb=1.2*h><?0,0,10,0,10,1,0,0,0,0,5>\

fdt "pagehead",1,""
$<?th=24pt><?2,0,0,0,0,1,0,0,0,0,5>\

fdt "parahead",1,""
$<?th=18pt><?tlb=1.2*h><?0,0,0,0,0,1,0,0,0,0,5>\

fdt "drop",1,""
$<?tlb=1.2*h><?4,2,0,0,0,1,0,0,0,0,5>\

fdt "strm0",0,""
$<body>\

fgo "gr1",3,""
$v,2.00<>
$e<>

fdp "psty0"
$dim 210,297<>
$frame 0,0,210,297<>
$text "strm0",25.4,25.4,25.4,25.4,0,0<>
$column 25.4,184.6<>
$objects "gr1",0,0,0,0,0,0<>

fdd "a4port"
$1x "psty0"<>

fdpref
$s_level 1599<>
$p_level 7<>
$grid 1,1,1,2<>
$pgxy 1,1<>
$numbers 1,0<>
$units 2,2,5<>
$rot_snap 15,0<>
$ruler 0,2,2<>
$col_snap 1<>
$line_snap 0<>
$p_ctrl <>

fde