Presentation of an SPDL document requires that the Presentation Process interpret the content of the SPDL document. The content of an SPDL document consists of the values of the TOKENSEQUENCE structure elements.
The processing of the content of a TOKENSEQUENCE
consists of interpreting the content by the Content Processor in
a
Each PAGE also has an associated with Current Page Image. The Current Page Image is affected by the processing of TOKENSEQUENCE structure elements which are immediately subordinate to the PAGE BODY and to any subordinate PICTURE structure elements.
A BLOCK structure element shall be one of:
Every BLOCK is either a TOP LEVEL STRUCTURE structure element or subordinate to another BLOCK.
Each BLOCK has an associated
The initial Block State of a BLOCK depends on whether the BLOCK is a TOP LEVEL STRUCTURE structure element or is subordinate to a superior BLOCK. The Block State of a BLOCK may be changed as a result of the processing of its subordinates.
If one BLOCK is subordinate to another BLOCK, the Block State of the subordinate BLOCK is distinct from the Block State of the superior BLOCK. Changes to the Block State of the subordinate BLOCK do not affect the Block State of the superior BLOCK.
The Block State consists of:
The Current Virtual Machine State consists of:
A BLOCK which is a TOP LEVEL STRUCTURE is either a DOCUMENT or an ENVIRONMENT RESOURCE. The initial Block State of a BLOCK which is a TOP LEVEL STRUCTURE shall be as follows.
The set of presentation parameters of the Initial Block State
of a DOCUMENT is determined by Document Production
Instructions as specified by The set of defined resources of the Initial Block State of
a TOP LEVEL STRUCTURE consists of the set of
resources in the environment of the Presentation Process.
The set of declared resources of the Initial Block State of
a TOP LEVEL STRUCTURE is empty.
The Initial The Initial The initial value of the Inheritable Context Stack of the
Initial Block State of a TOP LEVEL STRUCTURE consists
of:
The Dictionaries referenced by The Operand Stack of the Initial Block State of
a TOP LEVEL STRUCTURE is empty.
The Context Stack of the Initial Block State of
a TOP LEVEL STRUCTURE consists of:
The Dictionaries referenced by The Graphics State Stack of the Initial Block State of
a TOP LEVEL STRUCTURE consists of a single graphics
state, which is a copy of the initial Current Graphics State.
The Current Graphics State of the Initial Block State of
a TOP LEVEL STRUCTURE consists of the default values
of the Graphics State Variables as specified in The Ordered Set of The set of referenced objects of the Initial Block State of
a TOP LEVEL STRUCTURE consists of the Dictionaries
referenced by The set of state variables of the Initial Block State of
a TOP LEVEL STRUCTURE consists of the default values
of the State Variables as specified in The initial Block State of a BLOCK which is
subordinate to a higher level BLOCK shall be as
follows.
The set of presentation parameters of the Initial Block State
of a subordinate BLOCK is determined by Document
Production Instructions as specified by The set of defined resources of the Initial Block State of a
subordinate BLOCK shall be the set of defined
resources in the Block State of the most immediately
superior BLOCK at the beginning of the processing of
the current BLOCK.
The set of declared resources of the Initial Block State of a
subordinate BLOCK shall be the set of declared
resources in the Block State of the most immediately
superior BLOCK at the beginning of the processing of
the current BLOCK.
The Initial The Initial where The Initial The initial value of the Inheritable Context Stack of the
Initial Block State of a subordinate BLOCK is a copy
of the Inheritable Context Stack of the Block State of the most immediately
superior BLOCK at the beginning of the processing of
the current BLOCK.
The Operand Stack of the Initial Block State of a
subordinate BLOCK is empty.
The Context Stack of the Initial Block State of a
subordinate BLOCK is a copy of the Context Stack of
the Block State of the most immediately
superior BLOCK at the beginning of the processing of
the current BLOCK.
The Current Graphics State of the Initial Block State of a
subordinate BLOCK is a copy of the Current Graphics
State of the Block State of the most immediately
superior BLOCK at the beginning of the processing of
the current BLOCK.
The Current Graphics State of the Initial Block State of a
subordinate BLOCK is a copy of the Current Graphics
State of the Block State of the most immediately
superior BLOCK at the beginning of the processing of
the current BLOCK.
The Ordered Set of SaveObjects of the Initial Block State of
a subordinate BLOCK is empty.
The Set of Referenced Objects of the Initial Block State of a
subordinate BLOCK is a copy of the Set of Referenced
Objects of the Block State of the most immediately
superior BLOCK at the beginning of the processing of
the current BLOCK.
The values of the State Variables of the Initial Block State
of a subordinate BLOCK is a copy of the values of the
State Variables of the Block State of the most immediately
superior BLOCK at the beginning of the processing of
the current BLOCK.
There is a Current Page Image created for
each PAGE of the SPDL document during document
processing. The Current Page Image for each PAGE is
initialized to an empty page image at the beginning
of PAGE processing, and is modified by the processing
of TOKENSEQUENCE structure elements which are
immediately subordinate to subordinate PAGE BODY
structure elements or by NON-SPDL PICTURE
structure elements. The processing of TOKENSEQUENCE
structure elements which are not immediately subordinate to
a PICTURE BODY may affect the Block State but not the
state of the Current Page Image.
The Current Page Image is fully addressable
during PAGE processing. A Presentation Process which
can only mark on one part of the medium at a time creates a
virtual page image and transfers that page image to the medium
one area at a time. The actual presentation of the Current Page
Image of a PAGE on the presentation surface may be
done incrementally, as the TOKENSEQUENCE structure
elements are processed, or the changes to the page image may be
accumulated until the processing of the PAGE is
complete and then transferred to the medium.
The final result of the processing of the PAGE is
the rendering of the page image which is the result of the
sequence of basic imaging operations on the medium. When the
transfer of the page image to the presentation surface is
complete, the rendered page image contains all of the effects
produced by the processing of the PAGE. The effect of
rendering an empty page image is the natural color of the medium
on which the page image is being presented.
The interface to the Content Processor is specified as an
abstract procedure call. The arguments of the call to the
Content Processor consist of:
The content value represents an instance of the Content
Representation and Interchange Format. The content value may be
either:
The Binary Content Representation and Interchange Format is
specified in A Context of Interpretation consists of:
The Context of Interpretation used for an instance of content
processing is derived from the current Block State of the most
immediately superior BLOCK as described below.
The content notation identifier specifies whether the content
value consists of a binary content value or a clear text content
value.
The content notation identifier of a Context of
Interpretation derived from the current Block State of
a BLOCK which is an ENVIRONMENT RESOURCE
identifies the content value as being
The content notation identifier of the Context of
Interpretation derived from the current Block State of
a BLOCK which is a PICTURE identifies the
content value as being
The set of declared resources is the Set of Declared
Resources of the Block State of the most immediately
superior BLOCK.
The Initial The current abort policy is a copy of the
The Virtual Machine State consists of a copy of the Current
Virtual machine State of the Block State of the most immediately
superior BLOCK A Current Page Image is created for each PAGE of
the SPDL document. The Current Page Image of the most
immediately superior PAGE passed to the Content
Processor for the processing of the content of
each TOKENSEQUENCE which is immediately subordinate
to a PICTURE BODY.
Content processing consists of the interpretation of a
content value as a sequence of tokens in the content notation
specified by the content notation identifier, and the processing
of those tokens by the Content Processor. Content processing may
affect the Virtual Machine State of the Context of
Interpretation which is passed to the Content Processor, and may
also affect the Current Page Image if one was passed to the
Content Processor as one of the arguments of the procedure call.
The effect of content processing on the Virtual Machine State
and the Current Page Image is specified by Upon completion of an instance of content processing, the
Content Processor returns
The returned Virtual Machine State is the result of the
effects of content processing on the Virtual Machine State of
the Context of Interpretation passed by the Structure Processor.
The way in which the returned Virtual Machine State affects the
Block State of the most immediately superior BLOCK is
specified as part of the processing of the immediately superior
structure elements.
If a Current Page Image was passed as one of the arguments of
the call to the Content Processor, it is returned at the
completion of the instance of content processing. The returned
Current Page Image is the result of the effects of content
processing on the Current Page Image passed by the Structure
Processor.
The status shall be one of:
The meaning of A TOKENSEQUENCE structure element shall be a base
structure element. The value of a TOKENSEQUENCE shall
be a value of type Each TOKENSEQUENCE structure element is
immediately subordinate to one of:
The processing of a TOKENSEQUENCE structure
element consists of calling the Content Processor and making
specified changes to the Block State of the most immediately
superior BLOCK. If the TOKENSEQUENCE is
immediately subordinate to a PICTURE BODY, content
processing may also include making changes to the Current Page
Image. The changes to the state of the most immediately
superior BLOCK depend on the immediately superior
structure element, and are specified as part of the processing
of that structure element. A structure error or warning occurs
if the status returned by the Content Processor is other than
Medium selection and the association of page images with
instances of the media is a complex process which involves
several presentation parameters.
Each PAGESET in a DOCUMENT may contain
a Page Select Document Production Instruction which specifies
which of the PAGE structure elements in
the PAGESET are to be considered to be part of
the DOCUMENT. A PAGE structure element
which is excluded by a Page Select Document Production
Instruction in any PAGESET is ignored for the
purposes of DOCUMENT processing.
The PAGEs of the DOCUMENT are
the PAGE structure elements which are not excluded by
Page Select Document Production Instructions. Each of
these PAGEs is assigned an Each PAGE of the DOCUMENT which is not
excluded by Supplementary Page Select DPI has
associated with it a A Supplementary Page Select Document Production Instruction
in Supplementary DPI can select a subset of
the PAGEs of the DOCUMENT which are not
excluded by Document Page Select Document Production
Instructions for a particular instance of presentation. If a
Supplementary Page Select Document Production Instruction in
selects a subset of the PAGEs of
the DOCUMENT for a particular instance of
presentation, those PAGEs presented retain the
ordinal page numbers assigned to them by processing the
entire DOCUMENT, including those PAGEs
excluded by the Supplementary Page Select Document Production
Instruction (but not those excluded by Page Select Document
Production Instructions).
The specification of the media to be used for document
presentation is a two step process:
Medium declaration and selection are
specified in Each PAGE of the DOCUMENT has
associated with it a If there is a Current Side Document Production Instruction
associated with the PAGE, the value of the
If the value of the If the value of the If the value of the Each of the page images which was associated with one of
the PAGEs which was selected for the current instance
of presentation as specified in If the value of If the value of If the value of The Current Page Image associated with a PAGE is
presented on a new instance of the medium if any of the
following is true:
The last condition is satisfied only when the actual media on
which the two page images is placed are placed are different. If
the same medium is assigned to two
different MEDIUM SPECIFICATIONs, consecutive page
images shall not be placed on different instances of the medium
simply because the MEDIUM SPECIFICATIONs are
different.
If the value of the The placement of the page image generated by
a PAGE on an imageable surface of the medium is
determined by
Each imageable surface has associated with it
The reference orientation and the location and orientation of
the medium Reference Coordinate System on the medium are
functions of the medium and not of the page image.
For media which have a distinguished natural viewing
orientation, the reference orientation shall be the natural
viewing orientation of the medium.
For media such as paper which have no distinguished natural
viewing orientation, the reference orientation shall be with the
long edge vertical (portrait orientation).
For rectangular media, the location and orientation of the
medium Reference Coordinate System on the medium shall be such
that with the medium oriented in its reference orientation:
For non-rectangular media, the location and orientation of
the medium Reference Coordinate System on the medium is a
property of the medium, but should approximate the placement of
the Reference Coordinate System for rectangular media.
When page images are placed on both sides of a two sided
medium, the reference orientation for the second (reverse) side
shall be the orientation that results from rotating the medium
around an axis which coincides with the The values of Softcopy devices may place page images on virtual
presentation surfaces which can then be viewed on the physical
presentation surface. For such devices, each virtual
presentation surface is treated as a separate instance of the
medium. The mapping of the virtual presentation surfaces to the
physical display surface and the ability of the system to
preserve a virtual presentation surface for future viewing are
system dependent.
The placement of the Current Page Image for
the PAGE on the imageable surface of the medium
depends on the value of the If the value of the If the value of the If the value of the The then Initial If the value of the If the value of the If the value of the If the value of the Set of Defined Resources
Set of Declared Resources
Initial CurrentTransformation
Inheritable Context Stack
Operand Stack
Context Stack
Graphics State Stack
Current Graphics State
Ordered Set of SaveObjects
Set of Referenced Objects
State Variables
Initial Block State of a
Subordinate BLOCK
Set of Presentation Parameters
Set of Defined Resources
Set of Declared Resources
Initial CurrentTransformation
Inheritable Context Stack
Operand Stack
Context Stack
Graphics State Stack
Current Graphics State
Ordered Set of SaveObjects
Set of Referenced Objects
State Variables
Current Page Image
Interface to the Content Processor
Content value
Context of Interpretation
Content Notation Identifier
Set of Declared Resources
Initial CurrentTransformation
Current Abort Policy
Virtual Machine State
Current Page Image
Content Processing
Return
TOKENSEQUENCE
Association of Page Images with Instances of the
Media
Page Selection and Numbering
Medium Declaration and Selection
Current Side Presentation Parameter
Current Side Document Production Instruction
Simplex
Duplex or Tumble-Duplex
Other values of Plex
Association of Page Images with Instances of the
Media
One sided printing
Two sided printing
Placement of the Page Image on the Medium
Location and Orientation of the Reference
Coordinate System on the Medium
Reference Orientation
Medium Reference Coordinate System for
Rectangular Media
Medium Reference Coordinate System for
Non-Rectangular Media
Two Sided Media
MediumXSize and MediumYSize
Virtual Presentation Surfaces
Placement of the Page Image on the Imageable
Surface of the Medium
Simplex or Duplex
Tumble Duplex
Other values of plex
Initial CurrentTransformation
Simplex
Duplex
Tumble Duplex
Other values of Plex