[odf-devel] Create new page
Soren Roug
soren.roug at eea.europa.eu
Sun Aug 19 12:16:04 EDT 2007
Well, in OpenOffice you just insert a manual page break.
If you by any chance mean via ODFPY, you create an automatic style that
inherits from the style you want the next paragraph to display as (from
memory):
parastyle = style.Style(name="Text Body", family="paragraph")
...
s = style.Style(name="Force Pagebreak", family="paragraph",
parentstylename=parastyle)
s.addElement(style.ParagraphProperties(breakbefore="page"))
textdoc.automaticstyles.addElement(s)
textdoc.text.addElement(stylename=s, text=u"First paragraph after page
break.")
Joaquim Rocha skrev:
> Hi, I have created a ODT doc.
>
> Can anyone tell me how can I add a new page to a text document so I
> can then add other elements in the new page?
>
>
> Thank you,
>
> Joaquim Rocha
>
More information about the odf-devel
mailing list