[jira] [Commented] (OFBIZ-7034) Showing QRCodes in PDF
[ https://issues.apache.org/jira/browse/OFBIZ-7034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16319674#comment-16319674 ] Deepak Dixit commented on OFBIZ-7034: - Here is the reference link http://barcode4j.sourceforge.net/trunk/symbol-qr.html > Showing QRCodes in PDF > -- > > Key: OFBIZ-7034 > URL: https://issues.apache.org/jira/browse/OFBIZ-7034 > Project: OFBiz > Issue Type: Bug > Components: example >Affects Versions: Trunk, Release Branch 15.12 >Reporter: Murugeswari >Assignee: Shi Jinghai > Attachments: barcode4j-trunk-fop-ext-complete-zxing1.7-jdk6.jar, > barcode4j-trunk-zxing3.3.1-jdk8.jar > > > Hi Folks, > I have to generate a pdf which should have Barcode as well as QRCode so > I followed this one OFBIZ-4154. > In trunk version, I run with demo data and tried to create a PDF with > QRCode by using this link > https://localhost:8443/example/control/ExampleReportPdfBarcode?exampleId=EX01. > But it fails to render QRCode but BarCodes are rendered successfully. > In console I get following error. > {code} > [java] 2016-05-04 12:29:34,677 |http-nio-8080-exec-5 |ControlServlet >|T| [[[qrcode(Domain:http://localhost)] Request Done- > total:0.245,since last([qrcode(Domain:ht...):0.245]] > [java] 2016-05-04 12:29:34,686 |ttp-nio-8443-exec-17 |FOUserAgent >|E| Image not available. URI: > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20. > Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format > is not supported. No ImagePreloader found for > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20 > (See position 43:308) > [java] org.apache.xmlgraphics.image.loader.ImageException: The file > format is not supported. No ImagePreloader found for > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20 > [java] at > org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:181) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:128) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:123) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81) > [fop-2.0.jar:?] > [java] at org.apache.fop.fo.FObj.processNode(FObj.java:129) > [fop-2.0.jar:?] > [java] at > org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:291) > [fop-2.0.jar:?] > [java] at > org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:179) > [fop-2.0.jar:?] > {code} > Same thing tested with Release15.12 here also it fails to render QRCode and > same exception was caught . -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (OFBIZ-7034) Showing QRCodes in PDF
[ https://issues.apache.org/jira/browse/OFBIZ-7034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16309229#comment-16309229 ] Shi Jinghai commented on OFBIZ-7034: Hi Jacques, I gave up modifying barcode4j to implement the 2 functions, as org.krysalis.barcode4j.impl.qr.QRLogicImpl has to be changed completely. Anyway, I think this issue can be closed. Kind Regards, > Showing QRCodes in PDF > -- > > Key: OFBIZ-7034 > URL: https://issues.apache.org/jira/browse/OFBIZ-7034 > Project: OFBiz > Issue Type: Bug > Components: example >Affects Versions: Trunk, Release Branch 15.12 >Reporter: Murugeswari >Assignee: Shi Jinghai > Attachments: barcode4j-trunk-zxing3.3.1-jdk8.jar > > > Hi Folks, > I have to generate a pdf which should have Barcode as well as QRCode so > I followed this one OFBIZ-4154. > In trunk version, I run with demo data and tried to create a PDF with > QRCode by using this link > https://localhost:8443/example/control/ExampleReportPdfBarcode?exampleId=EX01. > But it fails to render QRCode but BarCodes are rendered successfully. > In console I get following error. > {code} > [java] 2016-05-04 12:29:34,677 |http-nio-8080-exec-5 |ControlServlet >|T| [[[qrcode(Domain:http://localhost)] Request Done- > total:0.245,since last([qrcode(Domain:ht...):0.245]] > [java] 2016-05-04 12:29:34,686 |ttp-nio-8443-exec-17 |FOUserAgent >|E| Image not available. URI: > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20. > Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format > is not supported. No ImagePreloader found for > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20 > (See position 43:308) > [java] org.apache.xmlgraphics.image.loader.ImageException: The file > format is not supported. No ImagePreloader found for > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20 > [java] at > org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:181) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:128) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:123) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81) > [fop-2.0.jar:?] > [java] at org.apache.fop.fo.FObj.processNode(FObj.java:129) > [fop-2.0.jar:?] > [java] at > org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:291) > [fop-2.0.jar:?] > [java] at > org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:179) > [fop-2.0.jar:?] > {code} > Same thing tested with Release15.12 here also it fails to render QRCode and > same exception was caught . -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (OFBIZ-7034) Showing QRCodes in PDF
[ https://issues.apache.org/jira/browse/OFBIZ-7034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16307782#comment-16307782 ] Jacques Le Roux commented on OFBIZ-7034: Thanks JInghai, I had no ideas about that > Showing QRCodes in PDF > -- > > Key: OFBIZ-7034 > URL: https://issues.apache.org/jira/browse/OFBIZ-7034 > Project: OFBiz > Issue Type: Bug > Components: example >Affects Versions: Trunk, Release Branch 15.12 >Reporter: Murugeswari >Assignee: Shi Jinghai > Attachments: barcode4j-trunk-zxing3.3.1-jdk8.jar > > > Hi Folks, > I have to generate a pdf which should have Barcode as well as QRCode so > I followed this one OFBIZ-4154. > In trunk version, I run with demo data and tried to create a PDF with > QRCode by using this link > https://localhost:8443/example/control/ExampleReportPdfBarcode?exampleId=EX01. > But it fails to render QRCode but BarCodes are rendered successfully. > In console I get following error. > {code} > [java] 2016-05-04 12:29:34,677 |http-nio-8080-exec-5 |ControlServlet >|T| [[[qrcode(Domain:http://localhost)] Request Done- > total:0.245,since last([qrcode(Domain:ht...):0.245]] > [java] 2016-05-04 12:29:34,686 |ttp-nio-8443-exec-17 |FOUserAgent >|E| Image not available. URI: > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20. > Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format > is not supported. No ImagePreloader found for > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20 > (See position 43:308) > [java] org.apache.xmlgraphics.image.loader.ImageException: The file > format is not supported. No ImagePreloader found for > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20 > [java] at > org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:181) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:128) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:123) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81) > [fop-2.0.jar:?] > [java] at org.apache.fop.fo.FObj.processNode(FObj.java:129) > [fop-2.0.jar:?] > [java] at > org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:291) > [fop-2.0.jar:?] > [java] at > org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:179) > [fop-2.0.jar:?] > {code} > Same thing tested with Release15.12 here also it fails to render QRCode and > same exception was caught . -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (OFBIZ-7034) Showing QRCodes in PDF
[ https://issues.apache.org/jira/browse/OFBIZ-7034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16307609#comment-16307609 ] Shi Jinghai commented on OFBIZ-7034: Hi Jacques, I want to add 2 functions currently in our QRCode implement to barcode4j: 1. an element to turn on/off verifying the image generated, i.e. {code:java} true {code} 2. embed a logo image at the center of QRCode {code:java} true {code} I'll try to complete this today. Kind Regards, > Showing QRCodes in PDF > -- > > Key: OFBIZ-7034 > URL: https://issues.apache.org/jira/browse/OFBIZ-7034 > Project: OFBiz > Issue Type: Bug > Components: example >Affects Versions: Trunk, Release Branch 15.12 >Reporter: Murugeswari >Assignee: Shi Jinghai > Attachments: barcode4j-trunk-zxing3.3.1-jdk8.jar > > > Hi Folks, > I have to generate a pdf which should have Barcode as well as QRCode so > I followed this one OFBIZ-4154. > In trunk version, I run with demo data and tried to create a PDF with > QRCode by using this link > https://localhost:8443/example/control/ExampleReportPdfBarcode?exampleId=EX01. > But it fails to render QRCode but BarCodes are rendered successfully. > In console I get following error. > {code} > [java] 2016-05-04 12:29:34,677 |http-nio-8080-exec-5 |ControlServlet >|T| [[[qrcode(Domain:http://localhost)] Request Done- > total:0.245,since last([qrcode(Domain:ht...):0.245]] > [java] 2016-05-04 12:29:34,686 |ttp-nio-8443-exec-17 |FOUserAgent >|E| Image not available. URI: > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20. > Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format > is not supported. No ImagePreloader found for > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20 > (See position 43:308) > [java] org.apache.xmlgraphics.image.loader.ImageException: The file > format is not supported. No ImagePreloader found for > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20 > [java] at > org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:181) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:128) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:123) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81) > [fop-2.0.jar:?] > [java] at org.apache.fop.fo.FObj.processNode(FObj.java:129) > [fop-2.0.jar:?] > [java] at > org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:291) > [fop-2.0.jar:?] > [java] at > org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:179) > [fop-2.0.jar:?] > {code} > Same thing tested with Release15.12 here also it fails to render QRCode and > same exception was caught . -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (OFBIZ-7034) Showing QRCodes in PDF
[ https://issues.apache.org/jira/browse/OFBIZ-7034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16306723#comment-16306723 ] Jacques Le Roux commented on OFBIZ-7034: What is the status here, should we not close? > Showing QRCodes in PDF > -- > > Key: OFBIZ-7034 > URL: https://issues.apache.org/jira/browse/OFBIZ-7034 > Project: OFBiz > Issue Type: Bug > Components: example >Affects Versions: Trunk, Release Branch 15.12 >Reporter: Murugeswari >Assignee: Shi Jinghai > Attachments: barcode4j-trunk-zxing3.3.1-jdk8.jar > > > Hi Folks, > I have to generate a pdf which should have Barcode as well as QRCode so > I followed this one OFBIZ-4154. > In trunk version, I run with demo data and tried to create a PDF with > QRCode by using this link > https://localhost:8443/example/control/ExampleReportPdfBarcode?exampleId=EX01. > But it fails to render QRCode but BarCodes are rendered successfully. > In console I get following error. > {code} > [java] 2016-05-04 12:29:34,677 |http-nio-8080-exec-5 |ControlServlet >|T| [[[qrcode(Domain:http://localhost)] Request Done- > total:0.245,since last([qrcode(Domain:ht...):0.245]] > [java] 2016-05-04 12:29:34,686 |ttp-nio-8443-exec-17 |FOUserAgent >|E| Image not available. URI: > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20. > Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format > is not supported. No ImagePreloader found for > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20 > (See position 43:308) > [java] org.apache.xmlgraphics.image.loader.ImageException: The file > format is not supported. No ImagePreloader found for > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20 > [java] at > org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:181) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:128) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:123) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81) > [fop-2.0.jar:?] > [java] at org.apache.fop.fo.FObj.processNode(FObj.java:129) > [fop-2.0.jar:?] > [java] at > org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:291) > [fop-2.0.jar:?] > [java] at > org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:179) > [fop-2.0.jar:?] > {code} > Same thing tested with Release15.12 here also it fails to render QRCode and > same exception was caught . -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (OFBIZ-7034) Showing QRCodes in PDF
[ https://issues.apache.org/jira/browse/OFBIZ-7034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16305229#comment-16305229 ] Shi Jinghai commented on OFBIZ-7034: Hi Murugeswari, You can resolve this issue by: # Download barcode4j-trunk-zxing3.3.1-jdk8.jar in this issue; # Copy it to ofbiz_home/plugins/example/lib/; # Start OFBiz; # Edit ofbiz_home/plugins/example/template/reports/BarCode.fo.ftl, change {code:java} <#setting url_escaping_charset='UTF-8'> {code} to {code:java} http://barcode4j.krysalis.org/ns; message="${example.exampleName!url!'Welcome To Apache OFBiz'}"> 1mm UTF-8 H 5mm {code} # Visit https://localhost:8443/example/control/ExampleReportPdfBarcode?exampleId=EX01 , the QRCode should be able to display correctly. Have fun :) Shi Jinghai > Showing QRCodes in PDF > -- > > Key: OFBIZ-7034 > URL: https://issues.apache.org/jira/browse/OFBIZ-7034 > Project: OFBiz > Issue Type: Bug > Components: example >Affects Versions: Trunk, Release Branch 15.12 >Reporter: Murugeswari >Assignee: Shi Jinghai > Attachments: barcode4j-trunk-zxing3.3.1-jdk8.jar > > > Hi Folks, > I have to generate a pdf which should have Barcode as well as QRCode so > I followed this one OFBIZ-4154. > In trunk version, I run with demo data and tried to create a PDF with > QRCode by using this link > https://localhost:8443/example/control/ExampleReportPdfBarcode?exampleId=EX01. > But it fails to render QRCode but BarCodes are rendered successfully. > In console I get following error. > {code} > [java] 2016-05-04 12:29:34,677 |http-nio-8080-exec-5 |ControlServlet >|T| [[[qrcode(Domain:http://localhost)] Request Done- > total:0.245,since last([qrcode(Domain:ht...):0.245]] > [java] 2016-05-04 12:29:34,686 |ttp-nio-8443-exec-17 |FOUserAgent >|E| Image not available. URI: > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20. > Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format > is not supported. No ImagePreloader found for > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20 > (See position 43:308) > [java] org.apache.xmlgraphics.image.loader.ImageException: The file > format is not supported. No ImagePreloader found for > /example/control/qrcode;jsessionid=62AC52C9641B9948F98F73CD0D53DF6B.jvm1?message=Example%201=bmp=UTF-8=true=20=20 > [java] at > org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:181) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:128) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:123) > ~[xmlgraphics-commons-2.0.1.jar:2.0.1] > [java] at > org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81) > [fop-2.0.jar:?] > [java] at org.apache.fop.fo.FObj.processNode(FObj.java:129) > [fop-2.0.jar:?] > [java] at > org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:291) > [fop-2.0.jar:?] > [java] at > org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:179) > [fop-2.0.jar:?] > {code} > Same thing tested with Release15.12 here also it fails to render QRCode and > same exception was caught . -- This message was sent by Atlassian JIRA (v6.4.14#64029)