Package org.pdfbox.cos

Examples of org.pdfbox.cos.COSNumber.floatValue()


            }
        }
        else if( operation.equals( "TL" ) )
        {
            COSNumber leading = (COSNumber)arguments.get( 0 );
            currentLeading = leading.floatValue();
            if (log.isDebugEnabled())
            {
                log.debug("<TL leading=\"" + leading.floatValue() + "\" >");
            }
        }
View Full Code Here


        {
            COSNumber leading = (COSNumber)arguments.get( 0 );
            currentLeading = leading.floatValue();
            if (log.isDebugEnabled())
            {
                log.debug("<TL leading=\"" + leading.floatValue() + "\" >");
            }
        }
        else if( operation.equals( "Tm" ) )
        {
            //Set text matrix and text line matrix
View Full Code Here

                          "a=\"" + a.floatValue() + "\" " +
                          "b=\"" + b.floatValue() + "\" " +
                          "c=\"" + c.floatValue() + "\" " +
                          "d=\"" + d.floatValue() + "\" " +
                          "e=\"" + e.floatValue() + "\" " +
                          "f=\"" + f.floatValue() + "\" >");
            }

            textMatrix = new Matrix();
            textMatrix.setValue( 0, 0, a.floatValue() );
            textMatrix.setValue( 0, 1, b.floatValue() );
View Full Code Here

            textMatrix.setValue( 0, 0, a.floatValue() );
            textMatrix.setValue( 0, 1, b.floatValue() );
            textMatrix.setValue( 1, 0, c.floatValue() );
            textMatrix.setValue( 1, 1, d.floatValue() );
            textMatrix.setValue( 2, 0, e.floatValue() );
            textMatrix.setValue( 2, 1, f.floatValue() );
            textLineMatrix = textMatrix.copy();
        }/**
        else if( operation.equals( "Tr" ) )
        {
            //Set text rendering mode
View Full Code Here

        {
            //set word spacing
            COSNumber wordSpacing = (COSNumber)arguments.get( 0 );
            if (log.isDebugEnabled())
            {
                log.debug("<Tw wordSpacing=\"" + wordSpacing.floatValue() + "\" />");
            }
            currentWordSpacing = wordSpacing.floatValue();
        }/**
        else if( operation.equals( "Tz" ) )
        {
View Full Code Here

            COSNumber wordSpacing = (COSNumber)arguments.get( 0 );
            if (log.isDebugEnabled())
            {
                log.debug("<Tw wordSpacing=\"" + wordSpacing.floatValue() + "\" />");
            }
            currentWordSpacing = wordSpacing.floatValue();
        }/**
        else if( operation.equals( "Tz" ) )
        {
            //Set horizontal text scaling
        }
View Full Code Here

                log.debug("<\" wordSpacing=\"" + wordSpacing +
                          "\", characterSpacing=\"" + characterSpacing +
                          "\", string=\"" + string.getString() + "\">");
            }

            currentCharacterSpacing = characterSpacing.floatValue();
            currentWordSpacing = wordSpacing.floatValue();

            Matrix td = new Matrix();
            td.setValue( 2, 1, -1 * currentLeading * textMatrix.getValue(1,1));
            textLineMatrix = textLineMatrix.multiply( td );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.