If paragraph is added to textframe and paragraph height is extended to two lines, line in page is only partially visible sometimes.
Example is in
https://github.com/empira/PDFsharp/file ... aviour.pdf To reproduce run code in MigraDoc template:
Code:
static Document CreateDocument()
{
// Create a new MigraDoc document.
var document = new Document { };
// Add a section to the document.
var section = document.AddSection();
section.PageSetup.BottomMargin = 0;
section.PageSetup.TopMargin = 0;
for (int p = 1; p < 100; p++)
{
var textFrame = section.AddTextFrame();
textFrame.RelativeVertical = RelativeVertical.Line;
textFrame.WrapFormat.DistanceTop = Unit.FromCentimeter(0.11);
textFrame.Height = Unit.FromCentimeter(0.47);
var paragraph = textFrame.AddParagraph();
paragraph.Format.Font.Name = "Times New Roman";
paragraph.Format.Font.Size = 10;
paragraph.AddText("Maksekorraldus 123456");
paragraph.Format.SpaceBefore = 0;
paragraph.Format.SpaceAfter = 0;
}
return document;
}
Full VS solution is in
https://github.com/empira/PDFsharp/file ... ofpage.zipHow to make all lines fully visible? In real application paragraph height is not known and Migradoc does not provide method to get paragraph height. So textframe height cannot increased by code.
Using PDFsharp-MigraDoc 6.0.0-preview-3