Background Color:
Background Pattern:
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=, Culture=neutral, PublicKeyToken=872cbeb81db952fe"
              xmlns:styles="Scryber.Styles, Scryber.Styles, Version=, Culture=neutral, PublicKeyToken=872cbeb81db952fe">
    <styles:Style applied-type="pdf:Page" >
      <styles:Page size="A4" orientation="Landscape" />

    <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"/>

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


Generates the document....


Back to Understanding Styles

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