You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by dharmaraja <dh...@hotmail.com> on 2013/09/11 17:07:56 UTC

Hot to get the page index of an element?

Hi everyone,

I'm a newbie with Apache POI and I was in need to know a thing: is it
possible to retrieve the page index of an element (i.e. a table) inside a
.DOC file? I'm going crazy and it seems impossible...
I hope that somebody can help me...

Thanks a lot.

D.



--
View this message in context: http://apache-poi.1045710.n5.nabble.com/Hot-to-get-the-page-index-of-an-element-tp5713743.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: Hot to get the page index of an element?

Posted by dharmaraja <dh...@hotmail.com>.
Hi Nick,

thank you very much for your reply. Now everything is clear and I think I
will try to find a different solution. I was afraid of that and you
confirmed my suspects: I just hoped that there was a class or something else
that was able to retrieve the page number of an element by the offset of its
predecessors...
Anyeay thank you very much for having replied me!
See you,
D.



--
View this message in context: http://apache-poi.1045710.n5.nabble.com/Hot-to-get-the-page-index-of-an-element-tp5713743p5713748.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: Hot to get the page index of an element?

Posted by Nick Burch <ap...@gagravarr.org>.
On Wed, 11 Sep 2013, dharmaraja wrote:
> I'm a newbie with Apache POI and I was in need to know a thing: is it
> possible to retrieve the page index of an element (i.e. a table) inside a
> .DOC file?

The .doc format is a run-based format, not a page-based format (it's not 
like pdf or ppt). The only way to know what page something is on is to 
render the whole file based on the fonts, page settings, printer settings 
etc. Page info isn't in the file format

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org