Hi, I asked this question before but I did not got any response, I think
this is a bug. In this below code I am reading paragraph properties from a
DOC which was DOCX file converted to DOC from Word 2007 application.

 

I have attached the DOC sample and the code to test the paragraph
properties. Below is the sample portion from it.

 

THE PROBLEM IS : the values of some paragraphs are not at all zero but
paragraph object returns 0 value. Why?

 

int ps = s.numParagraphs();// s-> section object

                                                                Paragraph
paragraph;

                                                                for (int j =
0; j < ps; j++) {

 
paragraph = s.getParagraph(j);

 
int spacebfr = paragraph.getSpacingBefore();

 
if(spacebfr == 24)

 
System.out.println("returning correct value");

 
int spaceafr = paragraph.getSpacingAfter();

 
if(spaceafr == 8)

 
System.out.println("returning correct value");

                                                                }

 

 

Thank You

 

SHIVA KUMAR K R

Phone : +91 9844831440

Linkedin :  <http://in.linkedin.com/in/shivakumarkr/> shiva_kumar_k_r

 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to