Jump to content
  • Problem including images, missing iText method scaledWidth()


    rafff
    Assigned User teodord
    CategoryBug report
    PriorityImmediate
    ReproducibilityAlways
    ResolutionFixed
    SeverityBlock
    StatusClosed

    JRPdfExporter in method exportImage() calls

    iText method scaledWidth(), which has been renamed in getScaledWidth() in iText 2.1.0

     

    JasperReport 3.0 requires a iText 1.3.1 **or later**

     



    User Feedback

    Recommended Comments

    Caused by: java.lang.NoSuchMethodError: com.lowagie.text.Image.scaledWidth()F

    at net.sf.jasperreports.engine.export.JRPdfExporter.exportImage(JRPdfExporter.java:1063)

    at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:586)

    at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:554)

    at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:519)

    at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:306)

    at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:126)

    Link to comment
    Share on other sites

    Same problem on other iText methods:

     

    font.leading(float) -> font.getCalculatedLeading(float)

    font.family() -> font.getFamily()

    image.plainWidth() -> image.getPlainWidth()

    image.plainHeight() -> image.getPlainHeight()

     

    Link to comment
    Share on other sites


×
×
  • Create New...