Esempio n. 1
0
        /**
         * Populates the operators variable.
         */
        protected void PopulateOperators()
        {
            if (operators != null)
            {
                return;
            }
            operators = new Dictionary <string, PdfOperator>();
            operators[DEFAULTOPERATOR] = new CopyContentOperator();
            PdfOperator markedContent = new BeginMarkedContentDictionaryOperator();

            operators["BDC"] = markedContent;
            PdfOperator doOperator = new DoOperator();

            operators["Do"] = doOperator;
            PdfOperator beginText = new BeginTextOperator();

            operators["BT"] = beginText;
            PdfOperator endText = new EndTextOperator();

            operators["ET"] = endText;
            PdfOperator textPos = new TextPositioningOperator();

            operators["Td"] = textPos;
            operators["TD"] = textPos;
            operators["Tm"] = textPos;
            operators["T*"] = textPos;
            PdfOperator textState = new TextStateOperator();

            operators["Tc"] = textState;
            operators["Tw"] = textState;
            operators["Tz"] = textState;
            operators["TL"] = textState;
            operators["Tf"] = textState;
            operators["Tr"] = textState;
            operators["Ts"] = textState;
            PdfOperator textNL = new TextNewLineOperator();

            operators["'"]  = textNL;
            operators["\""] = textNL;
        }
Esempio n. 2
0
 /**
  * Populates the operators variable.
  */
 virtual protected void PopulateOperators() {
     if(operators != null)
         return;
     operators = new Dictionary<string, PdfOperator>();
     operators[DEFAULTOPERATOR] = new CopyContentOperator();
     PdfOperator markedContent = new BeginMarkedContentDictionaryOperator();
     operators["BDC"] = markedContent;
     PdfOperator doOperator = new DoOperator();
     operators["Do"] = doOperator;
     PdfOperator beginText = new BeginTextOperator();
     operators["BT"] = beginText;
     PdfOperator endText = new EndTextOperator();
     operators["ET"] = endText;
     PdfOperator textPos = new TextPositioningOperator();
     operators["Td"] = textPos;
     operators["TD"] = textPos;
     operators["Tm"] = textPos;
     operators["T*"] = textPos;
     PdfOperator textState = new TextStateOperator();
     operators["Tc"] = textState;
     operators["Tw"] = textState;
     operators["Tz"] = textState;
     operators["TL"] = textState;
     operators["Tf"] = textState;
     operators["Tr"] = textState;
     operators["Ts"] = textState;
     PdfOperator textNL = new TextNewLineOperator();
     operators["'"] = textNL;
     operators["\""] = textNL;
 }