Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-7115

Add possibility to custom a user configuration to fo2pdf serializer

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.0
    • 3.8
    • None
    • None
    • 4.2 M5

      For WEB and ODF:

      <map:serializer name="fo2pdf" mime-type="application/pdf" src="org.ametys.runtime.cocoon.FOPNGSerializer">
      	<user-config>context://WEB-INF/param/fop-user-config.xml</user-config>
      </map:serializer>

      Empty user configuration:

      <fop version="1.0"/>

          [CMS-7115] Add possibility to custom a user configuration to fo2pdf serializer

          Documentation corrigée.

          Bérénice Maurel added a comment - Documentation corrigée.

          Bérénice Maurel added a comment - - edited

          I have modified directly the serializer to get context://WEB-INF/param/fop-user-config.xml as default value if <user-config> is empty. It tests if the file exists and if it exists, it loads it.

          Then it's no more necessary to create specifics pipelines to add a font to a PDF (like in most of ODF projects), you just have to declare the file fop-user-config.xml in the WEB-INF/param folder.

          Bérénice Maurel added a comment - - edited I have modified directly the serializer to get context://WEB-INF/param/fop-user-config.xml as default value if <user-config> is empty. It tests if the file exists and if it exists, it loads it. Then it's no more necessary to create specifics pipelines to add a font to a PDF (like in most of ODF projects), you just have to declare the file fop-user-config.xml in the WEB-INF/param folder.

            bmaurel Bérénice Maurel
            bmaurel Bérénice Maurel
            Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: