Class PageSettings

Class PageSettings

Il nome: Aspose.Note.Saving Assemblea: Aspose.Note.dll (25.4.0)

Represente le impostazioni di layout per una pagina.

public class PageSettings

Inheritance

object PageSettings

I membri ereditari

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Mostra come salvare un documento in formato PDF con il layout della pagina Letter.

// 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 });

Mostra come salvare un documento in formato PDF con layout di pagina A4 senza limite di altezza.

// 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

Riceve le impostazioni per la pagina di formato A4.

public static PageSettings A4 { get; }

Valore di proprietà

PageSettings

A4NoHeightLimit

Riceve le impostazioni per la pagina A4 con altezza illimitata.

public static PageSettings A4NoHeightLimit { get; }

Valore di proprietà

PageSettings

Examples

Mostra come salvare un documento in formato PDF con layout di pagina A4 senza limite di altezza.

// 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

Riceve le impostazioni per la pagina Letter-format.

public static PageSettings Letter { get; }

Valore di proprietà

PageSettings

Examples

Mostra come salvare un documento in formato PDF con il layout della pagina Letter.

// 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

Riceve le impostazioni per la pagina in formato Letter con altezza illimitata.

public static PageSettings LetterNoHeightLimit { get; }

Valore di proprietà

PageSettings

 Italiano