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

Out of line Style Example

Not Rated Yet

Using out of line styles separates the content from the presentation. The following pdfx file...

<?xml version="1.0" encoding="utf-8" ?>
<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">
  <Styles>
    <styles:Style applied-type="pdf:Page" >
      <styles:Page size="A4" orientation="Landscape" />
    </styles:Style>

    <styles:Style applied-type="pdf:Panel" applied-class="Aqua" >
      <styles:Background color="aqua"/>
      <styles:Position x="50mm" y="50mm" width="200mm" height="100mm" 
                       h-align="Center" v-align="Middle"/>
      <styles:Fill color="maroon"/>
    </styles:Style>
  </Styles>
  <Pages>

    <pdf:Page id="titlepage" >
      <Content>
        <pdf:Div styles:class="Aqua">
            Some content in a relatively positioned div
        </pdf:Div>
      </Content>
    </pdf:Page>

  </Pages>
</pdf:Document>

Generates the document....


[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