Class PageSettings
De naam: Aspose.Note.Saving Verzameling: Aspose.Note.dll (25.4.0)
Vertegenwoordigt de layout-instellingen voor een pagina.
public class PageSettings
Inheritance
Geëerbiede leden
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Toon hoe u een document in PDF-formaat kunt opslaan met Letter page layout.
// 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 });
Zie hoe u een document in PDF-formaat opslaat met een A4-pagina-lijst zonder hoogtegrens.
// 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
Geeft instellingen voor de A4-formaat pagina.
public static PageSettings A4 { get; }
Eigendomswaarde
A4NoHeightLimit
Geeft instellingen voor de A4-formaatpagina met onbeperkte hoogte.
public static PageSettings A4NoHeightLimit { get; }
Eigendomswaarde
Examples
Zie hoe u een document in PDF-formaat opslaat met een A4-pagina-lijst zonder hoogtegrens.
// 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
Geeft instellingen voor de Letter-format pagina.
public static PageSettings Letter { get; }
Eigendomswaarde
Examples
Toon hoe u een document in PDF-formaat kunt opslaan met Letter page layout.
// 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
Geeft instellingen voor de Letter-formaat pagina met onbeperkte hoogte.
public static PageSettings LetterNoHeightLimit { get; }