orbeon / orbeon-forms

Orbeon Forms is an open source web forms solution. It includes an XForms engine, the Form Builder web-based form editor, and the Form Runner runtime.
http://www.orbeon.com/
GNU Lesser General Public License v2.1
514 stars 221 forks source link

Easy way to configure PDF output font size #1929

Open ebruchez opened 10 years ago

ebruchez commented 10 years ago

And possibly other aspects of PDF output.

We experimented with using a set of custom Bootstrap CSS for this, but it is painful. Ideally, we would like to configure this either via properties, or something like CSS variables.

ebruchez commented 10 years ago

+1 from customer

ebruchez commented 10 years ago

Possibilities:

  1. process .less files at runtime
    • at least for PDF
    • include Bootstrap
    • then cache output
  2. process .less files ahead of time, but with special markers
    • for example, large font sizes we could easily find in resulting .css
    • then replace values in CSS (NOTE: values can be calculated)
  3. if less.js supported native CSS variables
    • create some free native variables
    • replace values in resulting CSS at runtime

Option 1 is probably the cleanest. Next steps:

ebruchez commented 9 years ago

+1 from customer

Also would like this to be configurable per form.

ebruchez commented 6 years ago

+1 from customer

ebruchez commented 6 years ago

Another +1 from customer

ebruchez commented 5 years ago

+1 from customer

ebruchez commented 5 years ago

+1 from customer

avernet commented 3 years ago

+1 from customer