Class KeepPartAndCloneSolidObjectToNextPageAlgorithm

Class KeepPartAndCloneSolidObjectToNextPageAlgorithm

اسم الفضاء : Aspose.Note.Saving تجميع: Aspose.Note.dll (25.4.0)

يضيف الجزء العلوي من الكائن إلى أسفل الصفحة ويتم استنساخ كائن كامل إلى الصفحة التالية إذا لم يناسب الصفحة الأصلية.

public class KeepPartAndCloneSolidObjectToNextPageAlgorithm : PageSplittingAlgorithm

Inheritance

object PageSplittingAlgorithm KeepPartAndCloneSolidObjectToNextPageAlgorithm

الأعضاء الموروثين

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

عندما يتم حفظ صفحات OneNote الطويلة في تنسيق PDF يتم تقسيمها بين الصفحات.تظهر العينة كيفية تكوين منطق الانقسام للأشياء الموجودة على فجوات الصفحة.

// The path to the documents directory.
                                                                                                                                                                                  string dataDir = RunExamples.GetDataDir_LoadingAndSaving();

                                                                                                                                                                                  // Load the document into Aspose.Note.
                                                                                                                                                                                  Document doc = new Document(dataDir + "Aspose.one");

                                                                                                                                                                                  var pdfSaveOptions = new PdfSaveOptions();

                                                                                                                                                                                  pdfSaveOptions.PageSplittingAlgorithm = new KeepPartAndCloneSolidObjectToNextPageAlgorithm(100);
                                                                                                                                                                                  // or
                                                                                                                                                                                  pdfSaveOptions.PageSplittingAlgorithm = new KeepPartAndCloneSolidObjectToNextPageAlgorithm(400);

                                                                                                                                                                                  dataDir = dataDir + "PageSplittUsingKeepPartAndCloneSolidObjectToNextPageAlgorithm_out.pdf";
                                                                                                                                                                                  doc.Save(dataDir);

عندما يتم حفظ صفحات OneNote الطويلة في تنسيق pdf يتم تقسيمها بين الصفحات.تظهر المثال كيفية تكوين منطق الانقسام للأشياء الموجودة على فجوات الصفحة.

// The path to the documents directory.
                                                                                                                                                                                   string dataDir = RunExamples.GetDataDir_LoadingAndSaving();

                                                                                                                                                                                   // Load the document into Aspose.Note.
                                                                                                                                                                                   Document doc = new Document(dataDir + "Aspose.one");
                                                                                                                                                                                   var pdfSaveOptions = new PdfSaveOptions();
                                                                                                                                                                                   pdfSaveOptions.PageSplittingAlgorithm = new AlwaysSplitObjectsAlgorithm();
                                                                                                                                                                                   // Or
                                                                                                                                                                                   pdfSaveOptions.PageSplittingAlgorithm = new KeepPartAndCloneSolidObjectToNextPageAlgorithm();
                                                                                                                                                                                   // Or
                                                                                                                                                                                   pdfSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();

                                                                                                                                                                                   float heightLimitOfClonedPart = 500;
                                                                                                                                                                                   pdfSaveOptions.PageSplittingAlgorithm = new KeepPartAndCloneSolidObjectToNextPageAlgorithm(heightLimitOfClonedPart);
                                                                                                                                                                                   // Or
                                                                                                                                                                                   pdfSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm(heightLimitOfClonedPart);

                                                                                                                                                                                   pdfSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm(100);
                                                                                                                                                                                   // Or
                                                                                                                                                                                   pdfSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm(400);

                                                                                                                                                                                   dataDir = dataDir + "UsingKeepSOlidObjectsAlgorithm_out.pdf";
                                                                                                                                                                                   doc.Save(dataDir);

Constructors

KeepPartAndCloneSolidObjectToNextPageAlgorithm()

يبدأ مثال جديد من Aspose.Note.Saving.KeepPartAndCloneSolidObjectToNextPageAlgorithm class، باستخدام الحد الافتراضي للارتفاع من الجزء المسلح.

public KeepPartAndCloneSolidObjectToNextPageAlgorithm()

KeepPartAndCloneSolidObjectToNextPageAlgorithm(السفينة)

يبدأ مثال جديد من Aspose.Note.Saving.KeepPartAndCloneSolidObjectToNextPageAlgorithm class ، باستخدام حد الارتفاع المحدد للجزء المسلح.

public KeepPartAndCloneSolidObjectToNextPageAlgorithm(float heightLimitOfClonedPart)

Parameters

heightLimitOfClonedPart float

الحد الأقصى لارتفاع الجزء المسلح.

Fields

DefaultHeightLimitOfClonedPart

الحجم الافتراضي ماكس للجزء المسلح.

public const float DefaultHeightLimitOfClonedPart = 200

القيمة الميدانية

float

Properties

HeightLimitOfClonedPart

يحصل على الحد الأقصى لارتفاع الجزء المسلح.

public float HeightLimitOfClonedPart { get; }

قيمة الممتلكات

float

 عربي