Class PageSettings
İsim alanı : Aspose.Note.Saving Toplama: Aspose.Note.dll (25.4.0)
Bir sayfa için düzen ayarlarını temsil eder.
public class PageSettings
Inheritance
mirasçı üyeleri
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Yazı sayfası düzeniyle bir belgeyi PDF biçiminde nasıl kaydeteceğinizi gösterir.
// 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 });
Yükseklik sınırı olmadan A4 sayfa düzeniyle PDF formatında bir belgeyi nasıl kaydeteceğinizi gösterir.
// 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
A4 format sayfası için ayarları alır.
public static PageSettings A4 { get; }
Mülkiyet Değer
A4NoHeightLimit
Sınırsız yükseklikte A4 formatında sayfa için ayarları alır.
public static PageSettings A4NoHeightLimit { get; }
Mülkiyet Değer
Examples
Yükseklik sınırı olmadan A4 sayfa düzeniyle PDF formatında bir belgeyi nasıl kaydeteceğinizi gösterir.
// 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
Yazı biçimi sayfası için ayarları alır.
public static PageSettings Letter { get; }
Mülkiyet Değer
Examples
Yazı sayfası düzeniyle bir belgeyi PDF biçiminde nasıl kaydeteceğinizi gösterir.
// 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
Sınırsız yükseklikte Yazı biçimi sayfası için ayarlar alır.
public static PageSettings LetterNoHeightLimit { get; }