Examples of write2file()


Examples of org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage.write2file()

                                else
                                {
                                    name = getUniqueFileName( prefix, image.getSuffix() );
                                }
                                System.out.println( "Writing image:" + name );
                                image.write2file( name );
                            }
                        }
                    }
                }
                finally
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage.write2file()

                    else
                    {
                        name = getUniqueFileName( prefix, image.getSuffix() );
                    }
                    System.out.println( "Writing image:" + name );
                    image.write2file( name );
                }
                // maybe there are more images embedded in a form object
                else if (xobject instanceof PDXObjectForm)
                {
                    PDXObjectForm xObjectForm = (PDXObjectForm)xobject;
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage.write2file()

                    {
                        writeJpeg2file((PDJpeg) image, name);
                    }
                    else
                    {
                        image.write2file(name);
                    }
                    image.clear(); // PDFBOX-2101 get rid of cache ASAP
                }
                // maybe there are more images embedded in a form object
                else if (xobject instanceof PDXObjectForm)
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage.write2file()

                            {
                                String key = (String)imageIter.next();
                                PDXObjectImage image = (PDXObjectImage)images.get( key );
                                String name = getUniqueFileName( key, image.getSuffix() );
                                System.out.println( "Writing image:" + name );
                                image.write2file( name );
                            }
                        }
                    }
                }
                finally
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage.write2file()

    String suffix = pdfImage.getSuffix();
    String name = getUniqueFileName(prefix + "_" + key, suffix);
    if (!"jpg".equals(suffix) && !"png".equals(suffix)) {
      System.err.println("Image format: " + suffix);
    }
    pdfImage.write2file(basePath.getAbsolutePath() + File.separator + name);
    String path = name + "." + suffix;

    if (lazyImages) {
      imageCache.put(key, path);
    }
View Full Code Here

Examples of org.pdfbox.pdmodel.graphics.xobject.PDXObjectImage.write2file()

                            {
                                String key = (String)imageIter.next();
                                PDXObjectImage image = (PDXObjectImage)images.get( key );
                                String name = getUniqueFileName( key, image.getSuffix() );
                                System.out.println( "Writing image:" + name );
                                image.write2file( name );
                            }
                        }
                    }
                }
                finally
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.