Documentation / MathType

  • Demos
  • Visit our website
  • Downloads
  • Contact us
  • MathType

    • Wiris Quizzes

      • Learning Lemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Miscellaneous

                      • Wiris Integrations

                        • Home
                        • MathType
                        • MathType Integrations
                        • MathType web interface features
                        • MathType web interface features

                        AWS S3 Storage

                        Reading time: 1min

                        This article explains how to implement a cache class for storing and retrieving MathType cache from Amazon Simple Storage Service (Amazon S3).

                        MathType Integrations need to store two pieces of information in the server. By default, this information is stored in the file system:

                        1. The inverse association <digest> to MathML. This data cannot be removed unless it exists a mechanism able to regenerate them.
                        2. A cache with the images generated from MathML. This cache can be removed if necessary and it will be regenerated when formulas are displayed.

                        In order to use Amazon S3 for storing and MathType it is necessary to implement com.wiris.plugin.storage.StorageAndCacheinterface interface. See server-side API for a description of the interface.

                        Amazon Web Services

                        The following examples show how to implement a S3 Storage class for Java, PHP and .Net . These sample classes are fully functional.

                        The following steps should be followed in order to run them. However, put hardcoded credentials is a bad practice, here are used to simplify the example. You can visit the links to PHP, Java and .Net to learn how to do it well.

                        1. First of all, change the BUCKET_NAME value to the name of your bucket.
                        2. Then, insert your credential keys (i.e: ACCESS_KEY and SECRET_KEY values).
                        3. Next, change the REGION value.
                        4. Finally, change the key wirisstorageclass of your configuration.ini to point to the S3 cache class. See the formula persistence section for more information.

                        Sample classes repo

                        Go to this git repository to find the examples.

                        Was this article helpful?

                        Yes
                        No
                        Give feedback about this article

                        Related Articles

                        • MathType for WordPress
                        • Frontend vs integration services configuration options
                        • MathType for Google Workspace

                        AWS S3 Storage

                        Amazon Web Services Sample classes repo

                        Making people’s STEM work more meaningful

                        MathType

                        • MathType for Office Tools
                        • MathType for Mac
                        • MathType for Microsoft 365
                        • MathType for Google Workspace
                        • MathType for LMS
                        • MathType for XML Editors
                        • Arabic notation
                        • Our products accessibility
                        • MathType is online

                        WirisQuizzes

                        Learning Lemur

                        Solutions for Education

                        • Blackboard Learn
                        • Brightspace by D2L
                        • Canvas
                        • Google Classroom
                        • Moodle
                        • Schoology

                        Solutions for Publishing Houses

                        Solutions for Technical Writers

                        Solutions for Chemistry

                        Integrations

                        • HTML Editors
                        • MathType in WordPress

                        Pricing

                        Company

                        Careers

                        Blog

                        Contact Us

                        Buy Now

                        Plugin Downloads

                        © Wiris 2025

                        • Cookie Settings
                        • Cookie Policy
                        • Terms of Use
                        • Privacy Policy / GDPR
                        • Student Data Privacy
                        • Compliance
                        • Powered by Helpjuice
                        Expand