Class PageSettings
Namespace: Aspose.Note.Saving
Assembly: Aspose.Note.dll (24.12.0)
Represents the layout settings for a page.
public class PageSettings
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Examples
Shows how to save a document in Pdf format with Letter page layout.```csharp // The path to the documents directory. string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
// Load the document into Aspose.Note.
Document oneFile = new Document(dataDir + "OneNote.one");
var dst = Path.Combine(dataDir, "SaveToPdfUsingLetterPageSettings.pdf");
// Save the document.
oneFile.Save(dst, new PdfSaveOptions() { PageSettings = PageSettings.Letter });
Shows how to save a document in Pdf format with A4 page layout without height limit.```csharp
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
// Load the document into Aspose.Note.
Document oneFile = new Document(dataDir + "OneNote.one");
var dst = Path.Combine(dataDir, "SaveToPdfUsingA4PageSettingsWithoutHeightLimit.pdf");
// Save the document.
oneFile.Save(dst, new PdfSaveOptions() { PageSettings = PageSettings.A4NoHeightLimit });
Properties
A4
Gets settings for the A4-format page.
public static PageSettings A4 { get; }
Property Value
A4NoHeightLimit
Gets settings for the A4-format page with limitless height.
public static PageSettings A4NoHeightLimit { get; }
Property Value
Examples
Shows how to save a document in Pdf format with A4 page layout without height limit.```csharp // The path to the documents directory. string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
// Load the document into Aspose.Note.
Document oneFile = new Document(dataDir + "OneNote.one");
var dst = Path.Combine(dataDir, "SaveToPdfUsingA4PageSettingsWithoutHeightLimit.pdf");
// Save the document.
oneFile.Save(dst, new PdfSaveOptions() { PageSettings = PageSettings.A4NoHeightLimit });
### <a id="Aspose_Note_Saving_PageSettings_Letter"></a> Letter
Gets settings for the Letter-format page.
```csharp
public static PageSettings Letter { get; }
Property Value
Examples
Shows how to save a document in Pdf format with Letter page layout.```csharp // The path to the documents directory. string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
// Load the document into Aspose.Note.
Document oneFile = new Document(dataDir + "OneNote.one");
var dst = Path.Combine(dataDir, "SaveToPdfUsingLetterPageSettings.pdf");
// Save the document.
oneFile.Save(dst, new PdfSaveOptions() { PageSettings = PageSettings.Letter });
### <a id="Aspose_Note_Saving_PageSettings_LetterNoHeightLimit"></a> LetterNoHeightLimit
Gets settings for the Letter-format page with limitless height.
```csharp
public static PageSettings LetterNoHeightLimit { get; }