Class PageSettings
Nome do espaço: Aspose.Note.Saving Assembleia: Aspose.Note.dll (25.4.0)
Representa as configurações de layout para uma página.
public class PageSettings
Inheritance
Membros herdados
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Mostra como salvar um documento em formato PDF com layout da 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 como salvar um documento em formato PDF com layout de página A4 sem limite 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
Obtenha configurações para a página de formato A4.
public static PageSettings A4 { get; }
Valor da propriedade
A4NoHeightLimit
Obtenha configurações para a página de formato A4 com altura ilimitada.
public static PageSettings A4NoHeightLimit { get; }
Valor da propriedade
Examples
Mostra como salvar um documento em formato PDF com layout de página A4 sem limite 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
Obtenha configurações para a página de formato Letter.
public static PageSettings Letter { get; }
Valor da propriedade
Examples
Mostra como salvar um documento em formato PDF com layout da 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
Obtenha configurações para a página de formato Letter com altura ilimitada.
public static PageSettings LetterNoHeightLimit { get; }