Saturday, July 6, 2019

<center> HTML tag does not work in Advanced PDF/HTML Templates

Advanced PDF/HTML Templates allow creating customizable printing templates using a markup language very similar to HTML. The feature is based on BFO library and its full reference guide can be found here: http://bfo.com/products/report/docs/tags/

<center> HTML tag is not supported in Advanced PDF/HTML Templates. Here are some code examples for centering text in forms:

1) Create a new paragraph with centered text:

<pdf>
  <body>
    <p>this text is not centered</p>
    <p align="center">this text is centered</p>
  </body>
</pdf>

2) Create a new paragraph using CSS:

<pdf>
  <head>
    <style type="text/css">
      .centered { align: center }
    </style>
  </head>
  <body>
    <p>this text is not centered</p>
    <p class="centered">this text is centered</p>
  </body>
</pdf>

No comments:

Post a Comment