PdfSaveOptionsUseBookFoldPrintingSettings Property

Gets or sets a boolean value indicating whether the document should be saved using a booklet printing layout, if it is specified via MultiplePages.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public bool UseBookFoldPrintingSettings { get; set; }

Property Value

Type: Boolean
Remarks

If this option is specified, page range set via PageIndex and PageCount is ignored when saving. This behavior matches MS Word. If book fold printing settings are not specified in page setup, this option will have no effect.

Examples
Shows how to save a document to the PDF format in the form of a book fold.
// Open a document with multiple paragraphs
Document doc = new Document(MyDir + "Paragraphs.docx");

// Configure both page setup and PdfSaveOptions to create a book fold
foreach (Section s in doc.Sections)
{
    s.PageSetup.MultiplePages = MultiplePagesType.BookFoldPrinting;
}

PdfSaveOptions options = new PdfSaveOptions();
options.UseBookFoldPrintingSettings = true;

// In order to make a booklet, we will need to print this document, stack the pages
// in the order they come out of the printer and then fold down the middle
doc.Save(ArtifactsDir + "PdfSaveOptions.SaveAsPdfBookFold.pdf", options);
See Also