With GroupDocs.Merger, shift WORD pages. This feature, plus others, adds reliable document tools to Python via .NET apps.
- Load the WORD file.
- Select the page to tweak.
- Change its orientation.
- Save the result.
With GroupDocs.Merger, shift WORD pages. This feature, plus others, adds reliable document tools to Python via .NET apps.
from groupdocs.merger import Merger
from groupdocs.merger.domain.options import OrientationOptions, OrientationMode
# Feed the file path to Merger
with Merger("document.docx") as merger:
# Target the page to adjust
orientationOptions = OrientationOptions(OrientationMode.LANDSCAPE, [1, 2])
# Apply the new orientation
merger.change_orientation(orientationOptions)
# Save the finished document
merger.save("result.docx")
GroupDocs.Merger for Python via .NET offers a wide range of tools to manage content in 50+ file formats, delivering fast and smooth results.

Merge PDFs, Word docs, slides, spreadsheets, Visio files, images, and archives. Tailor it for the best output.
Relocate, swap, or remove pages to improve your document setup.
Turn pages to an angle or switch between portrait and landscape modes.
Take a page or group of pages and save them as a new file anywhere.
from groupdocs.merger import Merger
from groupdocs.merger.domain.options import OrientationOptions, OrientationMode
# Load the file into the constructor
with Merger("document.docx") as merger:
# Count the total pages
info = merger.get_document_info()
lastPage = info.page_count
# Pick the page and set portrait or landscape
orientationOptions = OrientationOptions(OrientationMode.LANDSCAPE, [1, lastPage])
# Update the page layout
merger.change_orientation(orientationOptions)
# Save to your chosen path
merger.save("result.docx")
Download GroupDocs.Merger for free or get a trial license for full access!
Explore documentation, code samples, and community support to enhance your experience.
Look at the tools that can improve your projects.
GroupDocs.Merger works with 50+ file types, giving you flexible ways to adjust documents.

