Beispiel #1
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;
        }
Beispiel #2
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;
 }