Package com.lowagie.text

Examples of com.lowagie.text.Image.height()


                String savePathImage = FileHelper.getCurrentPath(request) + levelPlan.getWayToLevelPlanImage();

                byte[]  bytes = createImage(levelPlan.getWayToLevelPlan(), levelPlan.getWayToLevelPlanImage(), FileHelper.getCurrentPath(request));

                Image image = Image.getInstance(savePathImage);
                newInformation += ReportUtil.createPhoto("CompanyLicense", image.height(), image.width(), savePathImage);
                ReportUtil.insertImage(savePathImage,bytes, template);
                result += newInformation;


            }
View Full Code Here


                newInformation = "<br><br>";
                byte[] bytes = createImage(objectConstruction.getWayToDefectMap(), objectConstruction.getWayToDefectMapImage(), FileHelper.getCurrentPath(request));

                Image image = Image.getInstance(savePathImage);
                newInformation += ReportUtil.createPhoto("CompanyLicense", image.height(), image.width(), savePathImage);

                ReportUtil.insertImage(savePathImage, bytes, template);


View Full Code Here

                        fileOutputStream.write(bufer);
                    }
                    inputStream.close();
                    fileOutputStream.close();
                    Image image = Image.getInstance(defectPhoto.getWayToPhoto());
                    newRowPhoto = ReportUtil.createPhoto("defect_illustration", image.height(), image.width(), defectPhoto.getWayToPhoto());
                    newRowPhoto += "\n<p class=3DMsoNormal align=3Dcenter style=3D'text-align:center'>" + (defectPhoto.getPhotoRefference() + ". " + defectPhoto.getExtraComment()) + "</p>\n";
                    ReportUtil.insertImage(defectPhoto.getWayToPhoto(), defectPhoto.getPhotoBlob().getBytes(1, (int) defectPhoto.getPhotoBlob().length()), template);
                    resultPhoto += newRowPhoto;
                }
                ReportUtil.replaceAllLabel(template, "%illustrations%", resultPhoto);
View Full Code Here

                }
                inputStream.close();
                fileOutputStream.close();

                Image image = Image.getInstance(objectPhoto.getWayToPhoto());
                newRowObjectPhoto = ReportUtil.createPhoto("object_illustration", image.height(), image.width(), objectPhoto.getWayToPhoto());
                ReportUtil.insertImage(objectPhoto.getWayToPhoto(), objectPhoto.getPhotoBlob().getBytes(1, (int) objectPhoto.getPhotoBlob().length()), template);
                resultObjectPhoto += newRowObjectPhoto;
            }
            ReportUtil.replaceAllLabel(template, "%objectIllustrations%", resultObjectPhoto);
View Full Code Here

                fileOutputStream.write(bufer);
            }
            inputStream.close();
            fileOutputStream.close();
            Image image = Image.getInstance(photo.getWayToPhoto());
            newInformation = ReportUtil.createPhoto("CompanyLicense", image.height(), image.width(), photo.getWayToPhoto());
            ReportUtil.insertImage(photo.getWayToPhoto(), photo.getPhotoPlob().getBytes(1, (int) photo.getPhotoPlob().length()), template);
            resultInformation += newInformation;
        }
        ReportUtil.replaceAllLabel(template, "%first_company_license%", resultInformation);
        ReportUtil.replaceAllLabel(template, "%second_company_license%", resultInformation);
View Full Code Here

                    fileOutputStream.write(bufer);
                }
                inputStream.close();
                fileOutputStream.close();
                Image image = Image.getInstance(photo1.getWayToPhoto());
                newInformation = ReportUtil.createPhoto("DefectPhotoBookmark", image.height(), image.width(), photo1.getWayToPhoto());
                ReportUtil.insertImage(photo1.getWayToPhoto(), photo1.getPhotoPlob().getBytes(1, (int) photo1.getPhotoPlob().length()), template);

            }

View Full Code Here

                    fileOutputStream.write(bufer);
                }
                inputStream.close();
                fileOutputStream.close();
                Image image = Image.getInstance(photo2.getWayToPhoto());
                newInformation += ReportUtil.createPhoto("DefectPhotoBookmark", image.height(), image.width(), photo2.getWayToPhoto());
                ReportUtil.insertImage(photo2.getWayToPhoto(), photo2.getPhotoPlob().getBytes(1, (int) photo2.getPhotoPlob().length()), template);

            }

            newInformation += "\n<p class=3DMsoNormal align=3Dcenter style=3D'text-align:center'>" + "Фото " + String.valueOf(i + 1) + ". " + pipeLineElementDefect.getComment() + "</p>\n";
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.