none
Regarding lastRenderedPageBreak tag. RRS feed

  • Question

  • Hi all,

    I am working on parsing 2007 word document.

    I found that <lastRenderedPageBreak> is used to paginate the content. But in one case, If the first line of the page is empty then the tag is not specified anywhere in the xml file. Is there any way to find out the pagination in this case?.

    Can anybody give me some solution for this?

    Thanks in advance..

     Regards,

    Jebarlin.R

    Monday, February 13, 2012 11:54 AM

All replies

  • Hi Jebarlin,

    Thanks for posting in the MSDN Forum.

    You can find a br tag in the first paragraph. I think this can conside as a pagination.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us

    Wednesday, February 15, 2012 7:04 AM
    Moderator
  • Hi Tom,

    Thanks for replying... :)

    Press Enter button continuously, word document will take you to the next page, when the first page overflow and press enter again and type something. In this situation first line of the second page will be empty , and the xml file does not contain any <w:lastRenderedPageBrea> or <w:br> elements.

    <w:br> tag is present only, when we insert any page break or some paragraph break.

    Example xml file

    <w:p w:rsidR="001F7D81" w:rsidRDefault="001F7D81">

                      <w:r>

                            <w:t>Last line of first Page</w:t>

                      </w:r>

                </w:p>

                <w:p w:rsidR="001F7D81" w:rsidRDefault="001F7D81" />

                <w:p w:rsidR="001F7D81" w:rsidRDefault="001F7D81">

                      <w:r>

                            <w:t>Second Page After one Blank Line</w:t>

                      </w:r>

                </w:p>

    Br tag is also not there…… L

    Is there any way to find out?

    ------------

    Jebarlin 


    Jebarlin.R

    Friday, February 17, 2012 1:09 PM