Sample script: element FILE
Here, a plain text FILE descriptionA.txt is to be printed. The number of pages needed to print the document is not known, so PAGE="NEXT" and REPEAT="YES" are specified. The area of the page to be printed is specified as the _PRINTABLE area.
This "features" text is preceded by a BOX containing lists of (productA's) dimensions. The TEXT for the sizes in 'mm' are supplied by file metricA.txt and listed on the left (default ALIGNment). The TEXT for the sizes in 'inches' are supplied by file imperialA.prn and listed on the RIGHT; note that FILETYPE="TEXT" is specified.
<IDF UNITS = "INCHES"> <GROUP HEIGHT="3" FONT="Times New Roman" POINTSIZE="12" SHAPE="BOX"> <FILE FILENAME="featuresA.txt" FILETYPE="TEXT" PAGE="NEXT" TOP="4" FONT="Arial" POINTSIZE="9" ALIGN="CENTRE"/> </PAGE> <PAGE BOUNDS="_PRINTABLE" ALIGN="CENTRE" REPEAT="YES" PAGE="NEXT" > <FILE FILENAME="featuresA.txt" FILETYPE="TEXT" FONT="Arial" POINTSIZE="9" /> </PAGE> </IDF> |
Links: