Package org.jpedal.exception

Examples of org.jpedal.exception.PdfException


        x1=this.f_y2[i];
        x2=this.f_y1[i];
        y2=this.f_x1[i];
        y1=this.f_x2[i];
      }else{
        throw new PdfException("Illegal value "+currentWritingMode+"for currentWritingMode");
      }
     
      //if in the area, process
      if ((x1 > minX - .5)&& (x2 < maxX + .5)&& (y2 > minY - .5)&& (y1 < maxY + .5)) {
View Full Code Here


        f_x1[ii]=maxX-f_x1[ii];
        f_x2[ii]=maxX-f_x2[ii];
      }
     
    }else{
      throw new PdfException("Illegal value "+currentWritingMode+"for currentWritingMode");
    }

    int item, i, current_col = -1;

    int itemsInTable = 0, items_added = 0;
View Full Code Here

      items = this.getsortedUnusedFragments(false, true);
      items=reverse(items);
                break;

            default:
      throw new PdfException("Illegal value "+mode+"for currentWritingMode");
    }
   
    //holds line we're working on
    Vector_Int current_line;
   
View Full Code Here


        reset();

        if((breakFragments)&&(!pdf_data.IsEmbedded()))
              throw new PdfException("[PDF] Request to breakfragments and width not added. Please add call to init(true) of PdfDecoder to your code.");
 
    /** make sure co-ords valid and throw exception if not */
    int[] v = validateCoordinates(x1, y1, x2, y2);
    x1 = v[0];
    y1 = v[1];
View Full Code Here

      f_y2=this.f_x2;
      f_y1=this.f_x1;
      indices = getsortedUnusedFragments(true, true);
      middlePage = (y1 + y2) / 2;
    }else{
      throw new PdfException("Illegal value "+currentWritingMode+"for currentWritingMode");
    }
    int quarter = middlePage / 2;
    int count = indices.length;
    int master = indices[count - 1];
 
View Full Code Here

      f_x1=this.f_y2;
      f_x2=this.f_y1;
      f_y2=this.f_x1;
      f_y1=this.f_x2;
    }else{
      throw new PdfException("Illegal value "+mode+"for currentWritingMode");
    }

    /**
     * scan items joining best fit to right of each fragment to build
     * lines. This is tedious and processor intensive but necessary as the
View Full Code Here

            int[] currentChangeElement = new int[2];

            // The data must start with an EOL code
            if( readEOL( true ) != 1 )
                throw new PdfException( "TIFFFaxDecoder3");

            //always 1D at first
            decode1DRun(curr);

            //rest of lines either 1 or 2D
View Full Code Here

                        bitOffset += code;
                        bitReached=bitReached- (4 - bits);
                    }else if( bits == 15 )
                        // EOL code
                        throw new PdfException(( "1D error" ) );
                    else{
                        out.set(outPtr,outPtr+ code,true);
                        outPtr=outPtr+ code;
                        bitOffset += code;
                        bitReached=bitReached- (9 - bits);
View Full Code Here

                    fillBits = 1;
                    return 1;
                }
            }
            if( next12Bits != 1 )
                throw new PdfException(( "EOL error1" ) );
        }else if( fillBits == 1 ){

            int bitsLeft = bitReached & 7;

            int rr=get1DBits( bitsLeft );

            bitReached=bitReached+bitsLeft;

            if( rr != 0 )
                throw new PdfException(( "EOL error2" ) );

            if( bitsLeft < 4 ){
                int rr2=get1DBits( 8 );

                bitReached=bitReached+8;

                if( rr2 != 0 )
                    throw new PdfException("EOL error3");
            }

            int n= get1DBits( 8 );
            bitReached=bitReached+8;

            while( n != 1 ){

                // If not all zeros
                if( n != 0 )
                    throw new PdfException("EOL error4");

                n = get1DBits( 8 );
                bitReached=bitReached+8;
            }
        }
View Full Code Here

        stream=this.getClass().getResourceAsStream("/org/jpedal/res/cmm/cmyk.icm");
      else{
        try{
          stream=new FileInputStream(profile);
        }catch(Exception ee){
          throw new PdfException("PdfException attempting to use user profile "+profile+" Message="+ee);
        }
      }

      ICC_Profile p =ICC_Profile.getInstance(stream);
      CMYK = new ICC_ColorSpace(p);
View Full Code Here

TOP

Related Classes of org.jpedal.exception.PdfException

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.