Examples of PDSeparation


Examples of org.apache.pdfbox.pdmodel.graphics.color.PDSeparation

        {
            List<COSBase> argList = arguments;
            OperatorProcessor newOperator = null;

            if (colorSpace instanceof PDSeparation) {
                PDSeparation sep = (PDSeparation) colorSpace;
                colorSpace = sep.getAlternateColorSpace();
                argList = sep.calculateColorValues(arguments.get(0)).toList();
            }

            if (colorSpace instanceof PDDeviceGray)
            {
                newOperator = new SetNonStrokingGrayColor();
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.color.PDSeparation

            OperatorProcessor newOperator = null;
            List<COSBase> argList = arguments;

            if (colorSpace instanceof PDSeparation)
            {
                PDSeparation sep = (PDSeparation) colorSpace;
                colorSpace = sep.getAlternateColorSpace();
                argList = sep.calculateColorValues(arguments.get(0)).toList();
            }

            if (colorSpace instanceof PDDeviceGray)
            {
                newOperator = new SetStrokingGrayColor();
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.color.PDSeparation

        PDColorState color = context.getGraphicsState().getStrokingColor();
        PDColorSpace colorSpace = color.getColorSpace();
        log.info("handling color space " + colorSpace.toString());
        if (colorSpace instanceof PDSeparation)
        {
            PDSeparation sep = (PDSeparation) colorSpace;
            colorSpace = sep.getAlternateColorSpace();
            log.info("now handling alternate color space " + colorSpace.toString());
            if (colorSpace != null)
            {
                OperatorProcessor newOperator = null;
                if (colorSpace instanceof PDDeviceGray)
                {
                    newOperator = new SetStrokingGrayColor();
                }
                else if (colorSpace instanceof PDDeviceRGB)
                {
                    newOperator = new SetStrokingRGBColor();
                }
                else if (colorSpace instanceof PDDeviceCMYK)
                {
                    newOperator = new SetStrokingCMYKColor();
                }
                else if (colorSpace instanceof PDICCBased)
                {
                    newOperator = new SetStrokingICCBasedColor();
                }
                else if (colorSpace instanceof PDCalRGB)
                {
                    newOperator = new SetStrokingCalRGBColor();
                }
                else if (colorSpace instanceof PDSeparation)
                {
                    newOperator = new SetStrokingSeparation();
                }
   
                if (newOperator != null)
                {
                    newOperator.setContext(getContext());
                    newOperator.process(operator, sep.getColorValues().toList());
                }
                else
                {
                    log.warn("Not supported colorspace "+colorSpace.getName()
                            + " within operator "+operator.getOperation());
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.color.PDSeparation

        PDColorSpace colorSpace = colorInstance.getColorSpace();
        List argList = arguments;
       
        if (colorSpace instanceof PDSeparation)
        {
            PDSeparation sep = (PDSeparation) colorSpace;
            colorSpace = sep.getAlternateColorSpace();
            argList = sep.getColorValues().toList();
        }
   
        if (colorSpace != null)
        {
            OperatorProcessor newOperator = null;
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.color.PDSeparation

                    cm = csIndexed.createColorModel(bpc);
                }
            }
            else if (colorspace instanceof PDSeparation)
            {
                PDSeparation csSeparation = (PDSeparation)colorspace;
                int numberOfComponents = csSeparation.getAlternateColorSpace().getNumberOfComponents();
                PDFunction tintTransformFunc = csSeparation.getTintTransform();
                COSArray decode = getDecode();
                // we have to invert the tint-values,
                // if the Decode array exists and consists of (1,0)
                boolean invert = decode != null && decode.getInt(0) == 1;
                // TODO add interpolation for other decode values then 1,0
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.color.PDSeparation

            OperatorProcessor newOperator = null;
            List<COSBase> argList = arguments;

            if (colorSpace instanceof PDSeparation)
            {
                PDSeparation sep = (PDSeparation) colorSpace;
                colorSpace = sep.getAlternateColorSpace();
                argList = sep.getColorValues().toList();
            }

            if (colorSpace instanceof PDDeviceGray)
            {
                newOperator = new SetStrokingGrayColor();
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.color.PDSeparation

        {
            List<COSBase> argList = arguments;
            OperatorProcessor newOperator = null;

            if (colorSpace instanceof PDSeparation) {
                PDSeparation sep = (PDSeparation) colorSpace;
                colorSpace = sep.getAlternateColorSpace();
                argList = sep.getColorValues().toList();
            }

            if (colorSpace instanceof PDDeviceGray)
            {
                newOperator = new SetNonStrokingGrayColor();
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.