# US 2005/0097448 A1 · Flexible layout when flowing XSL-FO content into PPML copy holes

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2005/0097448 A1
- Document ID: US20050097448A1
- Status: Published application
- Kind: A1
- Application number: 10/842,557
- Filed: 2004-05-11
- Published: 2005-05-05
- Earliest claimed: 2003-10-31
- Assignees: Hewlett-Packard Development Company, L.P.
- Inventors: Fabio Giannetti; Roger Gimson
- Web page: https://patentgrep.com/patent/US20050097448A1

## CPC

- G06F 40/174: Form filling; Merging
- G06F 40/143: Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

There is disclosed a method and apparatus for laying out at least one document page having at least one variable content copy hole; fitting a variable content into a page; and rendering said page.

## Claims

### Claim 1

A method of processing a document comprising:
creating a plurality of copy holes in a PPML document; and
mapping said PPML copy holes into a plurality of pages of an XSL-FO document.

### Claim 2

A method of printing data comprising a plurality of individual print items, said method comprising:
laying out at least one document page having at least one variable content copy hole;
abstracting a page description language copy hole into a document description language page;
fitting a variable content into a page;
rendering said page;
mapping said page to a copy hole formed in a page description language document; and
printing said rendered page within said variable content copy hole.

### Claim 3 (depends on 2)

The method as claimed in claim 2, wherein said page comprises a page in extensible style sheet language formatting objects (XSL-FO).

### Claim 4 (depends on 2)

The method as claimed in claim 2, wherein said copy holes are contained in pages of said PPML document; and
said pages of said PPML document are mapped to pages in said XSL-FO document.

### Claim 5

A rendering command extension for extensible style sheet language, said rendering command comprising instructions to a rendering engine for modifying a content such that when said content is modified, it fits within a predetermined area.

### Claim 6 (depends on 5)

The command as claimed in claim 5, said command comprising instructions for:
changing a text font size within predetermined limits.

### Claim 7 (depends on 5)

The command as claimed in claim 5, comprising instructions for modifying a text line spacing.

### Claim 8 (depends on 5)

The command as claimed in claim 5, comprising instructions for changing a magnification of an image.

### Claim 9 (depends on 5)

The command as claimed in claim 5, said command comprising instructions for modifying a block layout of said content.

### Claim 10 (depends on 5)

The command as claimed in claim 5, said command comprising instructions for modifying a margin of said content.

### Claim 11 (depends on 5)

The command as claimed in claim 5, said command comprising instructions for modifying a border of said content.

### Claim 12

A method of preparing content, said method comprising:
specifying a page within a document defined in a document description language;
assigning an item of content into said page; and
mapping said page to a copy hole formed in a page description language document.

### Claim 13 (depends on 12)

The method as claimed in claim 12, wherein said document description language comprises extensible style sheet language formatting objects.

### Claim 14 (depends on 12)

The method as claimed in claim 12, wherein said page description language comprises personalised printing mark-up language.

### Claim 15 (depends on 12)

The method as claimed in claim 12, comprising:
rendering said content such that said content fits completely within said document description language page.

### Claim 16 (depends on 12)

The method as claimed in claim 12, comprising:
providing a variable size margin on at least one side of said document description language page, between a border of said page and said content item.

### Claim 17 (depends on 12)

The method as claimed in claim 12, comprising:
setting said content within a margin surrounding said content, within said document description language page.

### Claim 18 (depends on 12)

The method as claimed in claim 12, further comprising:
setting said content within a margin, inside said document description language page, wherein said margin has:
a variable dimension upper margin;
a variable dimension left margin;
a variable dimension right margin; and
a variable dimension lower margin, wherein each of said upper, lower, left and right margins are independently variable.

### Claim 19 (depends on 12)

The method as claimed in claim 12, comprising:
setting said content item and a margin within said document description language page, wherein said margin is variable between a minimum dimension of zero, and a pre-set maximum dimension, and with a default margin value being set at a pre-determined optimum value between said maximum and minimum values.

### Claim 20 (depends on 12)

The method as claimed in claim 12, wherein said content item is positioned substantially centrally within said copy-hole.

### Claim 21

