Class KeepPartAndCloneSolidObjectToNextPageAlgorithm
Le nom : Aspose.Note.Saving Assemblée: Aspose.Note.dll (25.4.0)
Ajouter la partie supérieure de l’objet au fond de la page et clonner le tout à la prochaine page si elle ne correspond pas dans la première page.
public class KeepPartAndCloneSolidObjectToNextPageAlgorithm : PageSplittingAlgorithm
Inheritance
object ← PageSplittingAlgorithm ← KeepPartAndCloneSolidObjectToNextPageAlgorithm
I membri ereditari
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Lorsque de longues pages OneNote sont enregistrées dans le format pdf, elles sont divisées entre pages.L’échantillon montre comment configurer la logique de séparation des objets situés sur les ruptures de la page.
// 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);
Lorsque de longues pages OneNote sont enregistrées dans le format pdf, elles sont divisées entre pages.L’exemple montre comment configurer la logique de séparation des objets situés sur les ruptures de la page.
// 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()
Initialisez une nouvelle instance du Aspose.Note.Saving.KeepPartAndCloneSolidObjectToNextPageAlgorithm class, en utilisant la limite de hauteur par défaut de la partie clonée.
public KeepPartAndCloneSolidObjectToNextPageAlgorithm()
KeepPartAndCloneSolidObjectToNextPageAlgorithm(Flotte)
Initialiser une nouvelle instance du Aspose.Note.Saving.KeepPartAndCloneSolidObjectToNextPageAlgorithm classe, en utilisant un limite de hauteur spécifique de la partie clonée.
public KeepPartAndCloneSolidObjectToNextPageAlgorithm(float heightLimitOfClonedPart)
Parameters
heightLimitOfClonedPart
float
La hauteur max de la partie clonée.
Fields
DefaultHeightLimitOfClonedPart
La taille max de la partie clonée.
public const float DefaultHeightLimitOfClonedPart = 200
Valore di campo
Properties
HeightLimitOfClonedPart
Il obtient la limite de hauteur de la partie clonée.
public float HeightLimitOfClonedPart { get; }