Class PageSettings
Pôvodný názov: Aspose.Note.Saving Zhromaždenie: Aspose.Note.dll (25.4.0)
Predstavuje nastavenia layoutu pre jednu stránku.
public class PageSettings
Inheritance
Z dedičných členov
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Ukáže, ako uložiť dokument vo formáte PDF s rozloženie stránky písma.
// 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 });
Ukazuje, ako uložiť dokument vo formáte PDF s rozloženie stránky A4 bez obmedzenia výšky.
// 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
Dostane nastavenia pre stránku formátu A4.
public static PageSettings A4 { get; }
Hodnota nehnuteľnosti
A4NoHeightLimit
Získa nastavenia pre stránku formátu A4 s neobmedzenou výškou.
public static PageSettings A4NoHeightLimit { get; }
Hodnota nehnuteľnosti
Examples
Ukazuje, ako uložiť dokument vo formáte PDF s rozloženie stránky A4 bez obmedzenia výšky.
// 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
Dostane nastavenia pre stránku Formát písma.
public static PageSettings Letter { get; }
Hodnota nehnuteľnosti
Examples
Ukáže, ako uložiť dokument vo formáte PDF s rozloženie stránky písma.
// 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
Získa nastavenia pre stránku formátu písma s neobmedzenou výškou.
public static PageSettings LetterNoHeightLimit { get; }