PsSaveOptionsSaveFormat Property

Specifies the format in which the document will be saved if this save options object is used. Can only be Ps.

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

Property Value

Type: SaveFormat
Examples
Shows how to create a bookfold in the PostScript format.
Document doc = new Document(MyDir + "Paragraphs.docx");

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

PsSaveOptions saveOptions = new PsSaveOptions
{
    SaveFormat = SaveFormat.Ps,
    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 + "PsSaveOptions.UseBookFoldPrintingSettings.ps", saveOptions);
See Also