コード例 #1
0
        public void show(String text)
        {
            _procSet.add("/Text");

            if (!_inText)
            {
                println("BT");
                _inText = true;
            }

            if (!_hasFont && _font != null)
            {
                println("/" + _font.getPDFName() + " " + _fontSize + " Tf");
                _hasFont = true;
            }

            if (!_hasTextPos)
            {
                println(String.format(Locale.US, "%1.2f %1.2f Td", _textX, _textY));
                _hasTextPos = true;
            }

            println("(" + pdfEscapeText(text) + ") Tj");
        }