Examples of XObjFormValidator


Examples of org.apache.padaf.preflight.graphics.XObjFormValidator

        .getPDFName(DICTIONARY_KEY_SUBTYPE));

    if (XOBJECT_DICTIONARY_VALUE_SUBTYPE_IMG.equals(subtype)) {
      xObjVal = new XObjImageValidator(handler, dic);
    } else if (XOBJECT_DICTIONARY_VALUE_SUBTYPE_FORM.equals(subtype)) {
      xObjVal = new XObjFormValidator(handler, dic);
    } else if (XOBJECT_DICTIONARY_VALUE_SUBTYPE_POSTSCRIPT.equals(subtype)) {
      xObjVal = new XObjPostscriptValidator(handler, dic);
    } else {
      throw new ValidationException("Invalid XObject subtype");
    }
View Full Code Here

Examples of org.apache.pdfbox.preflight.xobject.XObjFormValidator

        {
            validator = new XObjImageValidator(context, (PDImageXObject) vPath.peek());
        }
        else if (!vPath.isEmpty() && vPath.isExpectedType(PDFormXObject.class))
        {
            validator = new XObjFormValidator(context, (PDFormXObject) vPath.peek());
        }
        else if (!vPath.isEmpty() && vPath.isExpectedType(PDPostScriptXObject.class))
        {
            validator = new XObjPostscriptValidator(context, (PDPostScriptXObject) vPath.peek());
        }
View Full Code Here

Examples of org.apache.pdfbox.preflight.xobject.XObjFormValidator

        {
            validator = new XObjImageValidator(context, (PDXObjectImage) vPath.peek());
        }
        else if (!vPath.isEmpty() && vPath.isExpectedType(PDXObjectForm.class))
        {
            validator = new XObjFormValidator(context, (PDXObjectForm) vPath.peek());
        }
        else if (!vPath.isEmpty() && vPath.isExpectedType(COSStream.class))
        {
            COSStream stream = (COSStream) vPath.peek();
            String subType = stream.getNameAsString(COSName.SUBTYPE);
View Full Code Here

Examples of org.apache.pdfbox.preflight.xobject.XObjFormValidator

        {
            validator = new XObjImageValidator(context, (PDXObjectImage) vPath.peek());
        }
        else if (!vPath.isEmpty() && vPath.isExpectedType(PDXObjectForm.class))
        {
            validator = new XObjFormValidator(context, (PDXObjectForm) vPath.peek());
        }
        else if (!vPath.isEmpty() && vPath.isExpectedType(COSStream.class))
        {
            COSStream stream = (COSStream) vPath.peek();
            String subType = stream.getNameAsString(COSName.SUBTYPE);
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.