Class JsonPdfToolManager

  • All Implemented Interfaces:
    Initialization

    @Technical
    @Service
    @Singleton
    public class JsonPdfToolManager
    extends Object
    implements Initialization
    A manager of the PDF to JSON toolkit. Its aim is to check the pdf2json tool is installed on the host and it works fine in order to be used by the Viewer service of Silverpeas.

    The goal of the tool is to split PDF files into fragments in JSON, ready to be processed by the viwer service.

    Author:
    Yohann Chastagnier
    • Constructor Detail

      • JsonPdfToolManager

        public JsonPdfToolManager()
    • Method Detail

      • init

        public void init()
                  throws Exception
        Description copied from interface: Initialization
        Initializes some resources required by the services or performs some initialization processes at Silverpeas startup.
        Specified by:
        init in interface Initialization
        Throws:
        Exception - if an error occurs during the initialization process. In this case the Silverpeas startup fails.
      • isActivated

        public boolean isActivated()
        If the PDF to JSON conversion activated?
        Returns:
        true if the PDF to JSON toolkit is installed and works fine on the host. False otherwise.