Question about values getPartPageRectangles.

Tomaž Vajngerl quikee at
Thu Feb 18 08:29:31 UTC 2016


On Mon, Feb 15, 2016 at 11:54 PM, Stef Bon <stefbon at> wrote:
> Hi,
> I'm working on a viewer for officefiles uing lokit.
> Right now I'm just writing tests, getting used with the api.
> My testprogram writes the type, the size and the output of the'
> call getPartPageRectangles:
> [sbon at ws-001 test-lokit]$ ./lokit /home/sbon/Documenten/opinieict.odt
> Type : 0
> Size (TWIPS) WxH: 12474 x 17406
> PartPageRectangles: 284, 284, 11906, 16838
> What do these last values mean?
> In the .hxx file the comment says:"logical rectangle of each part".
> What are these?

A writer document is always rendered complete with all pages, so in
that case the size will tell you the dimensions of the whole document.
Usually this is enough but sometimes you also need want to know where
the actual pages are located in the document. This is what
getPartPageRectangles returns - the rectangles of pages in the

Impress and Draw however are different - there a slide/page is
rendered separately so you have to switch parts to switch slide/pages.

> Stef Bon

Regards, Tomaž

More information about the LibreOffice mailing list