Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jamie Mansel 10 posts 30 karma points
    Mar 22, 2013 @ 14:13
    Jamie Mansel
    0

    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

  • Jamie Mansel 10 posts 30 karma points
    Apr 21, 2013 @ 18:18
    Jamie Mansel
    0

    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!

    Jamie

  • 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.

Please Sign in or register to post replies