Examples of PdfException


Examples of org.jpedal.exception.PdfException

            ByteArrayInputStream bis=new ByteArrayInputStream(stream);

            //read version and throw error is not correct version
            int version=bis.read();
            if(version!=1)
                throw new PdfException("Unknown version in serialised object "+version);

            int isHires=bis.read(); //0=no,1=yes
            useHiResImageForDisplay = isHires == 1;

            pageNumber=bis.read();
View Full Code Here

Examples of railo.commons.pdf.PDFException

    Boolean fe=Caster.toBoolean(fontembed,null);
    if(fe==null) {
      fontembed=StringUtil.toLowerCase(fontembed.trim());
      if("selective".equals(fontembed))
        this.fontembed=PDFDocument.FONT_EMBED_SELECCTIVE;
      else throw new PDFException("invalid value for fontembed ["+fontembed+"], valid values for fontembed are [yes,no,selective]");
     
    }
    else if(fe.booleanValue())this.fontembed=PDFDocument.FONT_EMBED_YES;
    else this.fontembed=PDFDocument.FONT_EMBED_NO;
    getDocument().setFontembed(this.fontembed);
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.