Inline level formatting objects

Một phần của tài liệu Java programmers guide (Trang 186 - 200)

The objects described in this section are used directly contain and format text and other inline elements which are usually formatted across the page.

Ibex PDF Creator Developers Guide

23.3.1 bidi-override

Description

This element is used when the Unicode BIDI algorithm fails to force some text to be written in a specific writing direction.

Child element(s)

This element can contain the following elements:

text

basic-link  (zero or more) bidi-override  (zero or more) block  (zero or more)

block-container  (zero or more) character  (zero or more) external-graphic  (zero or more)

float  (one or more, cannot be used inside an out-of-line element) footnote  (one or more, cannot be used inside an out-of-line element) index-page-citation-last  (zero or more)

index-range-begin  (one or more, subject to constraints specified for this element) index-range-end  (one or more, subject to constraints specified for this element) inline  (zero or more)

inline-container  (zero or more)

instream-foreign-object  (zero or more) leader  (zero or more)

list-block  (zero or more) page-number  (zero or more)

page-number-citation  (zero or more) page-number-citation-last  (zero or more)

retrieve-marker  (one or more, subject to constraints specified for this element) scaling-value-citation  (zero or more)

table  (zero or more)

table-and-caption  (zero or more)

wrapper  (one or more, subject to constraints specified for this element)

Ibex PDF Creator Developers Guide

184 Elements and Attributes

Parent element(s)

This element can be contained in the following elements:

index-page-citation-range-separator index-page-citation-list-separator index-page-number-prefix index-page-number-suffix wrapper

basic-link title block inline folio-suffix folio-prefix bidi-override marker

Attributes

The following attributes can be used on this element:

font-family font-selection-strategy

font-size font-stretch

font-size-adjust font-style

font-variant font-weight

margin margin-top

margin-bottom margin-right

margin-left relative-position

bottom top

right left

color direction

id index-class

index-key letter-spacing

line-height score-spaces

unicode-bidi word-spacing

Ibex PDF Creator Developers Guide

23.3.2 character

Description

This element is used to insert a single character into the content. Given that modern XML editors can insert all Unicode characters there is little requirement to use this element.

Child element(s)

This element can contain the following elements:

This element must be empty.

Parent element(s)

This element can be contained in the following elements:

index-page-citation-range-separator index-page-citation-list-separator index-page-number-prefix index-page-number-suffix wrapper

basic-link title block inline folio-suffix folio-prefix bidi-override marker

Attributes

The following attributes can be used on this element:

background-attachment background-color

background-image background-repeat

background-position-horizontal background-position-vertical

border border-before-color

border-before-style border-before-width

Ibex PDF Creator Developers Guide

186 Elements and Attributes

border-after-color border-after-style

border-after-width border-start-color

border-start-style border-start-width

border-end-color border-end-style

border-end-width border-top

border-top-color border-top-style

border-top-width border-bottom

border-bottom-color border-bottom-style

border-bottom-width border-left

border-left-color border-left-style

border-left-width border-right

border-right-color border-right-style

border-right-width padding

padding-before padding-after

padding-start padding-end

padding-top padding-bottom

padding-left padding-right

font-family font-selection-strategy

font-size font-stretch

font-size-adjust font-style

font-variant font-weight

margin margin-top

margin-bottom margin-right

margin-left relative-position

bottom top

right left

alignment-adjust treat-as-word-space

alignment-baseline baseline-shift

character color

dominant-baseline text-depth

text-altitude glyph-orientation-horizontal

glyph-orientation-vertical id

index-class index-key

keep-with-next keep-with-previous

Ibex PDF Creator Developers Guide

letter-spacing line-height

score-spaces suppress-at-line-break

text-decoration text-shadow

text-transform visibility

word-spacing

Ibex PDF Creator Developers Guide

188 Elements and Attributes 23.3.3 initial-property-set

Description

This element is used to format the first line of a block. It does not create any areas but its attributes are applied to the first line in the block which contains the initial-property-set.

Ibex does not currently implement this functionality Child element(s)

This element can contain the following elements:

This element must be empty.

Parent element(s)

This element can be contained in the following elements:

Attributes

The following attributes can be used on this element:

background-attachment background-color

background-image background-repeat

background-position-horizontal background-position-vertical

border border-before-color

border-before-style border-before-width

border-after-color border-after-style

border-after-width border-start-color

border-start-style border-start-width

border-end-color border-end-style

border-end-width border-top

border-top-color border-top-style

border-top-width border-bottom

border-bottom-color border-bottom-style

border-bottom-width border-left

border-left-color border-left-style

border-left-width border-right

border-right-color border-right-style

border-right-width padding

Ibex PDF Creator Developers Guide

padding-before padding-after

padding-start padding-end

padding-top padding-bottom

padding-left padding-right

font-family font-selection-strategy

font-size font-stretch

font-size-adjust font-style

font-variant font-weight

