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

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


                        ximage = new PDCcitt(document, new RandomAccessFile(new File(imageFilename), "r"));
                    }
                    else
                    {
                        BufferedImage awtImage = ImageIO.read(new File(imageFilename));
                        ximage = new PDPixelMap(document, awtImage);
                    }
                   
                    // define and set the target rectangle
                    int lowerLeftX = 250;
                    int lowerLeftY = 550;
View Full Code Here


                ximage = new PDCcitt(doc, new RandomAccessFile(new File(image),"r"));
            }
            else
            {
                BufferedImage awtImage = ImageIO.read( new File( image ) );
                ximage = new PDPixelMap(doc, awtImage);
            }
            PDPageContentStream contentStream = new PDPageContentStream(doc, page);

            //contentStream.drawImage(ximage, 20, 20 );
            // better method inspired by http://stackoverflow.com/a/22318681/535646
View Full Code Here

                ximage = new PDCcitt(doc, new RandomAccessFile(new File(image),"r"));
            }
            else
            {
                BufferedImage awtImage = ImageIO.read( new File( image ) );
                ximage = new PDPixelMap(doc, awtImage);
            }
            PDPageContentStream contentStream = new PDPageContentStream(doc, page, true, true);

            //contentStream.drawImage(ximage, 20, 20 );
            // better method inspired by http://stackoverflow.com/a/22318681/535646
View Full Code Here

TOP

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

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.