Re: Barcode generation with FOP 1.1

2015-01-19 Thread MartinKl
And I've noticed that the *maven *barcode4j-fop-ext-complete-2.0.jar *is not
same* like the one from 
http://sourceforge.net/projects/barcode4j/files/barcode4j/Barcode4J%202.1/

 
and it is missing files. *Shouldnt that been corrected?* When I used jar
from the link location everything run smooth and without problem. 



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Barcode-generation-with-FOP-1-1-tp41617p41630.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: Barcode generation with FOP 1.1

2015-01-19 Thread MartinKl
Fop 1.1 has dependency on xgc 1.5 and  the barcode4j  has dependency on older
xgc. XGC 1.5 has changed and it is not compatibile anymore. So it is
necessary to add manually the old dependency for the barcode4j. 

Anyway thanks for help.



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Barcode-generation-with-FOP-1-1-tp41617p41629.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: Barcode generation with FOP 1.1

2015-01-19 Thread Luis Bernardo


xgc and fop are sibling projects, and fop depends on xgc too 
(xmlgraphics-commons). so it made sense to add that jar to the classpath.


On 1/19/15 3:18 PM, MartinKl wrote:

Thank you very much Luis. Apparently the barcode4j-xgc.jar is essential for
barcode generation. When I add it to classpath it worked.

Thank to all of you who participated and tried to help. Special thanks to
Luis Bernardo.

Luis: How did you know that the barcode4j-xgc.jar should be on the
classpath? I've searched on the internet quite long time and the jar is not
mentioned anywhere.




--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Barcode-generation-with-FOP-1-1-tp41617p41626.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: Barcode generation with FOP 1.1

2015-01-19 Thread MartinKl
And one more thing. When I compared barcode4j-ext-complete.jar from the link
Luis provided and the one from maven I've found some diffencies and missing
files. It looks like the maven artifact does not contain everything and it
might be the cause of malfunction.



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Barcode-generation-with-FOP-1-1-tp41617p41627.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: Barcode generation with FOP 1.1

2015-01-19 Thread MartinKl
Thank you very much Luis. Apparently the barcode4j-xgc.jar is essential for
barcode generation. When I add it to classpath it worked.  

Thank to all of you who participated and tried to help. Special thanks to
Luis Bernardo.

Luis: How did you know that the barcode4j-xgc.jar should be on the
classpath? I've searched on the internet quite long time and the jar is not
mentioned anywhere. 




--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Barcode-generation-with-FOP-1-1-tp41617p41626.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: Barcode generation with FOP 1.1

2015-01-19 Thread Luis Bernardo


I got the jars from http://sourceforge.net/projects/barcode4j/files/.

There is a fop-ext and a fop-ext-complete jar. I assume the latter 
includes the xgc jar, so if you use the former, as I did, I expect the 
xgc jar to be necessary (but I did not try to check if it is really 
necessary).


On 1/19/15 12:57 PM, MartinKl wrote:

Thanks for your response. I will try it from cmd but I´ve checked my eclipse
classpath and I can see all libs.

C:\APPS\SVN_WorkingCopy\apps\jdk1.7.0_67\bin\javaw.exe
-agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:52817
-Dfile.encoding=Cp1250 -classpath "C:\Users\jd42742\Desktop\barcode and
fop\target\classes;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\fop\1.1\fop-1.1.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\xmlgraphics-commons\1.5\xmlgraphics-commons-1.5.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-svg-dom\1.7\batik-svg-dom-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-anim\1.7\batik-anim-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-css\1.7\batik-css-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-dom\1.7\batik-dom-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-parser\1.7\batik-parser-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-util\1.7\batik-util-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\xml-apis\xml-apis\1.3.04\xml-apis-1.3.04.jar;C:\APPS\SVN_WorkingCopy\m2repo\xml-apis\xml-apis-ext\1.3.04\xml-apis-ext-1.3.04.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-bridge\1.7\batik-bridge-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-script\1.7\batik-script-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-js\1.7\batik-js-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-xml\1.7\batik-xml-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\xalan\xalan\2.6.0\xalan-2.6.0.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-awt-util\1.7\batik-awt-util-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-gvt\1.7\batik-gvt-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-transcoder\1.7\batik-transcoder-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-svggen\1.7\batik-svggen-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-extension\1.7\batik-extension-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-ext\1.7\batik-ext-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar;C:\APPS\SVN_WorkingCopy\m2repo\commons-io\commons-io\1.3.1\commons-io-1.3.1.jar;C:\APPS\SVN_WorkingCopy\m2repo\net\sf\barcode4j\barcode4j-fop-ext\2.0\*barcode4j-fop-ext-2.0.jar*;C:\APPS\SVN_WorkingCopy\m2repo\net\sf\barcode4j\barcode4j\2.1\*barcode4j-2.1.jar*;C:\APPS\SVN_WorkingCopy\m2repo\avalon-framework\avalon-framework-impl\4.2.0\avalon-framework-impl-4.2.0.jar;C:\APPS\SVN_WorkingCopy\m2repo\commons-cli\commons-cli\1.0\commons-cli-1.0.jar;C:\APPS\SVN_WorkingCopy\m2repo\commons-lang\commons-lang\1.0\commons-lang-1.0.jar;C:\APPS\SVN_WorkingCopy\m2repo\junit\junit\3.7\junit-3.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\ant\ant\1.7.1\ant-1.7.1.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\ant\ant-launcher\1.7.1\ant-launcher-1.7.1.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\avalon\framework\avalon-framework-impl\4.3.1\avalon-framework-impl-4.3.1.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\avalon\framework\avalon-framework-api\4.3.1\avalon-framework-api-4.3.1.jar"
org.referencefop.BarcodeTest

