
// Document Attribute Tags
The following named values are used by the DOCUMENTWRITER. They are hints that 
control features of one or more formats supported by the DOCUMENTWRITER. As 
hints, they may not be recognized by all formats or other classes of XIPS.

// EXAMPLE
...
DOCUMENTWRITER dw = CreateDocumentWriter (filename: "myfile", format:"pdf");
dw.setAttr (name:"_DIOcreator", obj:"Me");
dw.setAttr (name:"_PDFmediabox", obj: (0,0,612,792) );
...


// DOCUMENTWRITER Attributes
_DIObinarycomp:INTEGER         Use one of the XIPCompression values to set the default compression for binary data.
_DIOcontonecomp:INTEGER        Same as _DIObinarycomp but used for contone data.
_DIOcreator:STRING             Provide the /Creator string to be placed in the PDF output.
_DIOjb2type:INTEGER            Use 1 for huffman. Use 0 for arithmetic. Corresponds to JBIG2 "Profile" types 1 or
                               3 for Huffman or Arithmetic coding.
_DIOjb2lossless:BOOLEAN        If true, jbig2 is set to lossless tokenization.
_DIOjpegqual:INTEGER           Parameter to quantify jpeg compression quality setting.
_DIOnoPageNumFilename:BOOLEAN  Document writer will not append page numbers if TRUE to the filename
                               for single page formats (e.g. jpeg)
_DIOTmpLocation:STRING         Description to be filled in

_PDFarchive:BOOLEAN            Setting for PDF/A, archive format
_PDFcenter:BOOLEAN             The center of the image becomes the center of the page
_PDFdeflateText:BOOLEAN        Deflate compression applied to text in output file
_PDFlinearized:BOOLEAN         Output PDF will be linearized
_PDFmediabox:LIST              Media box (x,y,w,h), in point units, ex., (0,0,612,792) will give an 8.5x11 inch page
_PDFmetadata:STRING            Specify a STRING of valid, pre-formatted, XML
                               meta-data that is to be embedded in the PDF file.
_PDFpasswd:STRING              Set user password for output PDF doc. This results in encrypted PDF output.
_PDFmasterpasswd:STRING        Set master password for output PDF doc.  This results in encrypted PDF output.
_PDFrestrict:LIST              Set restrictions on encrypted PDF file  (requires _PDFmasterpassword to be set also). 
                               The list contains comma separated list of STRINGS that define desired access
                               restrictions. Access restrictions are enforced by PDF reader  (i.e., Adobe Reader,
                               KPDF, etc.).  The restrictions choices consist of one or more of the following:

                               "noprint"       Acrobat will prevent printing the file.
                               "nomodify"      Acrobat will prevent users from adding form fields or making
                                               any other changes.
                               "nocopy"        Acrobat will prevent copying and extracting text or graphics,
                                               and will disable the accessibility interface.
                               "noannots"      Acrobat will prevent adding or changing comments or form fields.
                               "noforms"       (PDF 1.4) Acrobat will prevent form field filling, even if
                                               noannots has not been specified.
                               "noaccessible"  (PDF 1.4) Acrobat will prevent extracting text or graphics
                                               for accessibility purposes (such as a screenreader program).
                               "noassemble"    (PDF 1.4) Acrobat will prevent inserting, deleting, or rotating
                                               pages and creating bookmarks and thumbnails, even if nomodify
                                               has not been specified.
                               "nohiresprint"  (PDF 1.4) Acrobat will prevent high-resolution printing. If
                                               noprint has not been specified printing is restricted to the
                                               print as image feature which prints a low-resolution
                                               rendition of the page.
                               "plainmetadata" (PDF 1.5) Keep document metadata unencrypted even for encrypted
                                               documents. This relates only to XMP metadata, but not to document
                                               info fields.

_XPScreator:STRING             Sets the creator script in the XPS container: default is "Xerox Image Path Service"
_XPSisJPEGXR:INTEGER           Set to 1 if JPEG XR format is desired: default is jpg
_XPSisTIFF:INTEGER             Set to 1 if TIFF format is desired: default is png
_XPSkeyword:STRING             A tag (word) that can be used for classification of an XPS file. One can search for
                               all documents that are in a particular category using a keyword value. A XPS document
                               can have none, one, or more keywords.
_XPSpageHeight:DOUBLE          Set the desired page height, see _XPSunit for type
_XPSpageWidth:DOUBLE           Set the desired page width, see _XPSunit for type
_XPSsecurity:INTEGER           Keeps tmp files when security is set to 1
_XPStitle:STRING               Sets internal title string for the XPS container, no default
_XPSunit:INTEGER               Page unit, 1=inches, 2=mm
_XPScoalesce:BOOLEAN           If the XIPIMAGE has OCR data it will attempt to coalesce words into line groups.
                               This enables the XPS reader to capture connected words.
_XPSinterleaveOrder:STRING     Specifies packaging order for major parts of an XPS package. Valid values are
                               "XpsNoInterleavingStrategy" and "XpsResourcesLastStrategy". Default is
                               XpsNoInterleavingStrategy.
_XPScertFile:STRING            Set X509 certificate filename to use to digitally sign XPS package.
                               File format must be pkcs12.
_XPScertPassword:STRING        Optional password for X509 certificate file.


// XIPIMAGE Attributes
_DIOWorldCoords:BOOLEAN        Indicates the coordinate system in which the XIPIMAGE is defined.
                               If TRUE, the XIPIMAGE is defined in world coordinates; otherwise it is defined
                               in screen coordinates.
_PDFrotate:INTEGER             Indicates that the XIPIMAGE should be written to a PDF file with the /Rotate in
                               the page dictionary. Valid values are 90, 180, 270. When reading a page from a PDF
                               file, DOCUMENTREADER will set this value on the XIPIMAGE when /Rotate operation is
                               found in the page dictionary. The page transformation procedure will also apply 
                               this attribute when transforming a page for document writing.
_PDFdoBookmark:BOOLEAN         Add a PDF bookmark for this page


// XIPLAYER Attributes
_DIOMatrixTransform:LIST       Indicates that this layer has a graphics transformation associated with it. The
                               LIST shall contain six DOUBLE precision values that define the affine transformation
                               to render the layer in device space. The six DOUBLE precision values are specified
                               in pixel units. The appropriate affine transformation (affine2d) should be derived
                               using these six values and the resolution of the device space.
