Background Color:
 
Background Pattern:
Reset
Search
Home Recent Changes Show All Pages

Inline Style Example

Not Rated Yet

An example of the inline styles.

<pdf:Document xmlns:pdf="Scryber.Components, Scryber.Components, Version=0.8.0.0, Culture=neutral, PublicKeyToken=872cbeb81db952fe"
              xmlns:styles="Scryber.Styles, Scryber.Styles, Version=0.8.0.0, Culture=neutral, PublicKeyToken=872cbeb81db952fe">
  <Pages>

    <pdf:Page id="titlepage" styles:paper-size="A4" styles:paper-orientation="Landscape" >
      <Content>
        <pdf:Div styles:x="50mm" styles:y="50mm" styles:width="200mm" styles:height="100mm" 
                 styles:bg-color="aqua" styles:fill-color="maroon"
                 styles:v-align="Middle" styles:h-align="Center">
          Some content in a relatively positioned div
        </pdf:Div>
      </Content>
    </pdf:Page>

  </Pages>
</pdf:Document>

This will generate the following PDF


[Download]

Back to Understanding Styles



  Rating
Rate This Page: Poor Great   |  Rate Content |
Average rating:  No Ratings Yet   
Number of Ratings : 0
  Comments
Add Comment
No Comments Yet