Package org.apache.pdfbox.preflight.process

Examples of org.apache.pdfbox.preflight.process.ValidationProcess


    throws ValidationException
    {
        PreflightPath validationPath = context.getValidationPath();
        boolean needPop = validationPath.pushObject(element);
        PreflightConfiguration config = context.getConfig();
        ValidationProcess process = config.getInstanceOfProcess(processName);
        process.validate(context);
        if (needPop) {
            validationPath.pop();
        }
    }
View Full Code Here


    throws ValidationException
    {
        PreflightPath validationPath = context.getValidationPath();
        boolean needPop = validationPath.pushObject(element);
        PreflightConfiguration config = context.getConfig();
        ValidationProcess process = config.getInstanceOfProcess(processName);
        process.validate(context);
        if (needPop) {
            validationPath.pop();
        }
    }
View Full Code Here

{

    @Test
    public void testGetValidationProcess() throws Exception {
        PreflightConfiguration confg = PreflightConfiguration.createPdfA1BConfiguration();
        ValidationProcess vp = confg.getInstanceOfProcess(PreflightConfiguration.BOOKMARK_PROCESS);
        Assert.assertNotNull(vp);
        Assert.assertTrue(vp instanceof BookmarkValidationProcess);
    }
View Full Code Here

    }
   
    @Test
    public void testGetValidationPageProcess() throws Exception {
        PreflightConfiguration confg = PreflightConfiguration.createPdfA1BConfiguration();
        ValidationProcess vp = confg.getInstanceOfProcess(PreflightConfiguration.RESOURCES_PROCESS);
        Assert.assertNotNull(vp);
        Assert.assertTrue(vp instanceof ResourcesValidationProcess);
    }
View Full Code Here

    @Test
    public void testGetValidationProcess_noError() throws Exception {
        PreflightConfiguration confg = PreflightConfiguration.createPdfA1BConfiguration();
        confg.setErrorOnMissingProcess(false);
        confg.removeProcess(PreflightConfiguration.BOOKMARK_PROCESS);
        ValidationProcess vp = confg.getInstanceOfProcess(PreflightConfiguration.BOOKMARK_PROCESS);
        Assert.assertNotNull(vp);
        Assert.assertTrue(vp instanceof EmptyValidationProcess);
    }
View Full Code Here

    @Test
    public void testGetValidationPageProcess_noError() throws Exception {
        PreflightConfiguration confg = PreflightConfiguration.createPdfA1BConfiguration();
        confg.setErrorOnMissingProcess(false);
        confg.removePageProcess(PreflightConfiguration.RESOURCES_PROCESS);
        ValidationProcess vp = confg.getInstanceOfProcess(PreflightConfiguration.RESOURCES_PROCESS);
        Assert.assertNotNull(vp);
        Assert.assertTrue(vp instanceof EmptyValidationProcess);
    }
View Full Code Here

        }

        PreflightPath validationPath = context.getValidationPath();
        boolean needPop = validationPath.pushObject(element);
        PreflightConfiguration config = context.getConfig();
        ValidationProcess process = config.getInstanceOfProcess(processName);
        process.validate(context);
        if (needPop)
            validationPath.pop();
    }
View Full Code Here

TOP

Related Classes of org.apache.pdfbox.preflight.process.ValidationProcess

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.