// This example demonstrates rendering an XSL-FO file to a PDF file.
ApocDriver driver = ApocDriver.Make();
driver.Render(
new FileStream("readme.fo", FileMode.Open),
new FileStream("readme.pdf", FileMode.Create));
// This example demonstrates rendering an XSL-FO file to a PDF file.
Dim driver As ApocDriver = ApocDriver.Make
driver.Render( _
New FileStream("readme.fo", FileMode.Open), _
New FileStream("readme.pdf", FileMode.Create))
// This example demonstrates rendering the result of an XSLT transformation
// into a PDF file.
ApocDriver driver = ApocDriver.Make();
driver.Render(
XslTransformer.Transform("readme.xml", "readme.xsl"),
new FileStream("readme.pdf", FileMode.Create));
// This example demonstrates rendering the result of an XSLT transformation
// into a PDF file.
Dim driver As ApocDriver = ApocDriver.Make
driver.Render( _
XslTransformer.Transform("readme.xml", "readme.xsl"), _
New FileStream("readme.pdf", FileMode.Create))
// This example demonstrates using an XmlDocument as the source of the
// XSL-FO tree. The XmlDocument could easily be dynamically generated.
XmlDocument doc = new XmlDocument()
doc.Load("reader.fo");
ApocDriver driver = ApocDriver.Make();
driver.Render(doc, new FileStream("readme.pdf", FileMode.Create));
// This example demonstrates using an XmlDocument as the source of the
// XSL-FO tree. The XmlDocument could easily be dynamically generated.
Dim doc As XmlDocument = New XmlDocument()
doc.Load("reader.fo")
Dim driver As ApocDriver = ApocDriver.Make
driver.Render(doc, New FileStream("readme.pdf", FileMode.Create))
key from the
current culture's setting
void ApocError(object driver, ApocEventArgs e);
The first parameter driver will be a reference to the
active ApocDriver instance.
[C#]
{ ApocDriver driver = ApocDriver.Make(); driver.OnError += new ApocDriver.ApocEventHandler(ApocError); ... }
void ApocWarning(object driver, ApocEventArgs e);
The first parameter driver will be a reference to the
active ApocDriver instance.
void ApocInfo(object driver, ApocEventArgs e);
The first parameter driver will be a reference to the
active ApocDriver instance.
true if keeps and spans should be ignored
Area instance.
@param fontState a FontState value
@param allocationWidth the inline-progression dimension of the content
rectangle of the Area
@param maxHeight the maximum block-progression dimension available
for this Area (its allocation rectangle)
All OpenType fonts use Motorola-style byte ordering (Big Endian).
The following table lists the primitives and their definition. Note the difference between the .NET CLR definition of certain types and the TrueType definition.
BYTE 8-bit unsigned integer. CHAR 8-bit signed integer. USHORT 16-bit unsigned integer. SHORT 16-bit signed integer. ULONG 32-bit unsigned integer. LONG 32-bit signed integer. Fixed 32-bit signed fixed-point number (16.16) FWORD 16-bit signed integer (SHORT) that describes a quantity in FUnits. UFWORD 16-bit unsigned integer (USHORT) that describes a quantity in FUnits. F2DOT14 16-bit signed fixed number with the low 14 bits of fraction (2.14). LONGDATETIME Date represented in number of seconds since 12:00 midnight, January 1, 1904. The value is represented as a signed 64-bit integer. Tag Array of four uint8s (length = 32 bits) used to identify a script, language system, feature, or baseline GlyphID Glyph index number, same as uint16(length = 16 bits) Offset Offset to a table, same as uint16 (length = 16 bits), NULL offset = 0x0000
For detailed information on the OS/2 table, visit the following link: http://www.microsoft.com/typography/otspec/os2.htm
For more details on the Panose classification metrics, visit the following URL: http://www.panose.com/hardware/pan2.asp
Each of the three alernatives has particular advantages and disadvantages, which will be explained here.
The
The
Finally, the
delim argument are the delimiters
for separating tokens. Delimiter characters themselves will not
be treated as tokens.
hasMoreTokens method.
It exists so that this class can implement the
Enumeration interface.
true if and only if there is at least one token in
the string after the current position; false otherwise.
nextToken method can be called before it generates an
exception. The current position is not advanced.
nextToken method, except
that its declared return value is Object rather than
String. It exists so that this class can implement the
Enumeration interface.