Hi Thomas,
I am having a similar problem understanding tabstops (unfortunately migradoc and pdfsharp have
very poor documentation
)
I have read few of your posts regrading tabstops.
So far I have gathered :
To have a text near to the left margin and another text near to the right margin, according to you , I should add left_text , add a tabstop (right aligned , with minimum width) and add right_text , Basically code should be something like :
// Adding footer to the document
var style = doc.Styles[StyleNames.Footer];
style.ParagraphFormat.TabStops.ClearAll();
// tabstop added : ("1 cm" , TabAlignment.Right)
style.ParagraphFormat.TabStops.AddTabStop(Unit.FromCentimeter(1), TabAlignment.Right , TabLeader.MiddleDot);
Paragraph footer_para = new Paragraph();
footer_para.AddText("left.");
footer_para.AddTab();
footer_para.AddText("right.");
footer_para.Format.Borders.Visible = true;
sec.Footers.Primary.Add(footer_para);
After doing this I get the output (I am using version 1.32) like :
|left.right.|
"|" indicates page margin.
NO TABSTOP ADDED.
I also have attached my code , pdf output , and mdddl file (all are in the zip file)
1. Please help me understand this output.
2. Please give me an explanation of how tabstops work (what is the meaning of TabAlignment, what happens if I add multiple tabstops with different alignment and units , etc). Hopefully update the documentation
.
3. How to get the desired output as below :
|Left.·····················································································································································Right.|
Thank You