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
{
public bool IsFirstPage { get; set; }
public bool IsLastPage { get; set; }
}
Or if you prefer, maintaining existing line breaks for readability:
public class PageSettings
{
public bool IsFirstPage { get; set; }
public bool IsLastPage { get; set; }
}
Inheritance
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.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
Document oneFile = new Document(dataDir + "OneNote.one");
var dst = Path.Combine(dataDir, "SaveToPdfUsingLetterPageSettings.pdf");
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.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
Document oneFile = new Document(dataDir + "OneNote.one");
var dst = Path.Combine(dataDir, "SaveToPdfUsingA4PageSettingsWithoutHeightLimit.pdf");
oneFile.Save(dst, new PdfSaveOptions() { PageSettings = PageSettings.A4NoHeightLimit });
Properties
A4
Riceve le impostazioni per la pagina di formato A4.
public static PageSettings A4
{
get
{
return new PageSettings
{
Orientation = Orientation.Portrait,
PaperKind = PaperKind.A4,
Margins = new MarginOptions
{
Left = 28,
Right = 28,
Top = 28,
Bottom = 28
}
};
}
}
Valore di proprietà
A4NoHeightLimit
Riceve le impostazioni per la pagina A4 con altezza illimitata.
public static PageSettings A4NoHeightLimit
{
get
{
return new PageSettings
{
Orientation = Orientation.Portrait,
PaperKind = PaperKind.A4,
Margins = new MarginOptions
{
Left = 72,
Right = 72,
Top = 72,
Bottom = 72
},
HeaderMargin = new MarginOptions { Left = 36, Right = 36 },
FooterMargin = new MarginOptions { Left = 36, Right = 36 },
HeaderDistance = 0,
FooterDistance = 0,
GutterDistance = 0,
IsLandscape = false,
StartPageNumber = 1,
IsFirstPageIIDDefault = true,
IsDifferentOddEvenHeadersFooters = false,
IsMirrorMargins = false,
IsApplyHeaderFooterAsTable = false
};
}
}
Valore di proprietà
Examples
Mostra come salvare un documento in formato PDF con layout di pagina A4 senza limite di altezza.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
Document oneFile = new Document(dataDir + "OneNote.one");
var dst = Path.Combine(dataDir, "SaveToPdfUsingA4PageSettingsWithoutHeightLimit.pdf");
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à
Examples
Mostra come salvare un documento in formato PDF con il layout della pagina Letter.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
Document oneFile = new Document(dataDir + "OneNote.one");
var dst = Path.Combine(dataDir, "SaveToPdfUsingLetterPageSettings.pdf");
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;
}