Package org.pdfbox.cos

Examples of org.pdfbox.cos.COSInteger.intValue()


                //Example:
                //docFf = 1011
                //clrFf = 1101
                //clrFfValue = 0010;
                //newValue = 1011 & 0010 which is 0010
                int clrFfValue = (int)clrFf.intValue();
                clrFfValue ^= 0xFFFFFFFF;
                docFlags = docFlags & clrFfValue;
                setFlags( docFlags );
            }
        }
View Full Code Here


            }
        }
        COSInteger f = (COSInteger)fdfField.getDictionaryObject( COSName.getPDFName( "F" ) );
        if( f != null )
        {
            setAnnotationFlags( (int)f.intValue() );
        }
        else
        {
            //these are suppose to be ignored if the F is set.
            COSInteger setF = (COSInteger)fdfField.getDictionaryObject( COSName.getPDFName( "SetF" ) );
View Full Code Here

        {
            //these are suppose to be ignored if the F is set.
            COSInteger setF = (COSInteger)fdfField.getDictionaryObject( COSName.getPDFName( "SetF" ) );
            if( setF != null )
            {
                annotFlags = annotFlags | (int)setF.intValue();
                setAnnotationFlags( annotFlags );
            }

            COSInteger clrF = (COSInteger)fdfField.getDictionaryObject( COSName.getPDFName( "ClrF" ) );
            if( clrF != null )
View Full Code Here

                //Example:
                //docF = 1011
                //clrF = 1101
                //clrFValue = 0010;
                //newValue = 1011 & 0010 which is 0010
                int clrFValue = (int)clrF.intValue();
                clrFValue ^= 0xFFFFFFFFL;
                annotFlags = annotFlags & clrFValue;
                setAnnotationFlags( annotFlags );
            }
        }
View Full Code Here

        //0 is default
        int retval = 0;
        COSInteger ff = (COSInteger)field.getDictionaryObject( COSName.getPDFName( "Ff" ) );
        if( ff != null )
        {
            retval = (int)ff.intValue();
        }
        return retval;
    }

    /**
 
View Full Code Here

        COSInteger firstChar = (COSInteger)font.getDictionaryObject( COSName.FIRSTCHAR );
        COSInteger lastChar = (COSInteger)font.getDictionaryObject( COSName.LASTCHAR );
        if( firstChar != null && lastChar != null )
        {
            long first = firstChar.intValue();
            long last = lastChar.intValue();
            if( code >= first && code <= last && font.getDictionaryObject( COSName.WIDTHS ) != null )
            {
                COSArray widthArray = (COSArray)font.getDictionaryObject( COSName.WIDTHS );
                COSNumber fontWidthObject = (COSNumber)widthArray.get( (int)(code - first) );
                fontWidth = fontWidthObject.floatValue();
View Full Code Here

    {
        COSDictionary encrypted = doc.getDocument().getEncryptionDictionary();
        if( encrypted != null )
        {
            COSInteger p = (COSInteger)encrypted.getDictionaryObject( COSName.getPDFName( "P" ) );
            long pVal = p.intValue();
            if( (pVal & 16) == 0 )
            {
                throw new IOException( "You do not have permission to extract text" );
            }
        }
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.