so my envinronment might be broken somehow.

btw. What is barcode4j-xgc.jar ?  I wasnt able to find it anywhere. What it
contains?

Thanks




--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Barcode-generation-with-FOP-1-1-tp41617p41623.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]





-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: Barcode generation with FOP 1.1

2015-01-19 Thread MartinKl
Thanks for your response. I will try it from cmd but I´ve checked my eclipse
classpath and I can see all libs.

C:\APPS\SVN_WorkingCopy\apps\jdk1.7.0_67\bin\javaw.exe
-agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:52817
-Dfile.encoding=Cp1250 -classpath "C:\Users\jd42742\Desktop\barcode and
fop\target\classes;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\fop\1.1\fop-1.1.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\xmlgraphics-commons\1.5\xmlgraphics-commons-1.5.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-svg-dom\1.7\batik-svg-dom-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-anim\1.7\batik-anim-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-css\1.7\batik-css-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-dom\1.7\batik-dom-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-parser\1.7\batik-parser-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-util\1.7\batik-util-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\xml-apis\xml-apis\1.3.04\xml-apis-1.3.04.jar;C:\APPS\SVN_WorkingCopy\m2repo\xml-apis\xml-apis-ext\1.3.04\xml-apis-ext-1.3.04.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-bridge\1.7\batik-bridge-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-script\1.7\batik-script-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-js\1.7\batik-js-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-xml\1.7\batik-xml-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\xalan\xalan\2.6.0\xalan-2.6.0.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-awt-util\1.7\batik-awt-util-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-gvt\1.7\batik-gvt-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-transcoder\1.7\batik-transcoder-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-svggen\1.7\batik-svggen-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-extension\1.7\batik-extension-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\xmlgraphics\batik-ext\1.7\batik-ext-1.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar;C:\APPS\SVN_WorkingCopy\m2repo\commons-io\commons-io\1.3.1\commons-io-1.3.1.jar;C:\APPS\SVN_WorkingCopy\m2repo\net\sf\barcode4j\barcode4j-fop-ext\2.0\*barcode4j-fop-ext-2.0.jar*;C:\APPS\SVN_WorkingCopy\m2repo\net\sf\barcode4j\barcode4j\2.1\*barcode4j-2.1.jar*;C:\APPS\SVN_WorkingCopy\m2repo\avalon-framework\avalon-framework-impl\4.2.0\avalon-framework-impl-4.2.0.jar;C:\APPS\SVN_WorkingCopy\m2repo\commons-cli\commons-cli\1.0\commons-cli-1.0.jar;C:\APPS\SVN_WorkingCopy\m2repo\commons-lang\commons-lang\1.0\commons-lang-1.0.jar;C:\APPS\SVN_WorkingCopy\m2repo\junit\junit\3.7\junit-3.7.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\ant\ant\1.7.1\ant-1.7.1.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\ant\ant-launcher\1.7.1\ant-launcher-1.7.1.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\avalon\framework\avalon-framework-impl\4.3.1\avalon-framework-impl-4.3.1.jar;C:\APPS\SVN_WorkingCopy\m2repo\org\apache\avalon\framework\avalon-framework-api\4.3.1\avalon-framework-api-4.3.1.jar"
org.referencefop.BarcodeTest

so my envinronment might be broken somehow.  

btw. What is barcode4j-xgc.jar ?  I wasnt able to find it anywhere. What it
contains? 

Thanks




--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Barcode-generation-with-FOP-1-1-tp41617p41623.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: Barcode generation with FOP 1.1

2015-01-19 Thread Pascal Sancho
Hi,

Bugzilla was replaced with Jira few years ago.
*all* issues had been transferred to the latter. The cited issue can
be monitored in Jira DB: follow [1].


[1] https://issues.apache.org/jira/browse/FOP-1842

