With GroupDocs.Merger, adjust EPUB page layouts. This feature and others offer smart document control for .NET projects.
- Load the EPUB file location.
- Pick the page to modify.
- Update its orientation.
- Store the result.
With GroupDocs.Merger, adjust EPUB page layouts. This feature and others offer smart document control for .NET projects.
// Point Merger to the source file
using (Merger merger = new Merger("document.epub"))
{
// Choose the page for layout changes
OrientationMode mode = OrientationMode.Landscape;
OrientationOptions orientationOptions
= new OrientationOptions(mode, new int[] { 1 });
// Set the new page orientation
merger.ChangeOrientation(orientationOptions);
// Save your updated file
merger.Save("result.epub");
}
GroupDocs.Merger for .NET delivers a strong lineup of tools for managing content in over 50 file formats with fast, reliable performance.
Fuse PDFs, Word docs, slides, spreadsheets, Visio files, images, and archives. Fine-tune the process for great results.
Shift, swap, or cut pages to streamline your document structure.
Turn pages to a custom angle or flip between portrait and landscape.
Grab one page or a batch and save them as a fresh file anywhere.
// Feed the file into the constructor
using (Merger merger = new Merger("document.epub"))
{
// Fetch the page total
IDocumentInfo info = merger.GetDocumentInfo();
int lastPage = info.PageCount;
// Set the page number and pick portrait or landscape
OrientationMode mode = OrientationMode.Landscape;
OrientationOptions orientationOptions = new OrientationOptions(mode, new int[] { lastPage });
// Apply the orientation changes
merger.ChangeOrientation(orientationOptions);
// Save to an output location
merger.Save("result.epub");
}
Download GroupDocs.Merger for free or get a trial license for full access!
Explore documentation, code samples, and community support to enhance your experience.
See the tools that can enhance your work.
GroupDocs.Merger handles 50+ file types, letting you adjust documents with ease using a range of functions.