You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by randeel wimalagunarathne <ra...@gmail.com> on 2010/10/01 07:47:31 UTC

Need some help in handling word document Lists

Hi all,

I need to find the find the the spacing between a list number and it's
corresponding text.
For example the distance from the bullet to the text "help" and also i need
to know the
distance between the bullet and the left margin of the document.

   - help

Can you please help me with this? From what i have found it is in *grpprlPapx.
Can some
one help me interprit these byte array.

Thank you,
Randeel.
*

Re: Need some help in handling word document Lists

Posted by randeel wimalagunarathne <ra...@gmail.com>.
Hi Nick,

Thanks for all the help you have given. I will look into what you have
suggested.

Thank  you,
Randeel.

On Fri, Oct 1, 2010 at 8:03 PM, Nick Burch <ni...@alfresco.com> wrote:

> On Fri, 1 Oct 2010, randeel wimalagunarathne wrote:
>
>> I can get grpprlPapx from the listlevel class and apply it to the
>> ParagraphSprmUncompressor. Also i can feed the paragraphProperties with the
>> pragraph.cloneproperties method.Then what would be the offset value for the
>> uncompressPaP method? and also can you tell me what would be the property in
>> paragraphProperties object that i should look at?
>>
>
> Alas I don't know the answers to these. I'd suggest you look at how similar
> paragraph properties are handled, then spot the places where there are the
> gaps for the ones that interest you. You might find that they're already
> being decompressed for example, and you just need to get them from the
> properties. You'll want to look at the source code to see for sure
>
>
> Nick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
>

Re: Need some help in handling word document Lists

Posted by Nick Burch <ni...@alfresco.com>.
On Fri, 1 Oct 2010, randeel wimalagunarathne wrote:
> I can get grpprlPapx from the listlevel class and apply it to the 
> ParagraphSprmUncompressor. Also i can feed the paragraphProperties with 
> the pragraph.cloneproperties method.Then what would be the offset value 
> for the uncompressPaP method? and also can you tell me what would be the 
> property in paragraphProperties object that i should look at?

Alas I don't know the answers to these. I'd suggest you look at how 
similar paragraph properties are handled, then spot the places where there 
are the gaps for the ones that interest you. You might find that they're 
already being decompressed for example, and you just need to get them from 
the properties. You'll want to look at the source code to see for sure

Nick

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


Re: Need some help in handling word document Lists

Posted by randeel wimalagunarathne <ra...@gmail.com>.
Hi Nick,

I can get grpprlPapx from the listlevel class and apply it to the
ParagraphSprmUncompressor. Also i can feed the paragraphProperties with the
pragraph.cloneproperties method.Then what would be the offset value for the
uncompressPaP method? and also can you tell me what would be the property in
paragraphProperties object that i should look at?

Thank you,
Randeel.

On Fri, Oct 1, 2010 at 2:38 PM, Nick Burch <ni...@alfresco.com> wrote:

> On Fri, 1 Oct 2010, randeel wimalagunarathne wrote:
>
>> For example the distance from the bullet to the text "help" and also i
>> need to know the distance between the bullet and the left margin of the
>> document.
>>
>> Can you please help me with this? From what i have found it is in
>> *grpprlPapx.
>>
>
> These should largely all be decoded into the paragraph properties.
>
> Have a look at ParagraphSprmUncompressor, and ensure it has an entry for
> the properties you've found hold your information. Then, grab the
> ParagraphProperties for the Paragraph that corresponds to your list, and
> fetch from there the decoded information that ParagraphSprmUncompressor read
> out for you
>
> Finally, if you can, please submit a patch to then expose this in a
> friendly way in the usermodel :)
>
> Nick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
>

Re: Need some help in handling word document Lists

Posted by Ravi Dhingra <ra...@gmail.com>.
Please tell me how can I access first block in my vsd file (VIsual block
like process, document any) using HDGF of poi,

I am able to get trailerpointer, pointer stream etc.


Please just give me a little idea, how to print content of pointer etc....

On Fri, Oct 1, 2010 at 2:08 PM, Nick Burch <ni...@alfresco.com> wrote:

> On Fri, 1 Oct 2010, randeel wimalagunarathne wrote:
>
>> For example the distance from the bullet to the text "help" and also i
>> need to know the distance between the bullet and the left margin of the
>> document.
>>
>> Can you please help me with this? From what i have found it is in
>> *grpprlPapx.
>>
>
> These should largely all be decoded into the paragraph properties.
>
> Have a look at ParagraphSprmUncompressor, and ensure it has an entry for
> the properties you've found hold your information. Then, grab the
> ParagraphProperties for the Paragraph that corresponds to your list, and
> fetch from there the decoded information that ParagraphSprmUncompressor read
> out for you
>
> Finally, if you can, please submit a patch to then expose this in a
> friendly way in the usermodel :)
>
> Nick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
>


-- 
Ravi Dhingra,
+919929207457

Re: Need some help in handling word document Lists

Posted by Nick Burch <ni...@alfresco.com>.
On Fri, 1 Oct 2010, randeel wimalagunarathne wrote:
> For example the distance from the bullet to the text "help" and also i 
> need to know the distance between the bullet and the left margin of the 
> document.
>
> Can you please help me with this? From what i have found it is in 
> *grpprlPapx.

These should largely all be decoded into the paragraph properties.

Have a look at ParagraphSprmUncompressor, and ensure it has an entry for 
the properties you've found hold your information. Then, grab the 
ParagraphProperties for the Paragraph that corresponds to your list, and 
fetch from there the decoded information that ParagraphSprmUncompressor 
read out for you

Finally, if you can, please submit a patch to then expose this in a 
friendly way in the usermodel :)

Nick

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