Package org.jpedal.objects.raw

Examples of org.jpedal.objects.raw.OCObject


            byte[] objData=(byte[]) objectValues[0];
            int size=objData.length;
            if(objData[size-1]=='R'){

                PdfObject obj=new OCObject(new String(objData));
                byte[] newData=objectReader.readObjectData(obj);

                int jj=0,newLen=newData.length;
                boolean hasArray=false;
                while(jj<newLen){
View Full Code Here


        int count=keys.length;
        for (byte[] key : keys) {

            ref = new String(key);
            glyphObj = new OCObject(ref);

            currentPdfFile.readObject(glyphObj);

            currentPdfFile.checkResolved(glyphObj);
View Full Code Here

                nextObject=(PdfObject)propertyMap.get(ref);

                if(nextObject==null){

                    if(rawRef!=null && rawRef[rawRef.length-1]=='R'){
                        nextObject=new OCObject(ref);
                        currentPdfFile.readObject(nextObject);
                        name=ref;
                    }else{ //it is a name for the level so add into path of name

                        if(parentName==null)
View Full Code Here

                continue;
            }

            ref = new String(A);

            nextObject = new OCObject(ref);
            if (A[0] == '<')
                nextObject.setStatus(PdfObject.UNDECODED_DIRECT);
            else
                nextObject.setStatus(PdfObject.UNDECODED_REF);

            //must be done AFTER setStatus()
            nextObject.setUnresolvedData(A, PdfDictionary.AS);
            currentPdfFile.checkResolved(nextObject);

            event = nextObject.getParameterConstant(PdfDictionary.Event);
            if (nextObject != null) {

                if (event == PdfDictionary.View) {
                    OCGs = nextObject.getKeyArray(PdfDictionary.OCGs);

                    if (OCGs != null) {

                        int childCount = OCGs.length;
                        for (byte[] OCG : OCGs) {

                            ref = new String(OCG);
                            nextObject = new OCObject(ref);
                            if (OCG[0] == '<') {
                                nextObject.setStatus(PdfObject.UNDECODED_DIRECT);
                            } else
                                nextObject.setStatus(PdfObject.UNDECODED_REF);
View Full Code Here

        for (byte[] aLayer : layer) {

            String nextValue = new String(aLayer);

            PdfObject nextObject = new OCObject(nextValue);

            currentPdfFile.readObject(nextObject);

            String layerName = nextObject.getTextStreamValue(PdfDictionary.Name);

            layerLocks.put(layerName, "x");

        }
    }
View Full Code Here

TOP

Related Classes of org.jpedal.objects.raw.OCObject

Copyright © 2018 www.massapicom. 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.