margin margin-top

margin-bottom margin-right

margin-left relative-position

bottom top

right left

color letter-spacing

line-height score-spaces

text-decoration text-shadow

text-transform word-spacing

For an example showing the use of the element see .

Ibex PDF Creator Developers Guide

190 Elements and Attributes 23.3.4 external-graphic

Description

This element is used to include an image into the document.

This is an inline element so it must be contained in a block element.

The image source is defined by thesrcattribute.

Thesrcattribute is called auri-specificationand must follow the following rules:

A sequence of characters that is "url(", followed by optional white space, followed by an optional single quote (") or double quote (") character, followed by a URI reference as defined in [RFC2396], followed by an optional single quote (") or double quote (") character, followed by optional white space, followed by ")". The two quote characters must be the same and must both be present or both be absent. If the URI reference contains a single quote, the two quote characters must be present and be double quotes.

This means the following are all valid values for thesrcattribute:

uri(ibex.jpg) uri("ibex.jpg") uri("ibex.jpg")

url(http://www.xmlpdf.com/images/download2.gif)

To set the size of the image use thecontent-heightandcontent-widthattributes.

Child element(s)

This element can contain the following elements:

This element must be empty.

Parent element(s)

This element can be contained in the following elements:

index-page-citation-range-separator index-page-citation-list-separator index-page-number-prefix index-page-number-suffix wrapper

basic-link title

Ibex PDF Creator Developers Guide

block inline folio-suffix folio-prefix bidi-override marker

Attributes

The following attributes can be used on this element:

background-attachment background-color

background-image background-repeat

background-position-horizontal background-position-vertical

border border-before-color

border-before-style border-before-width

border-after-color border-after-style

border-after-width border-start-color

border-start-style border-start-width

border-end-color border-end-style

border-end-width border-top

border-top-color border-top-style

border-top-width border-bottom

border-bottom-color border-bottom-style

border-bottom-width border-left

border-left-color border-left-style

border-left-width border-right

border-right-color border-right-style

border-right-width padding

padding-before padding-after

padding-start padding-end

padding-top padding-bottom

padding-left padding-right

relative-position bottom

top right

left margin

Ibex PDF Creator Developers Guide

192 Elements and Attributes

margin-top margin-bottom

margin-right margin-left

space-before space-after

start-indent end-indent

alignment-adjust alignment-baseline

allowed-height-scale allowed-width-scale

baseline-shift block-progression-dimension

clip content-type

content-height content-width

display-align dominant-baseline

height id

index-class index-key

inline-progression-dimension keep-with-next

keep-with-previous line-height

overflow scaling

scaling-method src

text-align width

For an example showing the use of the element see .

Ibex PDF Creator Developers Guide

23.3.5 instream-foreign-object

Description

This element is used to place an object which is contained in the XML into the PDF document. The only supported object type is an SVG image.

An example of include an inline SVG image is:

Figure 23-9:

<instream-foreign-object width="20%" height="1cm">

<svg xmlns:fo="http://www.w3.org/TR/xsl/Format"

xmlns="http://www.w3.org/2000/svg">

<path style="stroke-width:1;fill:rgb(246,127,0);"

d="M204.33 139.83 C196.33 133.33 z" />

</svg>

</instream-foreign-object>

Not all implementations of Ibex support SVG images.

Child element(s)

This element can contain the following elements:

This element must be empty.

Parent element(s)

This element can be contained in the following elements:

index-page-citation-range-separator index-page-citation-list-separator index-page-number-prefix index-page-number-suffix wrapper

basic-link title block inline folio-suffix folio-prefix bidi-override marker

Ibex PDF Creator Developers Guide

194 Elements and Attributes

Attributes

The following attributes can be used on this element:

background-attachment background-color

background-image background-repeat

background-position-horizontal background-position-vertical

border border-before-color

border-before-style border-before-width

border-after-color border-after-style

border-after-width border-start-color

border-start-style border-start-width

border-end-color border-end-style

border-end-width border-top

border-top-color border-top-style

border-top-width border-bottom

border-bottom-color border-bottom-style

border-bottom-width border-left

border-left-color border-left-style

border-left-width border-right

border-right-color border-right-style

border-right-width padding

padding-before padding-after

padding-start padding-end

padding-top padding-bottom

padding-left padding-right

relative-position bottom

top right

left margin

margin-top margin-bottom

margin-right margin-left

space-before space-after

start-indent end-indent

alignment-adjust alignment-baseline

allowed-height-scale allowed-width-scale

baseline-shift block-progression-dimension

Ibex PDF Creator Developers Guide

clip content-type

content-height content-width

display-align dominant-baseline

height id

index-class index-key

inline-progression-dimension keep-with-next

keep-with-previous line-height

overflow scaling

scaling-method text-align

width

Một phần của tài liệu Java programmers guide (Trang 186 - 200)

Tải bản đầy đủ (PDF)

(368 trang)