Hi, On Mon, Feb 15, 2016 at 11:54 PM, Stef Bon <stef...@gmail.com> 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@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 document. 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ž _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice