Package org.apache.pdfbox.preflight

Examples of org.apache.pdfbox.preflight.PreflightConfiguration


        COSDictionary actionsDict = (COSDictionary) vPath.peek();
        // AA entry is authorized only for Page, in this case A Page is just before the Action Dictionary in the path
        boolean aaEntryAuth = ((vPath.size() - vPath.getClosestTypePosition(PDPage.class)) == 2);

        PreflightConfiguration config = context.getConfig();
        ActionManagerFactory factory = config.getActionFact();
        List<AbstractActionManager> la = factory.getActionManagers(context, actionsDict);
        for (AbstractActionManager aMng : la)
        {
            aMng.valid(aaEntryAuth);
        }
View Full Code Here


        if (resources != null)
        {
            Map<String, PDColorSpace> colorSpaces = resources.getColorSpaces();
            if (colorSpaces != null)
            {
                PreflightConfiguration config = context.getConfig();
                ColorSpaceHelperFactory colorSpaceFactory = config.getColorSpaceHelperFact();
                for (PDColorSpace pdCS : colorSpaces.values())
                {
                    ColorSpaceHelper csHelper = colorSpaceFactory.getColorSpaceHelper(context, pdCS,
                            ColorSpaceRestriction.NO_RESTRICTION);
                    csHelper.validate();
View Full Code Here

TOP

Related Classes of org.apache.pdfbox.preflight.PreflightConfiguration

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.