I am new to this forum, but I am really liking migradoc's API. So far it seems like a great piece of software.
Thank you for all help while I go through teething problems.
I am creating a PDF with a list of drug doses, calculated according to a patients weight and age.
The header consists of 2 components -a paragraph containing the date the document was created, and 2 textframes sitting just below this paragraph (one to the left and one to the right of the page) - 1 to affix the patient identification sticker, and another for confirmation signatures, both added with:
Code:
Paragraph para = section.Headers.Primary.AddParagraph();
TextFrame ptSticker = section.Headers.Primary.AddTextFrame();
the issue is that while the paragraph component takes up physical space, so each pages content starts below this, the textframes are absolutely positioned (to use html terminology) and thus the textframe content completely overlaps the content added with
Code:
section.AddParagraph();
I could 'Hack' it, but what is a good solution to ensure each pages content starts below the iframe (including when content flows onto a new page and the header is repeated)
thank you