Package org.apache.pdfbox.pdmodel.graphics.xobject

Examples of org.apache.pdfbox.pdmodel.graphics.xobject.PDXObject


        {
            Map<String, PDXObject> allXObjects = getXObjects();
            images = new HashMap<String, PDXObjectImage>();
            for (Map.Entry<String, PDXObject> entry : allXObjects.entrySet())
            {
                PDXObject xobject = entry.getValue();
                if (xobject instanceof PDXObjectImage)
                {
                    images.put(entry.getKey(), (PDXObjectImage) xobject);
                }
            }
View Full Code Here


        {
            Iterator<String> xobjectIter = xobjects.keySet().iterator();
            while( xobjectIter.hasNext() )
            {
                String key = xobjectIter.next();
                PDXObject xobject = xobjects.get( key );
                // write the images
                if (xobject instanceof PDXObjectImage)
                {
                    PDXObjectImage image = (PDXObjectImage)xobject;
                    String name = null;
View Full Code Here

        Map<String, PDXObject> xobjects = resources.getXObjects();
        if (xobjects != null)
        {
            for (String key : xobjects.keySet())
            {
                PDXObject xobject = xobjects.get(key);
                if (xobject instanceof PDXObjectImage)
                {
                    PDXObjectImage imageObject = (PDXObjectImage) xobject;
                    String suffix = imageObject.getSuffix();
                    if (suffix != null)
View Full Code Here

    {
        PageDrawer drawer = (PageDrawer)context;
        PDPage page = drawer.getPage();
        COSName objectName = (COSName)arguments.get( 0 );
        Map<String, PDXObject> xobjects = drawer.getResources().getXObjects();
        PDXObject xobject = (PDXObject)xobjects.get( objectName.getName() );
        if ( xobject == null )
        {
            LOG.warn("Can't find the XObject for '"+objectName.getName()+"'");
        }
        else if( xobject instanceof PDXObjectImage )
View Full Code Here

            else
            {
                xobjects = new HashMap<String, PDXObject>();
                for (COSName objName : xobjectsDictionary.keySet())
                {
                    PDXObject xobject = null;
                    try
                    {
                        xobject = PDXObject.createXObject(xobjectsDictionary.getDictionaryObject(objName));
                    }
                    catch (IOException exception)
View Full Code Here

        {
            Map<String, PDXObject> allXObjects = getXObjects();
            images = new HashMap<String, PDXObjectImage>();
            for (Map.Entry<String, PDXObject> entry : allXObjects.entrySet())
            {
                PDXObject xobject = entry.getValue();
                if (xobject instanceof PDXObjectImage)
                {
                    images.put(entry.getKey(), (PDXObjectImage) xobject);
                }
            }
View Full Code Here

        Map actuals = new HashMap();
        retval = new COSDictionaryMap( actuals, xobjects );
        for( COSName objName : xobjects.keySet() )
        {
            COSBase cosObject = xobjects.getDictionaryObject(objName);
            PDXObject xobject = PDXObject.createXObject( cosObject );
            if( xobject !=null )
            {
                actuals.put( objName.getName(), xobject);
            }
        }
View Full Code Here

    public void process(PDFOperator operator, List<COSBase> arguments) throws IOException
    {
        COSName name = (COSName) arguments.get( 0 );

        Map xobjects = context.getXObjects();
        PDXObject xobject = (PDXObject) xobjects.get(name.getName());
        if (this.context instanceof PDFMarkedContentExtractor)
        {
            ((PDFMarkedContentExtractor) this.context).xobject(xobject);
        }
View Full Code Here

    {
        PageDrawer drawer = (PageDrawer)context;
        PDPage page = drawer.getPage();
        COSName objectName = (COSName)arguments.get( 0 );
        Map xobjects = drawer.getResources().getXObjects();
        PDXObject xobject = (PDXObject)xobjects.get( objectName.getName() );
        if( xobject instanceof PDXObjectImage )
        {
            PDXObjectImage image = (PDXObjectImage)xobject;
            try
            {
View Full Code Here

        String operation = operator.getOperation();
        if( operation.equals( "Do" ) )
        {
            COSName objectName = (COSName)arguments.get( 0 );
            Map xobjects = getResources().getXObjects();
            PDXObject xobject = (PDXObject)xobjects.get( objectName.getName() );
            if( xobject instanceof PDXObjectImage )
            {
                try
                {
                    PDXObjectImage image = (PDXObjectImage)xobject;
View Full Code Here

TOP

Related Classes of org.apache.pdfbox.pdmodel.graphics.xobject.PDXObject

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.