You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by "Zhaojia(George) Zeng" <zz...@bglcorp.com.au> on 2012/04/03 11:01:06 UTC

How to get more information from XWPFRun?

I am using XWPF to extract content from docx files to pdf file, it need to
be looked as the same in both.
But it seems hard to get the information such as page nums, the first
paragraph of each page, and so on.
Is there any api for these?

-- 
*Zhaojia Zeng*
 *BGL.*
 *zzeng@bglcorp.com.au · web: www.bglcorp.com.au*

 BGL Corporate Solutions Pty. Ltd   ACN 054 355 243
 PO Box 8063  · East Brighton VIC 3187 · Australia
 T: +61 (0)3 9530 6077  · F: +61 (0)3 9530 6964
 au: 1300 654 401 · hk: 800 933 545 · sg: 800 6162 148 · nz: 0800 444 408 ·
uk: 0800 028 3491

 Disclaimer: The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential and/or
privileged material.
 Any Review, retransmission, dissemination or other use if, or taking of
any action in reliance upon, this information by persons or entities other
than the intended
 recipient is prohibited.If you received this in error, please contact the
sender and delete the material from any computer.

 Except as required at law, BGL Corporate Solutions Pty Ltd does not
represent, warrant and/or guarantee that the integrity of the this
communication has been
 maintained nor that the communication is free of errors, virus,
interception or interference.

 Join or follow us for upcoming news and exclusive deals.
*
Facebook  <http://www.facebook.com/pages/BGL/82051197835>
**Twitter<http://twitter.com/bgldot>
  Blog <http://ronlesh.wordpress.com/>*

Re: How to get more information from XWPFRun?

Posted by Yegor Kozlov <ye...@dinom.ru>.
There is no a usemodel API for these, however you can grab the XML
bean holding run properties and work with it.

Have a look at XWPFRun#getCTR() and XWPFParagraph#getCTP().

Yegor

On Tue, Apr 3, 2012 at 1:01 PM, Zhaojia(George) Zeng
<zz...@bglcorp.com.au> wrote:
> I am using XWPF to extract content from docx files to pdf file, it need to
> be looked as the same in both.
> But it seems hard to get the information such as page nums, the first
> paragraph of each page, and so on.
> Is there any api for these?
>
> --
> *Zhaojia Zeng*
>  *BGL.*
>  *zzeng@bglcorp.com.au · web: www.bglcorp.com.au*
>
>  BGL Corporate Solutions Pty. Ltd   ACN 054 355 243
>  PO Box 8063  · East Brighton VIC 3187 · Australia
>  T: +61 (0)3 9530 6077  · F: +61 (0)3 9530 6964
>  au: 1300 654 401 · hk: 800 933 545 · sg: 800 6162 148 · nz: 0800 444 408 ·
> uk: 0800 028 3491
>
>  Disclaimer: The information transmitted is intended only for the person or
> entity to which it is addressed and may contain confidential and/or
> privileged material.
>  Any Review, retransmission, dissemination or other use if, or taking of
> any action in reliance upon, this information by persons or entities other
> than the intended
>  recipient is prohibited.If you received this in error, please contact the
> sender and delete the material from any computer.
>
>  Except as required at law, BGL Corporate Solutions Pty Ltd does not
> represent, warrant and/or guarantee that the integrity of the this
> communication has been
>  maintained nor that the communication is free of errors, virus,
> interception or interference.
>
>  Join or follow us for upcoming news and exclusive deals.
> *
> Facebook  <http://www.facebook.com/pages/BGL/82051197835>
> **Twitter<http://twitter.com/bgldot>
>  Blog <http://ronlesh.wordpress.com/>*

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