Class PageSettings
Nombre del espacio: Aspose.Note.Saving Asamblea: Aspose.Note.dll (25.4.0)
Representa las configuraciones de layout para una página.
public class PageSettings
Inheritance
Miembros heredados
object.GetType() ,y, object.MemberwiseClone() ,y, object.ToString() ,y, object.Equals(object?) ,y, object.Equals(object?, object?) ,y, object.ReferenceEquals(object?, object?) ,y, object.GetHashCode()
Examples
Mostra cómo guardar un documento en formato PDF con el layout de la página Carta.
// 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 cómo guardar un documento en formato PDF con el layout de la página A4 sin límite de 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
Obtenga las configuraciones para la página de formato A4.
public static PageSettings A4 { get; }
Valor de la propiedad
A4NoHeightLimit
Obtenga configuraciones para la página de formato A4 con altura ilimitada.
public static PageSettings A4NoHeightLimit { get; }
Valor de la propiedad
Examples
Mostra cómo guardar un documento en formato PDF con el layout de la página A4 sin límite de 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
Obtenga las configuraciones para la página de formato Letter.
public static PageSettings Letter { get; }
Valor de la propiedad
Examples
Mostra cómo guardar un documento en formato PDF con el layout de la página Carta.
// 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
Obtenga las configuraciones para la página de formato Letter con altura ilimitada.
public static PageSettings LetterNoHeightLimit { get; }