This sample shows how to instruct a PDF viewer to display the pages in two columns, with odd-numbered pages on the left.
You can setup desired page layout using PdfDocument.PageLayout property.
using System.Diagnostics; namespace BitMiracle.Docotic.Pdf.Samples { public static class PageLayout { public static void Main() { // NOTE: // When used in trial mode, the library imposes some restrictions. // Please visit http://bitmiracle.com/pdf-library/trial-restrictions.aspx // for more information. PdfDocument pdf = new PdfDocument("Sample data/jfif3.pdf"); pdf.PageLayout = PdfPageLayout.TwoColumnLeft; string pathToFile = "PageLayout.pdf"; pdf.Save(pathToFile); pdf.Dispose(); Process.Start(pathToFile); } } }
Imports System.Diagnostics Imports BitMiracle.Docotic.Pdf Namespace BitMiracle.Docotic.Pdf.Samples Public NotInheritable Class PageLayout Public Shared Sub Main() ' NOTE: ' When used in trial mode, the library imposes some restrictions. ' Please visit http://bitmiracle.com/pdf-library/trial-restrictions.aspx ' for more information. Dim pdf As New PdfDocument("Sample data/jfif3.pdf") pdf.PageLayout = PdfPageLayout.TwoColumnLeft Dim pathToFile As String = "PageLayout.pdf" pdf.Save(pathToFile) pdf.Dispose() Process.Start(pathToFile) End Sub End Class End Namespace
