Examples of PDShadingResources


Examples of org.apache.pdfbox.pdmodel.graphics.shading.PDShadingResources

     *
     * @throws IOException If there is an IO error while shade-filling the clipping area.
     */
    public void shFill(COSName shadingName) throws IOException
    {
        PDShadingResources shading = getResources().getShadings().get(shadingName.getName());
        LOG.debug("Shading = " + shading.toString());
        int shadingType = shading.getShadingType();
        Matrix ctm = getGraphicsState().getCurrentTransformationMatrix();
        Paint paint = null;
        switch (shadingType)
        {
            case 1:
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.shading.PDShadingResources

            Iterator<String> iter = shadingsValue.keySet().iterator();
            COSDictionary dic = new COSDictionary();
            while (iter.hasNext())
            {
                String name = iter.next();
                PDShadingResources shading = shadingsValue.get(name);
                dic.setItem(COSName.getPDFName(name), shading.getCOSObject());
            }
            resources.setItem(COSName.SHADING, dic);
        }
        else
        {
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.shading.PDShadingResources

     *
     * @throws IOException If there is an IO error while shade-filling the clipping area.
     */
    public void shFill(COSName shadingName) throws IOException
    {
        PDShadingResources shading = getResources().getShadings().get(shadingName.getName());
        LOG.debug("Shading = " + shading.toString());
        int shadingType = shading.getShadingType();
        Matrix ctm = getGraphicsState().getCurrentTransformationMatrix();
        Paint paint = null;
        switch (shadingType)
        {
            case 1:
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.shading.PDShadingResources

            Iterator<String> iter = shadingsValue.keySet().iterator();
            COSDictionary dic = new COSDictionary();
            while (iter.hasNext())
            {
                String name = iter.next();
                PDShadingResources shading = shadingsValue.get(name);
                dic.setItem(COSName.getPDFName(name), shading.getCOSObject());
            }
            resources.setItem(COSName.SHADING, dic);
        }
        else
        {
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.shading.PDShadingResources

     *
     * @throws IOException If there is an IO error while shade-filling the clipping area.
     */
    public void shFill(COSName shadingName) throws IOException
    {
        PDShadingResources shading = getResources().getShadings().get(shadingName.getName());
        LOG.debug("Shading = " + shading.toString());
        int shadingType = shading.getShadingType();
        Matrix ctm = getGraphicsState().getCurrentTransformationMatrix();
        Paint paint = null;
        switch (shadingType)
        {
            case 1:
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.shading.PDShadingResources

            Iterator<String> iter = shadingsValue.keySet().iterator();
            COSDictionary dic = new COSDictionary();
            while( iter.hasNext() )
            {
                String name = iter.next();
                PDShadingResources shading = shadingsValue.get( name );
                dic.setItem( COSName.getPDFName( name ), shading.getCOSObject() );
            }
            resources.setItem( COSName.SHADING, dic );
        }
        else
        {
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.shading.PDShadingResources

     *
     * @throws IOException If there is an IO error while shade-filling the clipping area.
     */
    public void shFill(COSName shadingName) throws IOException
    {
        PDShadingResources shading = getResources().getShadings().get(shadingName.getName());
        LOG.debug("Shading = " + shading.toString());
        int shadingType = shading.getShadingType();
        Matrix ctm = getGraphicsState().getCurrentTransformationMatrix();
        Paint paint = null;
        switch (shadingType)
        {
            case 1:
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.shading.PDShadingResources

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

        PDShadingResources shaddingResource = (PDShadingResources) vPath.peek();
        PDPage page = vPath.getClosestPathElement(PDPage.class);
        checkColorSpace(context, page, shaddingResource);
        checkGraphicState(context, page, shaddingResource);
    }
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.