PdfSaveOptionsUseBookFoldPrintingSettings Property |
Namespace: Aspose.Words.Saving
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.
// 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);