Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I was wondering how to insert indentation into my PDF file created using the razor example.
<fo:block font-size="10pt"> Days @Model.CourseDuration</fo:block>
<fo:block font-size="10pt"> Course code @Model.CourseCode</fo:block>
Basically I want @Model.CourseDuration and @Model.CourseCode to line up on the page, what would be the best way to go about this?
Thanks,
Jamie
Hello,
Answered my own question, with some help from this here thread http://our.umbraco.org/forum/using/ui-questions/15855-problem-to-work-with-pdf-?p=1
Basically used a fo:list-block! A bit like this...
<fo:list-block><fo:list-item><fo:list-item-label><fo:block>Days</fo:block></fo:list-item-label><fo:list-item-body><fo:block margin-left="150px">@Model.CourseDuration</fo:block></fo:list-item-body></fo:list-item><fo:list-item><fo:list-item-label><fo:block>Course code</fo:block></fo:list-item-label><fo:list-item-body><fo:block margin-left="150px">@Model.CourseCode</fo:block></fo:list-item-body></fo:list-item></fo:list-block>
Voila!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How to format text i.e. add indentation
Hi,
I was wondering how to insert indentation into my PDF file created using the razor example.
<fo:block font-size="10pt">
Days @Model.CourseDuration
</fo:block>
<fo:block font-size="10pt">
Course code @Model.CourseCode
</fo:block>
Basically I want @Model.CourseDuration and @Model.CourseCode to line up on the page, what would be the best way to go about this?
Thanks,
Jamie
Hello,
Answered my own question, with some help from this here thread http://our.umbraco.org/forum/using/ui-questions/15855-problem-to-work-with-pdf-?p=1
Basically used a fo:list-block! A bit like this...
Voila!
Jamie
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.