A method of preparing content for inclusion in a copy-hole, said method comprising:
specifying a page within a document defined in a document description language; and
fitting an item of content into said page; and
mapping said page to a copy-hole formed in a page description language document.

### Claim 22

A method of rendering a document comprising:
inputting a stream of document description language flow as objects;
arranging said objects in a page tree;
applying a sizing algorithm to said objects of said page tree for re-sizing said objects according to instructions contained in said document description language;
predicting whether said content will exceed a corresponding respective area assigned to said object, in a copy-hole defined in a page description language; and
if said prediction determined that said object will exceed said corresponding respective area in said page description language copy-hole, then re-sizing said content object such that when it is rendered, it will fit within said corresponding copy-hole.

### Claim 23 (depends on 22)

The method as claimed in claim 22, wherein said re-sizing comprises expanding or collapsing a margin from a default optimum value, to an intermediate value between a minimum pre-set value of said margin and a maximum pre-set value of said margin.

### Claim 24 (depends on 22)

The method as claimed in claim 22, wherein said re-sizing comprises expanding said object.

### Claim 25 (depends on 22)

The method as claimed in claim 22, wherein said re-sizing comprises contracting the size of said object.

### Claim 26 (depends on 22)

The method as claimed in claim 22, comprising:
re-sizing a plurality of said objects together, by a same sizing proportion.

### Claim 27

A graphic authoring tool capable of generating a document description language document, wherein, within a page of said document description language document there is specified,
a content item assigned to said page; and
a variable dimension margin.

### Claim 28 (depends on 27)

The graphic authoring tool as claimed in claim 27, capable of defining said margin within a pre-determined lowered dimension, and a pre-determined upper margin dimension.

### Claim 29 (depends on 27)

The graphic authoring tool of claim 27, capable of defining an optimum value of said variable dimension margin.

### Claim 30

A printing system for printing a plurality of individual print items, said printing system comprising:
a component capable of laying out at least one document page having at least one variable content copy hole;
a component capable of fitting a variable content into a page;
a rendering engine capable of rendering said page; and
a printing component capable of printing said rendered page within said variable content copy hole.

### Claim 31

Program code stored on a data carrier, said program code comprising instructions for:
specifying a page within a document defined in a document description language;
fitting an item of content into said page; and
mapping said page to a copy-hole formed in a page description language document.

### Claim 32

A rendering engine for rendering a document, said engine comprising:
a page tree for arranging a stream of document description language flow objects within a tree structure;
a sizing component capable of being applied to said objects of said page tree for re-sizing said objects according to instructions contained in said document description language;
a prediction component for predicting whether said content will exceed a corresponding respective area assigned to said object, in a copy-hole defined in a page description language; wherein
if said prediction component determines that said object will exceed said corresponding respective area in said page description language copy-hole, then said sizing component operates to re-size said content object such that when it is rendered, it will fit within said corresponding copy-hole.

### Claim 33

A method of processing a document comprising:
creating a plurality of copy holes in a page description language document; and
mapping said copy holes into a plurality of pages of a document description language document.

### Claim 34

A method of generating an output document for rasterizing into a bitmap, comprising the steps of:
designating, in a source document, a copy hole for accommodation of variable content;
rendering variable content intended to be located in the copy hole;
establishing, in accordance with predefined rules, whether the rendered variable content fits in the copy hole;
if not, adjusting a characteristic of the variable content and re-rendering the adjusted content.

### Claim 35 (depends on 34)

A method according to claim 34 wherein the variable content is text and the adjusted characteristic is selected from the group comprising: font size, margin size, line spacing, text line height, text block spacing, text line width.

### Claim 36 (depends on 34)

A method according to claim 34 wherein the variable content is an image and the adjusted characteristic is image magnification.

### Claim 37 (depends on 35)

A method according to claim 35 wherein a plurality of characteristics of the variable content are adjusted to enable it to fit.

### Claim 38 (depends on 37)

A method according to claim 37 wherein limits are set on the permissible extent of adjustment of the variable content.

### Claim 39 (depends on 38)

A method according to claim 38 wherein if once the aforesaid limits are reached, the variable content does not fit,
