Description: The Values have the following meaning:
Example:
[001] <ml:document
template="file:pdftemplates/FormFieldsEnumerator-final-1.3.pdf"
template-in-memory="on"
...>
Attribute:
|
||||||||||||||||||||||||||||||||||||||||||||
Value:
|
on |off | true | false |
Initial:
|
off |
Applies to:
|
ml:document |
Inherited:
|
No, a value is required |
Description:
The template-in-memory attribute defines whether the template, after it has been parsed, must be kept in memory so a second reading of the document can be avoided at the moment of generating the new document based on this template.
[001] <ml:document
template="file:pdftemplates/FormFieldsEnumerator-final-1.3.pdf"
template-in-memory="on"
...>
In order to define the content of the template's acrofields two new elements have been defined:
ml:acroform
The ml:acroform element just acts as a container element for the ml:acrofield elements.
[001] [002] <ml:acroform> [003] <ml:acrofield ...</ml:acrofield> [004] ... [005] </ml:acroform>
ml:acrofield
The ml:acofield element defines the content of a field contained in the PDF 'template' document.
[001] <ml:acroform> [002] <ml:acrofield name='InvoiceNumber'><xsl:value-of select='data/invoicenumber' readonly='on'/> </ml:acrofield> [004] <ml:acrofield name='InvoiceDate'><xsl:value-of select='data/invoicedate' readonly='on'/></ml:acrofield> [006] ... [007] </ml:acroform>
The name attribute defines the field to be filled (this is the field's name as defined in the PDF 'template' document).
The readonly defines if the field must be marked as readonly in the document to be generated.
When the document is generated following is done:
Below you'll find an example of the line in the log file:
[001] DEBUG [main] Start reading template file: c:/templates/FormFieldsEnumerator.pdf [003] DEBUG [main] Acrofields: Button, CheckBox1, CheckBox2, TextBox1, TextBox2, [005] DEBUG [main] End reading template file: (491 elapsed (milliseconds))
DEBUG.During the parsing of the template some errors can occur:
As of this version the regular ml: elements can be used to 'stamp' an existing PDF document. This way new information can be added on a document existing pages.
The .xsl/.mill document should refer to an existing PDF document.
Element_acrofield_FormFieldsEnumerator-stamp-only.mill example in the samples/mill/ directory contained in the download.In order to use the pdf document as a template following needs to be done:
ml: elements to 'stamp' the page(s).The ml:document element has been extended with 2 new attributes:
template
Value:
|
<name> |
Initial:
|
an empty name |
Applies to:
|
ml:document |
Inherited:
|
No, a value is required |
Description:
The template attribute defines the location of the PDF document that will act as 'template'.
Values have the following meaning:
|
This value indicates the name (and location) of the PDF document (acting as 'template') to use. |
Example:
[001] [002] <ml:document template="file:pdftemplates/FormFieldsEnumerator-final-1.3.pdf" template-in-memory="on" ...>
template-in-memory
Value:
|
on |off | true | false |
Initial:
|
off |
Applies to:
|
ml:document |
Inherited:
|
No, a value is required |
Description:
The template-in-memory attribute defines whether the template, after it has been parsed, must be kept in memory so a second reading of the document can be avoided at the moment of generating the new document based on this template.
[001] [002] <ml:document template="file:pdftemplates/FormFieldsEnumerator-final-1.3.pdf" template-in-memory="on" ...>
XMLMill can also fill the acrofields of a PDF document and at the same time stamp its' pages.
To do this the ml:acroform and other ml: elements are combined in one .xsl/.mill document
For more information please check the previous two sections Complete Acrofields of an existing PDF document and Stamp the page(s) of an existing PDF document.
Element_acrofield_FormFieldsEnumerator-form-and-stamp.mill example in the samples/mill/ directory contained in the download.|
Copyright © 2001 - 2004. All rights reserved. XMLMill and XMLMill logo are trademarks of Pecunia Data Systems, bvba.
|