Class AlwaysSplitObjectsAlgorithm
Class AlwaysSplitObjectsAlgorithm
Namespace: Aspose.Note.Saving
Assembly: Aspose.Note.dll (25.6.0)
Splits an object into several parts in case it doesn’t fit in original page.
public class AlwaysSplitObjectsAlgorithm : PageSplittingAlgorithm
{
private const int MaximumCharsPerLine = 80;
public bool SplitAgainst(DocumentPart parentPart, XpsGridContainer grid)
{
}
}
Inheritance
object ← PageSplittingAlgorithm ← AlwaysSplitObjectsAlgorithm
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
When long OneNote pages are saved in pdf format they are split across pages. The example shows how to configure the splitting logic of objects located on page’s breaks.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
Document doc = new Document(dataDir + "Aspose.one");
var pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.PageSplittingAlgorithm = new AlwaysSplitObjectsAlgorithm();
float heightLimitOfClonedPart = 500;
pdfSaveOptions.PageSplittingAlgorithm = new KeepPartAndCloneSolidObjectToNextPageAlgorithm(heightLimitOfClonedPart);
pdfSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm();
pdfSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm(100);
pdfSaveOptions.PageSplittingAlgorithm = new KeepSolidObjectsAlgorithm(400);
dataDir += "UsingKeepSOlidObjectsAlgorithm_out.pdf";
doc.Save(dataDir, pdfSaveOptions);
Constructors
AlwaysSplitObjectsAlgorithm()
public AlwaysSplitObjectsAlgorithm
{
public AlwaysSplitObjectsAlgorithm()
{
}
}