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

                    • Home
                    • MathType
                    • MathType Office Tools
                    • MathType 7 for Windows and Mac
                    • MathType SDK
                    • MathType SDK

                    Embedded data in PDF

                    Reading time: 1min

                    An important feature of MathType is support for PDF graphics. This document describes useful equation data that MathType embeds in PDF graphics it generates.

                    MathType embeds data in the PieceInfo dictionary associated with the page object in an equation PDF. The PieceInfo dictionary contains two sub-dictionaries. One in the EGO dictionary, and contains data required by the EGO specification for editing MathType equations. The other is a DesignScience dictionary, which contains metric data, as well as data describing the equation content.

                    The individual data item keys and types are:

                    Data Item Key Data Type
                    Baseline CGPDFReal. -- in points
                    MTEF CGPDFStreamRef
                    LeftSideBearing CGPDFReal (optional)
                    RightSideBearing CGPDFReal (optional)
                    MathML CGPDFStreamRef (optional)
                    creator CGPDFStringRef
                    descent CGPDFReal (value in points)
                    tactileRect CGPDFArrayRef<CGPDFReal> [llx, lly, urx, ury] (values in points)

                    The embedding hierarchy is summarized here:

                    • pdfdoc
                      • pdfpage
                        • PieceInfo (dictionary)
                          • DesignScience (dictionary)
                            • LastModified (required date string)
                            • Private (required data - dictionary)
                              • Baseline
                              • MTEF
                              • LeftSideBearing
                              • RightSideBearing
                              • MathML
                          • EGO (dictionary)
                            • LastModified (required date string)
                            • Private (required data - dictionary)
                              • creator
                              • descent
                              • tactileRect

                    This scheme follows the recommendations for embedding private data in the PDF 1.3 spec.

                    Note that the Baseline, LeftSideBearing and RightSideBearing fields are redundant with the descent and tactileRect fields in the EGO data. However, the EGO data is essentially prescribed, as it should really be isomorphic to the EGO data now embedded in PICT comments. At the same time, it is appealing to group the DSI quantities together under these names as this is what we do in other formats. Since the duplication is limited to 4 real numbers, this seems acceptable.

                    Was this article helpful?

                    Yes
                    No
                    Give feedback about this article

                    Related Articles

                    • Using MathType with other applications and websites
                    • Using MathType with MathJax-enabled applications and websites
                    • Using MathType with Adobe InDesign

                    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 Preferences
                    • Cookie Policy
                    • Terms of Use
                    • Privacy Policy / GDPR
                    • Student Data Privacy
                    • Compliance
                    • Powered by Helpjuice
                    Expand