Exemple #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;
        }
Exemple #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;
 }
Exemple #3
0
        /// <summary>
        /// Populates the operators variable.
        /// </summary>
        protected internal static void PopulateOperators()
        {
            operators[DEFAULTOPERATOR] = new CopyContentOperator();
            PathConstructionOrPaintingOperator opConstructionPainting = new PathConstructionOrPaintingOperator();

            operators["m"]  = opConstructionPainting;
            operators["l"]  = opConstructionPainting;
            operators["c"]  = opConstructionPainting;
            operators["v"]  = opConstructionPainting;
            operators["y"]  = opConstructionPainting;
            operators["h"]  = opConstructionPainting;
            operators["re"] = opConstructionPainting;
            operators["S"]  = opConstructionPainting;
            operators["s"]  = opConstructionPainting;
            operators["f"]  = opConstructionPainting;
            operators["F"]  = opConstructionPainting;
            operators["f*"] = opConstructionPainting;
            operators["B"]  = opConstructionPainting;
            operators["B*"] = opConstructionPainting;
            operators["b"]  = opConstructionPainting;
            operators["b*"] = opConstructionPainting;
            operators["n"]  = opConstructionPainting;
            operators["W"]  = opConstructionPainting;
            operators["W*"] = opConstructionPainting;
            GraphicsOperator graphics = new GraphicsOperator();

            operators["q"]   = graphics;
            operators["Q"]   = graphics;
            operators["w"]   = graphics;
            operators["J"]   = graphics;
            operators["j"]   = graphics;
            operators["M"]   = graphics;
            operators["d"]   = graphics;
            operators["ri"]  = graphics;
            operators["i"]   = graphics;
            operators["gs"]  = graphics;
            operators["cm"]  = graphics;
            operators["g"]   = graphics;
            operators["G"]   = graphics;
            operators["rg"]  = graphics;
            operators["RG"]  = graphics;
            operators["k"]   = graphics;
            operators["K"]   = graphics;
            operators["cs"]  = graphics;
            operators["CS"]  = graphics;
            operators["sc"]  = graphics;
            operators["SC"]  = graphics;
            operators["scn"] = graphics;
            operators["SCN"] = graphics;
            operators["sh"]  = graphics;
            XObjectOperator xObject = new XObjectOperator();

            operators["Do"] = xObject;
            InlineImageOperator inlineImage = new InlineImageOperator();

            operators["BI"] = inlineImage;
            operators["EI"] = inlineImage;
            TextOperator text = new TextOperator();

            operators["BT"] = text;
            operators["ID"] = text;
            operators["ET"] = text;
            operators["Tc"] = text;
            operators["Tw"] = text;
            operators["Tz"] = text;
            operators["TL"] = text;
            operators["Tf"] = text;
            operators["Tr"] = text;
            operators["Ts"] = text;
            operators["Td"] = text;
            operators["TD"] = text;
            operators["Tm"] = text;
            operators["T*"] = text;
            operators["Tj"] = text;
            operators["'"]  = text;
            operators["\""] = text;
            operators["TJ"] = text;
            MarkedContentOperator markedContent = new MarkedContentOperator();

            operators["BMC"] = markedContent;
            operators["BDC"] = markedContent;
            operators["EMC"] = markedContent;
        }
Exemple #4
0
 /// <summary>
 /// Populates the operators variable.
 /// </summary>
 protected internal virtual void PopulateOperators() {
     if (operators != null) {
         return;
     }
     operators = new Dictionary<string, PdfOperator>();
     operators[DEFAULTOPERATOR] = new CopyContentOperator();
     PathConstructionOrPaintingOperator opConstructionPainting = new PathConstructionOrPaintingOperator();
     operators["m"] = opConstructionPainting;
     operators["l"] = opConstructionPainting;
     operators["c"] = opConstructionPainting;
     operators["v"] = opConstructionPainting;
     operators["y"] = opConstructionPainting;
     operators["h"] = opConstructionPainting;
     operators["re"] = opConstructionPainting;
     operators["S"] = opConstructionPainting;
     operators["s"] = opConstructionPainting;
     operators["f"] = opConstructionPainting;
     operators["F"] = opConstructionPainting;
     operators["f*"] = opConstructionPainting;
     operators["B"] = opConstructionPainting;
     operators["B*"] = opConstructionPainting;
     operators["b"] = opConstructionPainting;
     operators["b*"] = opConstructionPainting;
     operators["n"] = opConstructionPainting;
     operators["W"] = opConstructionPainting;
     operators["W*"] = opConstructionPainting;
     GraphicsOperator graphics = new GraphicsOperator();
     operators["q"] = graphics;
     operators["Q"] = graphics;
     operators["w"] = graphics;
     operators["J"] = graphics;
     operators["j"] = graphics;
     operators["M"] = graphics;
     operators["d"] = graphics;
     operators["ri"] = graphics;
     operators["i"] = graphics;
     operators["gs"] = graphics;
     operators["cm"] = graphics;
     operators["g"] = graphics;
     operators["G"] = graphics;
     operators["rg"] = graphics;
     operators["RG"] = graphics;
     operators["k"] = graphics;
     operators["K"] = graphics;
     operators["cs"] = graphics;
     operators["CS"] = graphics;
     operators["sc"] = graphics;
     operators["SC"] = graphics;
     operators["scn"] = graphics;
     operators["SCN"] = graphics;
     operators["sh"] = graphics;
     XObjectOperator xObject = new XObjectOperator();
     operators["Do"] = xObject;
     InlineImageOperator inlineImage = new InlineImageOperator();
     operators["BI"] = inlineImage;
     operators["EI"] = inlineImage;
     TextOperator text = new TextOperator();
     operators["BT"] = text;
     operators["ID"] = text;
     operators["ET"] = text;
     operators["Tc"] = text;
     operators["Tw"] = text;
     operators["Tz"] = text;
     operators["TL"] = text;
     operators["Tf"] = text;
     operators["Tr"] = text;
     operators["Ts"] = text;
     operators["Td"] = text;
     operators["TD"] = text;
     operators["Tm"] = text;
     operators["T*"] = text;
     operators["Tj"] = text;
     operators["'"] = text;
     operators["\""] = text;
     operators["TJ"] = text;
     MarkedContentOperator markedContent = new MarkedContentOperator();
     operators["BMC"] = markedContent;
     operators["BDC"] = markedContent;
     operators["EMC"] = markedContent;
 }