Class PageSettings
Der Name: Aspose.Note.Saving Zusammensetzung: Aspose.Note.dll (25.4.0)
Es repräsentiert die Layout-Einstellungen für eine Seite.
public class PageSettings
Inheritance
Vererbte Mitglieder
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Zeigt, wie man ein Dokument in PDF-Format mit Letter-Seite-Layout speichert.
// 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 });
Zeigt, wie man ein Dokument in PDF-Format mit A4-Seite-Layout ohne Höhenbegrenzung speichert.
// 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
Erhält die Einstellungen für die A4-Format-Seite.
public static PageSettings A4 { get; }
Eigentumswert
A4NoHeightLimit
Erhält Einstellungen für die A4-Format-Seite mit unbegrenzten Höhe.
public static PageSettings A4NoHeightLimit { get; }
Eigentumswert
Examples
Zeigt, wie man ein Dokument in PDF-Format mit A4-Seite-Layout ohne Höhenbegrenzung speichert.
// 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 });
Letter
Erhält Einstellungen für die Letter-Format-Seite.
public static PageSettings Letter { get; }
Eigentumswert
Examples
Zeigt, wie man ein Dokument in PDF-Format mit Letter-Seite-Layout speichert.
// 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 });
LetterNoHeightLimit
Erhält Einstellungen für die Letter-Format-Seite mit unbegrenzten Höhe.
public static PageSettings LetterNoHeightLimit { get; }