Issue with document merging and maintaing Page orientation

Home Forums Open-Xml-PowerTools Issue with document merging and maintaing Page orientation

This topic contains 1 reply, has 2 voices, and was last updated by  Brant 6 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7533

    Ananda babu medida
    Participant

    Hi folks,

    We are merging multiple documents together which is having different Orientation for all the documents.

    Example – Document 1 – Page 1 – Landscape
    Page 2 – Portrait
    Document 2 – Page 1 – Landscape
    Page 2 – Landscape
    Page 3 – Portrait

    Required solution – Document has to be merged by maintaining all page orientation and Headers and footer for all pages.

    Thanks in advance.
    Ananda babu

    #7534

    Brant
    Participant

    Orientation is stored in the section properties element <w:sectPr>. For DocumentBuilder, you set keepSections to true.

    public Source(WordprocessingDocument source, int start, int count, bool keepSections);

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.