2015-01-18 18:12 GMT+01:00 Luis Bernardo :
> I tested your example from the command line using fop-1.1 and the the jars
> barcode4j-fop-ext.jar, barcode4j-xgc.jar and barcode4j.jar and it worked. So
> the issue is probably with your environment setup.
>
> After you run you code, in the debug perspective, right click in the
> execution entry and select properties. You should see then the classpath
> used by eclipse.
>
>
>
> On 1/17/15 10:54 PM, MartinKl wrote:
>>
>> Thanks for reproducing the issue. I´ve checked the the link with same
>> issue
>> you provided. Issues is still in reopen state and noone probably touched
>> four 2+ years :/  I am still hoping to in fixing the issue or finding some
>> workaround.
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-fop.1065347.n5.nabble.com/Barcode-generation-with-FOP-1-1-tp41617p41619.html
>> Sent from the FOP - Users mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
>
> -
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>



-- 
pascal

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Re: Barcode generation with FOP 1.1

2015-01-18 Thread Luis Bernardo
I tested your example from the command line using fop-1.1 and the the 
jars barcode4j-fop-ext.jar, barcode4j-xgc.jar and barcode4j.jar and it 
worked. So the issue is probably with your environment setup.


After you run you code, in the debug perspective, right click in the 
execution entry and select properties. You should see then the classpath 
used by eclipse.



On 1/17/15 10:54 PM, MartinKl wrote:

Thanks for reproducing the issue. I´ve checked the the link with same issue
you provided. Issues is still in reopen state and noone probably touched
four 2+ years :/  I am still hoping to in fixing the issue or finding some
workaround.



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Barcode-generation-with-FOP-1-1-tp41617p41619.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



RE: Barcode generation with FOP 1.1

2015-01-17 Thread MartinKl
Thanks for reproducing the issue. I´ve checked the the link with same issue
you provided. Issues is still in reopen state and noone probably touched
four 2+ years :/  I am still hoping to in fixing the issue or finding some
workaround. 



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Barcode-generation-with-FOP-1-1-tp41617p41619.html
Sent from the FOP - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



RE: Barcode generation with FOP 1.1

2015-01-16 Thread A Gian
Hello Martin,by using the project you provided I was able to  reproduce the 
issue. It might be that you came across on a open issue 
https://issues.apache.org/bugzilla/show_bug.cgi?id=49827
Thanks,Thanasis

> Date: Thu, 15 Jan 2015 08:55:49 -0700
> From: [email protected]
> To: [email protected]
> Subject: Barcode generation with FOP 1.1
> 
> Hello,
> I am strugelling with barcode generation using barcode4j lib. Everything is
> fine with 0.95 but when I switch it to 1.1 I get error message (see below)
> and the pdf document is missing the barcode. Could someone help please? I've
> attached simple eclipse project where is my test. (import like Maven
> project). Thank you for help. 
> 
> Great Regards
> Martin
> 
> LINK to project: 
> https://dl.dropboxusercontent.com/u/41716864/barcode%20and%20fop.zip
>   
> 
> LOG:
> SEVERE: Image not available. URI: (instream-object). Reason:
> org.apache.xmlgraphics.image.loader.ImageException: The file format is not
> supported. No ImagePreloader found for null (No context info available)
> org.apache.xmlgraphics.image.loader.ImageException: The file format is not
> supported. No ImagePreloader found for null
>   at
> org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:180)
>   at
> org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingDocument(AbstractIFPainter.java:296)
>   at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:203)
>   at
> org.apache.fop.render.intermediate.IFRenderer.renderForeignObject(IFRenderer.java:1290)
>   at
> org.apache.fop.render.AbstractRenderer.renderInlineViewport(AbstractRenderer.java:820)
>   at
> org.apache.fop.render.AbstractPathOrientedRenderer.renderInlineViewport(AbstractPathOrientedRenderer.java:785)
>   at
> org.apache.fop.render.intermediate.IFRenderer.renderInlineViewport(IFRenderer.java:866)
>   at
> org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:678)
>   at
> org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:913)
>   at
> org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:643)
>   at
> org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:561)
>   at
> org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:598)
>   at
> org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980)
>   at
> org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546)
>   at
> org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:451)
>   at
> org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:738)
>   at
> org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:428)
>   at
> org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:352)
>   at
> org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:299)
>   at
> org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:748)
>   at
> org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:273)
>   at
> org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:238)
>   at
> org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:597)
>   at 
> org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)
>   at
> org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:312)
>   at
> org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:191)
>   at
> org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:115)
>   at
> org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
>   at
> org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:128)
>   at
> org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:347)
>   at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181)
>   at
> org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:262)
>   at
> org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:707)
>   at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2336)
>   at
> org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:682)
>   at
> org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
>   at
> org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:177)
>   at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2336)