Examples of PDTilingPatternResources


Examples of org.apache.pdfbox.pdmodel.graphics.pattern.PDTilingPatternResources

        {
            context.addValidationError(new ValidationError(PreflightConstants.ERROR_GRAPHIC_MISSING_OBJECT, "Tiling pattern validation required at least a PDPage"));
        }
        else
        {
            PDTilingPatternResources tilingPattern = (PDTilingPatternResources) vPath.peek();
            PDPage page = vPath.getClosestPathElement(PDPage.class);

            checkMandatoryFields(context, page, tilingPattern);
            parseResources(context, page, tilingPattern);
            parsePatternContent(context, page, tilingPattern);
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.pattern.PDTilingPatternResources

        PDPatternResources pattern = null;
        int patternType = resourceDictionary.getInt( COSName.PATTERN_TYPE, 0 );
        switch (patternType)
        {
            case TILING_PATTERN:
                pattern = new PDTilingPatternResources(resourceDictionary);
                break;
            case SHADING_PATTERN:
                pattern = new PDShadingPatternResources(resourceDictionary);
                break;
            default:
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.pattern.PDTilingPatternResources

        PDPatternResources pattern = null;
        int patternType = resourceDictionary.getInt( COSName.PATTERN_TYPE, 0 );
        switch (patternType)
        {
            case TILING_PATTERN:
                pattern = new PDTilingPatternResources(resourceDictionary);
                break;
            case SHADING_PATTERN:
                pattern = new PDShadingPatternResources(resourceDictionary);
                break;
            default:
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.pattern.PDTilingPatternResources

        if (vPath.isEmpty() && !vPath.isExpectedType(PDPage.class))
        {
            throw new ValidationException("Tiling pattern validation required at least a PDPage");
        }

        PDTilingPatternResources tilingPattern = (PDTilingPatternResources) vPath.peek();
        PDPage page = vPath.getClosestPathElement(PDPage.class);

        checkMandatoryFields(context, page, tilingPattern);
        parseResources(context, page, tilingPattern);
        parsePatternContent(context, page, tilingPattern);
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.