|
| |
Augmented HTML Statements
The CollinsHTML.js scripts process most standard HTML tags plus the
following tags which help to simply the creation of PDF files
<ASSIGN> Macro, value or database record
|
Property |
Description |
| ID=NAME |
Tag identifier |
| VALUE=... |
Value of the assign tag |
| SQL=statement |
SQL statement |
<CALENDAR>...</CALENDAR>
Create a monthly calendar
|
Propertyy |
Description |
|
Height=pts |
Height of Calendar |
|
Width=pts |
Width of Calendar |
|
Border=n |
Border Width |
|
BorderColor=color |
Border Color |
<GRAPHIC>...</GRAPHIC> Create an Image from set of
Graphic Commands
|
Propertyy |
Description |
|
Height=pts |
Height of Image |
|
Width=pts |
Width of Image |
|
Clip=Yes | No |
If true, Clip all
Graphics to Image Box |
|
Range="xmin,ymin,xmax,ymax" |
Mapping Coordinate Range,
default="0,0,width,height" |
|
Border=n |
Border Width |
|
BgColor=color |
Background Color |
<GROUP> Macro, Create an HTML Group, Repeat 0 or more times.
forces a page break to keep each group on a page
|
Property |
Description |
|
ID=NAME |
Tag identifier |
|
LIST="v1,v2,..." |
List of Values (1 group
per value) |
|
SQL=statement |
SQL statement (1 group
per record) |
|
Count=n |
Repeat Group N times |
|
Columns=n |
Create Multiple Columns
(1 to 30) |
|
Order=LeftRight | TopBottom |
Output Groups in Column
or Row Order, Default = TopBottom |
<IF>html-statements</IF> Macro, conditional include enclosed HTML
Statements
|
Property |
Description |
|
Value=... |
Value to Compare |
|
Contains=match |
Include if Value
Contains match |
|
Equal=match |
Include if Value
equals match |
|
LessThan=match |
Include if Value Less
Than match |
|
GreaterThan=match |
Include
if Value Greater Than match |
|
LE=match |
Include if Value is
Less than or Equal to match |
|
GE=match |
Include if Value is
Grater than or Equal to match |
|
Not |
Negate Condition |
|
Blank |
Include if Value is
Blank |
|
Zero |
Include if Value is
Zero or Blank |
<LOOP> Macro, Loop through a set of Macro statements,
(does not generate output)
|
Property |
Description |
|
ID=NAME |
Tag identifier |
|
LIST="v1,v2,..." |
List of Values (1 loop
per value) |
|
SQL=statement |
SQL statement (1 loop
per record) |
|
Count=n |
Repeat Loop N times |
|
Min=n |
Minimum Loop Value |
|
Maximum=n |
Maximum Loop Value |
|
Increment=n |
Increment Loop Value |
<PDF> Set PDF output properties
|
Propertyy |
Description |
|
Author=... |
PDF Document Author |
|
Database=... |
Attach ADO Database Name |
|
DrawMargins="True
| False" |
Draw PDF Margins (blue
dot line) |
|
Encoded="true
| false" |
PDF Accepts | | encoded
formatting commands |
|
FontColor=color |
Default Font Color |
|
FontName="Times|Courier|Helvetica" |
Default Font Name |
|
FontSize=pts |
Default Font Size |
|
Keywords=... |
PDF Document Keywords |
|
Landscape="True | False" |
Page to Landscape (true)
or Portrait (false) |
|
LeftMargin=inches |
Set
Left Margin |
|
RightMargin=inches |
Set
Right Margin |
|
TopMargin=inches |
Set
Top Margin |
|
BottomMargin=inches |
Set
Bottom Margin |
|
Margins="top,bottom,left,right" |
PDF Margins (Inches)
1 value sets all |
|
PageSize="width,height" |
PDF Page Size (inches)
(portrait referenced) Default "8.5,11" |
|
Subject=... |
PDF Document Subject |
|
Title=... |
PDF Document Title |
|
Watermark=... |
PDF Watermark |
<PageHeader>...<PageHeader> Define HTML that create PDF Page Header
<PageFooter>...<PageFooter> Define HTML that create PDF Page Footer
<RANDOM> Macro, Create a Random List of Values
|
Property |
Description |
|
ID=NAME |
Tag identifier |
|
LIST="v1,v2,..." |
List of Values |
|
SQL=statement |
SQL statement |
|
Min=value |
Minimum Value |
|
Max=value |
Maximum Value |
|
Unique=true |
false |
Requires each returned
values to be unique |
|
Exclude="v1,v2,.." |
Exclude these values from
being returned |
<STORE> Macro, Store a constant into a List
|
Propertyy |
Description |
|
ID=NAME |
Tag Identifier |
|
Value=... |
Value to Store |
|
Reverse="True
| False" |
If true: Reverse output
order to First In Last Out, Default = First In First Out |
MACRO REFERENCE Replace Within the HTML text the Following, References
can be nested
|
HTML Reference |
Replace With |
|
{ID} |
<ASSIGN id=name> Value Next <RANDOM id-=name> value Next <STORE id=name>
<LOOP> <GROUP> <ASSIGN> Value
|
|
{ID.Last} |
Last Value Referenced
<RANDOM> <GROUP> <LOOP>, or <STORE> |
|
{ID.Count} |
Counter (1..n) <RANDOM> <GROUP>
{LOOP}, or <STORE>
|
|
{ID.Index} |
Index (0..n-1) <RANDOM> <GROUP>
<LOOP>, or <STORE>
|
|
{ID.Radian} |
Return converted Degrees to Radians
<STORE> <ASSIGN> <GROUP> <LOOP> |
|
{ID.Rewind} |
Rewind List <STORE> |
|
{ID.field-name} |
Field Value of SQL
statement <ASSIGN>, <RANDOM> or <GROUP> |
|
{Page} |
PDF Current Page Number |
|
{PageTotal} |
PDF total
Pages, valid only in <PageHeader> and <PageFooter> tags |
|
{Date} |
Current Date |
|
{Time} |
Current Time |
|
{DateTime} |
Current Date and Time |
|
{PI} |
Value of PI
"3.1415926..." |
|
{function(arg-list)} |
Perform Function: EVAL, TAN, SIN, COS, ATAN, SQRT, PI, MIN, MAX, ABS, CEIL, FLOOR,
ROUND, POW, LOG, RANDOM, ACOS, ASIN, ESCAPE, UNESCAPE, MOD
Note: Random() return 0 to 1 Random(max) return 1 to max-value Random(min,max) return min value to max value |
PDF Encoded Macros, Text passed to the PDF processor can contain encoded
commands Turn on/off encoding using <PDF> Tag (default = on)
|
Macro |
Description |
|
|S000| - |S377|| |
Single Character Replacement from the SYMBOL font (Octal Value) |
|
|Z000| - |Z377| |
Single Character Replacement from the ZapfDingBat font (Octal Value) |
|
|C000| - |C377| |
Single Character Replacement from the Courier font (Octal Value) |
|
|T000| - |T377| |
Single Character Replacement from the Times Roman font (Octal Value) |
|
|H000| - |H377| |
Single Character Replacement from Helvetia Font (Octal Value) |
|
|^value| |
Superscript Value |
|
|v Value| |
Subscript Value |
|
|sqrt value| |
Square Root (Symbolized) Value |
|
|root n,value| |
Nth root (Symbolized) Value |
|
|f numerator / denominator | |
Fraction (symbolized) |
|