Class PageSettings

Class PageSettings

Nom dels espais: Aspose.Note.Saving Assemblea: Aspose.Note.dll (25.4.0)

Representa les configuracions de layout per a una pàgina.

public class PageSettings

Inheritance

object PageSettings

Membres heretats

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

Examples

Mostra com guardar un document en format PDF amb el disseny de la pàgina de lletra.

// 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 com guardar un document en format PDF amb el disseny de la pàgina A4 sense límit d’altura.

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

Obté les configuracions per a la pàgina de format A4.

public static PageSettings A4 { get; }

Valor de la propietat

PageSettings

A4NoHeightLimit

Obté les configuracions per a la pàgina de format A4 amb alçada il·limitada.

public static PageSettings A4NoHeightLimit { get; }

Valor de la propietat

PageSettings

Examples

Mostra com guardar un document en format PDF amb el disseny de la pàgina A4 sense límit d’altura.

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

Obté les configuracions per a la pàgina de format de lletra.

public static PageSettings Letter { get; }

Valor de la propietat

PageSettings

Examples

Mostra com guardar un document en format PDF amb el disseny de la pàgina de lletra.

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

Obté les configuracions per a la pàgina de format Letter amb alçada il·limitada.

public static PageSettings LetterNoHeightLimit { get; }

Valor de la propietat

PageSettings

 Català