Class AlwaysSplitObjectsAlgorithm
Class AlwaysSplitObjectsAlgorithm
نام ها : Aspose.Note.Saving جمع آوری: WL31_.dll (25.4.0)
یک شی را به چند قسمت تقسیم کنید در صورتی که در صفحه اصلی مناسب نباشد.
public class AlwaysSplitObjectsAlgorithm : PageSplittingAlgorithm
Inheritance
object ← PageSplittingAlgorithm ← AlwaysSplitObjectsAlgorithm
اعضای ارثی
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 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
AlwaysSplitObjectsAlgorithm()
public AlwaysSplitObjectsAlgorithm()