css2xslfo-support Mailing List for CSSToXSLFO (Page 4)
Brought to you by:
wdonne
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
(9) |
Apr
(6) |
May
(24) |
Jun
(14) |
Jul
|
Aug
(4) |
Sep
|
Oct
(1) |
Nov
|
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
|
Feb
(4) |
Mar
(17) |
Apr
(8) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(5) |
Dec
(2) |
2007 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(11) |
Jul
(2) |
Aug
(6) |
Sep
|
Oct
(1) |
Nov
(7) |
Dec
(5) |
2008 |
Jan
(2) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
(12) |
Jul
(2) |
Aug
(4) |
Sep
(5) |
Oct
(21) |
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(8) |
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(16) |
Oct
|
Nov
|
Dec
|
From: <wer...@re...> - 2008-01-04 15:34:47
|
Hi Erik, Floating is not yet supported in FOP. I have also tried it with another XSL-FO processor and then it works fine. Best regards, Werner. Erik Terpstra wrote: > Hi, > > Accoding to the css2xslfo docs the CSS2 float propery is implemented. > But somehow I just can't get working. > > If you render this [1]: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <style type="text/css"> > /*<![CDATA[*/ > img { > float:right > } > /*]]>*/ > </style> > </head> > <body> > <p>In the paragraph below, we have added an image with style <b>float:right</b>. The result is that the image will float to the right in the paragraph.</p> > <p><img src="logocss.gif" width="95" height="84" /> This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.</p> > </body> > </html> > > It does not show the image at all (you can download the image here: http://www.w3schools.com/css/logocss.gif ). > But when you remove the 'float: right' propery the image appears again. > How can I get the image to float to the right? > > I am using: java -jar fop-0.94/lib/css2fopnew1_5_2.jar > > Thanks in advance, > > Erik. > > [1] http://www.w3schools.com/css/tryit.asp?filename=trycss_float > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support > -- Werner Donné -- Re http://www.pincette.biz Engelbeekstraat 8 http://www.re.be BE-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |
From: Erik T. <er...@so...> - 2008-01-04 14:39:24
|
Hi, Accoding to the css2xslfo docs the CSS2 float propery is implemented. But somehow I just can't get working. If you render this [1]: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="text/css"> /*<![CDATA[*/ img { float:right } /*]]>*/ </style> </head> <body> <p>In the paragraph below, we have added an image with style <b>float:right</b>. The result is that the image will float to the right in the paragraph.</p> <p><img src="logocss.gif" width="95" height="84" /> This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.</p> </body> </html> It does not show the image at all (you can download the image here: http://www.w3schools.com/css/logocss.gif ). But when you remove the 'float: right' propery the image appears again. How can I get the image to float to the right? I am using: java -jar fop-0.94/lib/css2fopnew1_5_2.jar Thanks in advance, Erik. [1] http://www.w3schools.com/css/tryit.asp?filename=trycss_float |
From: <wer...@re...> - 2007-12-13 13:23:13
|
Hi Erik, You can add an @page rule to your style sheet: @page { size: 345.827pt 425.197pt; } Best regards, Werner. Erik Terpstra wrote: > Hi, > > The page size of my PDF needs to be 345.827 x 425.197 pts. > How can I use this size with css2xslfo? > > I am using: java -jar fop-0.94/lib/css2fopnew1_5_2.jar > > Thanks in advance, > > Erik. > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support > -- Werner Donné -- Re http://www.pincette.biz Engelbeekstraat 8 http://www.re.be BE-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |
From: Erik T. <er...@so...> - 2007-12-13 13:20:07
|
Hi, The page size of my PDF needs to be 345.827 x 425.197 pts. How can I use this size with css2xslfo? I am using: java -jar fop-0.94/lib/css2fopnew1_5_2.jar Thanks in advance, Erik. |
From: Peter W. <bro...@ci...> - 2007-12-10 16:51:43
|
Hi Werner, This seems to be just what I need... thanks! Not sure how I missed it in scouring the manual already, but I appreciate the prompt help. Best, Peter On Mon, 10 Dec 2007, [ISO-8859-1] Werner Donn=E9 wrote: > Hi Peter, > > There is an extension in CSSToXSLFO that lets you pass an > element unmodified to the XSL-FO document. The extension > is the display type value "foreign". See also section 4.19 > in the manual. > > Best regards, > > Werner. > > Peter Williams wrote: > > Hi all, > > I've just started working with CSS2XSLFO. And I'm wondering... has any= one > > here worked with this and MathML before? Has anyone perhaps combined i= t > > with JEuclid? > > > > Right now when I send an XHTML file with MathML sections through > > CSS2XSFLO, all of the MathML is converted into FO language, which means= it > > doesn't get handled and displayed properly in the final PDF. > > > > Is there, perhaps, a way to tell CSS2XSLFO to skip certain DIV tags? > > > > Any working solutions to this would be most welcome. > > > > Best, > > Peter |
From: <wer...@re...> - 2007-12-10 16:03:38
|
Hi Peter, There is an extension in CSSToXSLFO that lets you pass an element unmodified to the XSL-FO document. The extension is the display type value "foreign". See also section 4.19 in the manual. Best regards, Werner. Peter Williams wrote: > Hi all, > I've just started working with CSS2XSLFO. And I'm wondering... has anyone > here worked with this and MathML before? Has anyone perhaps combined it > with JEuclid? > > Right now when I send an XHTML file with MathML sections through > CSS2XSFLO, all of the MathML is converted into FO language, which means it > doesn't get handled and displayed properly in the final PDF. > > Is there, perhaps, a way to tell CSS2XSLFO to skip certain DIV tags? > > Any working solutions to this would be most welcome. > > Best, > Peter > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support > -- Werner Donné -- Re http://www.pincette.biz Engelbeekstraat 8 http://www.re.be BE-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |
From: Peter W. <bro...@ci...> - 2007-12-10 15:22:24
|
Hi all, I've just started working with CSS2XSLFO. And I'm wondering... has anyone here worked with this and MathML before? Has anyone perhaps combined it with JEuclid? Right now when I send an XHTML file with MathML sections through CSS2XSFLO, all of the MathML is converted into FO language, which means it doesn't get handled and displayed properly in the final PDF. Is there, perhaps, a way to tell CSS2XSLFO to skip certain DIV tags? Any working solutions to this would be most welcome. Best, Peter |
From: <wer...@re...> - 2007-11-22 08:11:10
|
Hi Ben, There are two problems. First, the document is wrong in that XHTML doesn't allow text directly in the element "body". You should wrap it in a block-level element such as "p" or "div". Second, the problem with FOP is that you have to copy the fop.jar file, which is in <FOP>/build/, to <FOP>/lib/. The manifest file in fop.jar expects to find the libraries as siblings in the same directory. Let me know if you make progress. Best regards, Werner. Ben Margolin wrote: > Hi! > I am exceptionally interested in css2xslfo, but am pretty bummed that I > haven't had any luck so far with getting it to output anything. I'm > beginning to wonder if it's my JDK causing the issue, since none of the > docs reference 1.5. Any assistance with getting me up and running would > be greatly appreciated. Here's where I stand: > > - java version "1.5.0_06" / Java(TM) 2 Runtime Environment, Standard > Edition (build 1.5.0_06-b05 ) / Java HotSpot(TM) Server VM (build > 1.5.0_06-b05, mixed mode), on ubuntu linux. My $CLASSPATH is unset. > > - input document (tried various but, this should work, I believe:), as > testdoc.xhtml: > <html xmlns=" http://www.w3.org/1999/xhtml"> > <head> > <meta http-equiv="Content-Type" content="text/html; <title> > XSL Transformations (XSLT) > </title> > </head> > <body> > testing > </body> > </html> > > - apache fop installed in ./fop-0.93 (also ./fop-0.94, tried both) > - (also, I copied css2fopnew1_5_1.jar into ./fop-XXX/lib/ ...) > > - sample command line tried (finally, from within the fop-XXX/lib/ dir): > > % java -Dbe.re.stack -jar css2fopnew1_5_1.jar ../../testdoc.xhtml -pdf > out.pdf > org/apache/fop/apps/FopFactory > java.lang.NoClassDefFoundError : org/apache/fop/apps/FopFactory > at be.re.css.CSSToFOPNew.convert(CSSToFOPNew.java:132) > at be.re.css.CSSToFOPNew.main(CSSToFOPNew.java:315) > > Uhm, OK. Not sure what to do now. Have tried it from 0.94, same problem. > > - Trying it with fop (not fopnew): > > % java -Dbe.re.stack -jar css2fop1_5_1.jar ../../testdoc.xhtml -pdf out.pdf > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/avalon/framework/logger/NullLogger > > OK, that's different but also not very useful. > > - Then, giving up on Apache FOP for the moment, just want to try getting > SOMEthing created... so downloaded a trial of XEP, installed it in > ~/XEP, copied css2xep1_5_1.jar into XEP's lib dir and ran: > > % java -Dbe.re.stack -Dcom.renderx.xep.CONFIG=../xep.xml -jar > css2xep1_5_1.jar testdoc.xhtml -pdf test.pdf > > which didn't give any errors, but did produce a 0-byte pdf. > > UPDATE: I did get Xep to spit out some valid PDFs, using different > documents. I still don't know why the document above is invalid. And now > I'm getting weirdness like that isn't a recognized entity. I'm > sure it's not in vanilla XML but I would assume this is OK in this > workflow. Stripping those out at least got me a reasonable-looking > document, but this is still SO picky (and I really want to make it work > with FOP, anyhow). > > Suggestions? I plan to process random HTML from users, after passing it > through tidy. "Reasonably" well formed documents should not cause it to > crash, or at least, that's my intention...! > > Anyone have ideas on how to fix the FOP issue? Or the entity > recognition? > > Thanks, > Ben > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support -- Werner Donné -- Re http://www.pincette.biz Engelbeekstraat 8 http://www.re.be BE-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |
From: Ben M. <bma...@gm...> - 2007-11-22 01:15:05
|
Hi! I am exceptionally interested in css2xslfo, but am pretty bummed that I haven't had any luck so far with getting it to output anything. I'm beginning to wonder if it's my JDK causing the issue, since none of the docs reference 1.5. Any assistance with getting me up and running would be greatly appreciated. Here's where I stand: - java version "1.5.0_06" / Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) / Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode), on ubuntu linux. My $CLASSPATH is unset. - input document (tried various but, this should work, I believe:), as testdoc.xhtml: <html xmlns=" http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <title> XSL Transformations (XSLT) </title> </head> <body> testing </body> </html> - apache fop installed in ./fop-0.93 (also ./fop-0.94, tried both) - (also, I copied css2fopnew1_5_1.jar into ./fop-XXX/lib/ ...) - sample command line tried (finally, from within the fop-XXX/lib/ dir): % java -Dbe.re.stack -jar css2fopnew1_5_1.jar ../../testdoc.xhtml -pdf out.pdf org/apache/fop/apps/FopFactory java.lang.NoClassDefFoundError : org/apache/fop/apps/FopFactory at be.re.css.CSSToFOPNew.convert(CSSToFOPNew.java:132) at be.re.css.CSSToFOPNew.main(CSSToFOPNew.java:315) Uhm, OK. Not sure what to do now. Have tried it from 0.94, same problem. - Trying it with fop (not fopnew): % java -Dbe.re.stack -jar css2fop1_5_1.jar ../../testdoc.xhtml -pdf out.pdf Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/avalon/framework/logger/NullLogger OK, that's different but also not very useful. - Then, giving up on Apache FOP for the moment, just want to try getting SOMEthing created... so downloaded a trial of XEP, installed it in ~/XEP, copied css2xep1_5_1.jar into XEP's lib dir and ran: % java -Dbe.re.stack -Dcom.renderx.xep.CONFIG=../xep.xml -jar css2xep1_5_1.jar testdoc.xhtml -pdf test.pdf which didn't give any errors, but did produce a 0-byte pdf. UPDATE: I did get Xep to spit out some valid PDFs, using different documents. I still don't know why the document above is invalid. And now I'm getting weirdness like that isn't a recognized entity. I'm sure it's not in vanilla XML but I would assume this is OK in this workflow. Stripping those out at least got me a reasonable-looking document, but this is still SO picky (and I really want to make it work with FOP, anyhow). Suggestions? I plan to process random HTML from users, after passing it through tidy. "Reasonably" well formed documents should not cause it to crash, or at least, that's my intention...! Anyone have ideas on how to fix the FOP issue? Or the entity recognition? Thanks, Ben |
From: <wer...@re...> - 2007-11-05 08:10:52
|
Hi Hoang-Vu, You can specify a catalog on the command-line with the "-c" option. In the catalog you can write the following: PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "xhtml1/xhtml1-strict.dtd" SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" "xhtml1/xhtml1-strict.dtd" PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1/xhtml1-transitional.dtd" SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" "xhtml1/xhtml1-transitional.dtd" PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "xhtml1/xhtml1-frameset.dtd" SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd" "xhtml1/xhtml1-frameset.dtd" The relative URLs are relative to the catalog URL. So, if you have a directory dtd in which you have dtd/catalog en the directory dtd/xhtml1, you can write: java -jar css2fopnew.jar -c dtd/catalog ... Best regards, Werner. Hoang-Vu PHUNG wrote: > Hi Werner, > > Thanks for your response. I have another question regarding how to prevent from loading external DTD > automatically: Because if i have a xhtml document with the following DOCTYPE > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict //EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd>, it will try to connect to the server www.w3.org. > > Thanks again, > Rgds > Hoang-Vu > > ----- Message d'origine ---- > De : Werner Donné <wer...@re...> > À : Hoang-Vu PHUNG <hvu...@ya...> > Cc : css...@li... > Envoyé le : Jeudi, 1 Novembre 2007, 23h19mn 19s > Objet : Re: [css2xslfo-support] newbies convert xhtml to xslfo > > Hi Hoang-Vu, > > You should declare the XHTML namespace on the html > element. It is "http://www.w3.org/1999/xhtml". > > Best regards, > > Werner. > > > _____________________________________________________________________________ > Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support > -- Werner Donné -- Re http://www.pincette.biz Engelbeekstraat 8 http://www.re.be BE-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |
From: Hoang-Vu P. <hvu...@ya...> - 2007-11-02 09:49:27
|
Hi Werner,=0A=0AThanks for your response. I have another question regarding= how to prevent from loading external DTD=0Aautomatically: Because if i hav= e a xhtml document with the following DOCTYPE=0A<!DOCTYPE html PUBLIC "-//W= 3C//DTD XHTML 1.0 Strict //EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-stric= t.dtd>, it will try to connect to the server www.w3.org.=0A=0AThanks again,= =0ARgds=0AHoang-Vu=0A=0A----- Message d'origine ----=0ADe : Werner Donn=E9 = <wer...@re...>=0A=C0 : Hoang-Vu PHUNG <hvu...@ya...>=0ACc : css= 2xs...@li...=0AEnvoy=E9 le : Jeudi, 1 Novembre 2007= , 23h19mn 19s=0AObjet : Re: [css2xslfo-support] newbies convert xhtml to xs= lfo=0A=0AHi Hoang-Vu,=0A=0AYou should declare the XHTML namespace on the ht= ml=0Aelement. It is "http://www.w3.org/1999/xhtml".=0A=0ABest regards,=0A= =0AWerner.=0A=0A=0A __________________________________________________= ___________________________ =0ANe gardez plus qu'une seule adresse mail ! C= opiez vos mails vers Yahoo! Mail |
From: <wer...@re...> - 2007-11-01 22:21:35
|
Hi Hoang-Vu, You should declare the XHTML namespace on the html element. It is "http://www.w3.org/1999/xhtml". Best regards, Werner. Hoang-Vu PHUNG wrote: > Hi all, > > I'm evaluating the solution css2xslfo. I wrote one very simple test but it produced only empty file. Any idea ? > The snip code is : > File infile = new File("input.xhtml"); > File outfile = new File("output.fo"); > FileInputStream instream = new FileInputStream (infile); > FileOutputStream outstream = new FileOutputStream (outfile); > CSSToXSLFO.convert(instream, outstream); > > where input.xhtml is something like: > <?xml version="1.0"?> > <html> > <head> > <title> > </title> > </head> > <body> > <table> > <tr> > <th>A</th> > <th>B</th> > </tr> > <tr> > <td>c1</td> > <td>c2</td> > </tr> > </table> > </body> > </html> > > Thanks for your help ! > Hoang-Vu > > > > > > _____________________________________________________________________________ > Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support > -- Werner Donné -- Re http://www.pincette.biz Engelbeekstraat 8 http://www.re.be BE-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |
From: Hoang-Vu P. <hvu...@ya...> - 2007-11-01 22:00:56
|
Hi all,=0A=0AI'm evaluating the solution css2xslfo. I wrote one very simple= test but it produced only empty file. Any idea ?=0AThe snip code is :=0A = File infile =3D new File("input.xhtml");=0A File outfile =3D n= ew File("output.fo");=0A FileInputStream instream =3D new FileInputS= tream (infile);=0A FileOutputStream outstream =3D new FileOutputStre= am (outfile);=0A CSSToXSLFO.convert(instream, outstream);=0A=0Awhere= input.xhtml is something like:=0A<?xml version=3D"1.0"?>=0A<html>=0A <hea= d>=0A <title>=0A </title>=0A </head>=0A <body>=0A <table>=0A = <tr>=0A <th>A</th>=0A <th>B</th>=0A </tr>=0A <tr>= =0A <td>c1</td>=0A <td>c2</td>=0A </tr>=0A </table>= =0A </body>=0A</html>=0A=0AThanks for your help !=0AHoang-Vu=0A=0A=0A=0A= =0A=0A _______________________________________________________________= ______________ =0ANe gardez plus qu'une seule adresse mail ! Copiez vos mai= ls vers Yahoo! Mail |
From: Hoang-Vu P. <hvu...@ya...> - 2007-11-01 16:25:45
|
=0A=0A=0A ____________________________________________________________= _________________ =0ANe gardez plus qu'une seule adresse mail ! Copiez vos = mails vers Yahoo! Mail |
From: Brad C. <bk...@mu...> - 2007-10-31 14:48:08
|
Hi, I am using CSSToFOPNew I need to convert html documents downloaded from a web server to PDF. It would be nice if I could pass userid and password, and specify basicauth when using CSSToFOPNew to download from a URL. But because that doesn't work, I currently use curl to grab the html document and feed it to CSSToFOPNew as stdin. That's been working well. But now I have an html document that includes some IMG tags, and those image downloads also require authentication. So I've had to switch to using wget in recursive mode, something like: wget -k -p --http-user=something --http-passwd=pass 'http://some.company.com/Customer/data/rating_py/load_quote?stylesheet=waybill.xsl"e_number=QCCR089421&orgid=ccr' -P /tmp/test -nH -nd -E That gets me a directory listing like: -rw-r--r-- 1 bkc bkc 15897 2007-10-31 10:39 945677310.gif -rw-r--r-- 1 bkc bkc 10024 2007-10-31 10:39 load_quote?stylesheet=waybill.xsl"e_number=QCCR089421&orgid=ccr.1.html So far so good, but now if I pass this file name to CSSToFOPNew, like css2fop /tmp/test/load_quote\?stylesheet=waybill.xsl\"e_number=QCCR089421\&orgid=ccr.1.html -pdf /tmp/y.pdf Then CSSToFOPNew actually reads from stdin, not from the file. I'm using the css2fop shell script, and it looks like $fop_exec_args isn't escaping the ? or & in the filename argument. I'm don't know enough about bash to say if that's the problem, but sh -xv shows this: + exec /usr/bin/java -classpath <classpath> be.re.css.CSSToFOPNew /tmp/test/load_quote?stylesheet=waybill.xsl"e_number=QCCR089421&orgid=ccr.1.html -pdf /tmp/y.pdf (I've replaced the real classpath with <classpath>) Is it obvious to anyone why CSSToFOPNew reads from stdin given the above command arguments? And how difficult would it be to add http authentication functionality to CSSToFOPNew? -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM: BKClements |
From: Brad C. <bk...@mu...> - 2007-08-22 17:46:22
|
Werner Donné wrote: > Hi Brad, > > This is a bug. I have created bug entry 1778499 for it. > It will be fixed today in release 1.5. > Thanks, it seems to be fixed with 1.5 -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM: BKClements |
From: <wer...@re...> - 2007-08-21 11:35:36
|
Hi Brad, This is a bug. I have created bug entry 1778499 for it. It will be fixed today in release 1.5. Best regards, Werner. Brad Clements wrote: > I'm running css2fopnew1_4_2.jar with the p7 patch. > > When I run it like this, sending .html to stdin:: > > cat my.htm | java -jar /opt/fop/lib/css2fopnew1_4_2_patched.jar -fc > $CSSDIR/bar.conf.xml -pdf $2 > > The output PDF does not have the barcode font where it should be. I see > this output: > > Aug 20, 2007 9:58:16 PM org.apache.fop.fonts.FontInfo notifyFontReplacement > WARNING: Font 'barcode,normal,400' not found. Substituting with > 'any,normal,400' > > But if I run the code like this, it works: > > > cat my.html | java -jar /opt/fop/lib/css2xslfo1_4_2.jar -fo /dev/stdout > | /opt/fop/fop -fo /dev/stdin -c $CSSDIR/bar.conf.xml -pdf $2 > > Do I mis-understand the -fc option maybe? > > -- Werner Donné -- Re Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |
From: Brad C. <bk...@mu...> - 2007-08-21 02:01:26
|
I'm running css2fopnew1_4_2.jar with the p7 patch. When I run it like this, sending .html to stdin:: cat my.htm | java -jar /opt/fop/lib/css2fopnew1_4_2_patched.jar -fc $CSSDIR/bar.conf.xml -pdf $2 The output PDF does not have the barcode font where it should be. I see this output: Aug 20, 2007 9:58:16 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'barcode,normal,400' not found. Substituting with 'any,normal,400' But if I run the code like this, it works: cat my.html | java -jar /opt/fop/lib/css2xslfo1_4_2.jar -fo /dev/stdout | /opt/fop/fop -fo /dev/stdin -c $CSSDIR/bar.conf.xml -pdf $2 Do I mis-understand the -fc option maybe? -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM: BKClements |
From: Renaud M. <ren...@de...> - 2007-08-06 07:52:52
|
Le dimanche 05 ao=FBt 2007, Werner Donn=E9 a =E9crit : > This is a bug. I have created bug entry 1767912 and patch > 1767914 for this. From what I see I can't have tested > example 5 in the manual at the time, for which I apologise. With that patch Example5 does work now. Thank you =2D-=20 Renaud MICHEL defimedia S.A. =2D----------------------------------------------------------------------- Parc Crealys Rue Phocas Lejeune, 32 B-5032 GEMBLOUX http://www.defimedia.be/ T=E9l: +32 (0)81 72 01 06 =2D----------------------------------------------------------------------- Le groupe defimedia: Definition - IMmedia - Visiocom / AToms - Deficall |
From: <wer...@re...> - 2007-08-05 13:50:22
|
Hi Renaud, This is a bug. I have created bug entry 1767912 and patch 1767914 for this. From what I see I can't have tested example 5 in the manual at the time, for which I apologise. Best regards, Werner. Renaud MICHEL wrote: > Hello > > I'm trying to integrate css2xslfo in our product and to do so I absolutelly > need to have a ContentHandler to receive SAX events generated by our > system. > So I tried using Example5 from the documentation but it doesn't seem to do > anything usefull. > > The following simple test (based on Example5) just output verbatim my > generated events to the file out.fo > > What am I missing, does anything else need to be set up tu use the filter as > a simple ContentHandler? > > Thank you for your help > > public class Example5 { > > public static void main(String[] args) throws Exception { > be.re.css.CSSToXSLFOFilter filter=new be.re.css.CSSToXSLFOFilter(); > > javax.xml.transform.sax.TransformerHandler > handler=((javax.xml.transform.sax.SAXTransformerFactory)javax.xml.transform.TransformerFactory.newInstance()).newTransformerHandler(); > > handler.setResult(new javax.xml.transform.stream.StreamResult(new > java.io.File("out.fo"))); > > filter.setContentHandler(handler); > generateReport(filter); > } > > private static void generateReport(org.xml.sax.ContentHandler handler) > throws SAXException { > handler.startDocument(); > handler.startElement("http://www.w3.org/1999/xhtml","html","html",null); > handler.startElement("http://www.w3.org/1999/xhtml","head","head",null); > handler.startElement("http://www.w3.org/1999/xhtml","title","title",null); > handler.endElement("http://www.w3.org/1999/xhtml","title","title"); > handler.endElement("http://www.w3.org/1999/xhtml","head","head"); > handler.startElement("http://www.w3.org/1999/xhtml","body","body",null); > handler.startElement("http://www.w3.org/1999/xhtml","p","p",null); > handler.characters("test".toCharArray(),0,4); > handler.endElement("http://www.w3.org/1999/xhtml","p","p"); > handler.endElement("http://www.w3.org/1999/xhtml","body","body"); > handler.endElement("http://www.w3.org/1999/xhtml","html","html"); > handler.endDocument(); > } > } > > -- Werner Donné -- Re Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |
From: Renaud M. <ren...@de...> - 2007-08-02 10:30:12
|
Hello I'm trying to integrate css2xslfo in our product and to do so I absolutelly need to have a ContentHandler to receive SAX events generated by our system. So I tried using Example5 from the documentation but it doesn't seem to do anything usefull. The following simple test (based on Example5) just output verbatim my generated events to the file out.fo What am I missing, does anything else need to be set up tu use the filter as a simple ContentHandler? Thank you for your help public class Example5 { public static void main(String[] args) throws Exception { be.re.css.CSSToXSLFOFilter filter=new be.re.css.CSSToXSLFOFilter(); javax.xml.transform.sax.TransformerHandler handler=((javax.xml.transform.sax.SAXTransformerFactory)javax.xml.transform.TransformerFactory.newInstance()).newTransformerHandler(); handler.setResult(new javax.xml.transform.stream.StreamResult(new java.io.File("out.fo"))); filter.setContentHandler(handler); generateReport(filter); } private static void generateReport(org.xml.sax.ContentHandler handler) throws SAXException { handler.startDocument(); handler.startElement("http://www.w3.org/1999/xhtml","html","html",null); handler.startElement("http://www.w3.org/1999/xhtml","head","head",null); handler.startElement("http://www.w3.org/1999/xhtml","title","title",null); handler.endElement("http://www.w3.org/1999/xhtml","title","title"); handler.endElement("http://www.w3.org/1999/xhtml","head","head"); handler.startElement("http://www.w3.org/1999/xhtml","body","body",null); handler.startElement("http://www.w3.org/1999/xhtml","p","p",null); handler.characters("test".toCharArray(),0,4); handler.endElement("http://www.w3.org/1999/xhtml","p","p"); handler.endElement("http://www.w3.org/1999/xhtml","body","body"); handler.endElement("http://www.w3.org/1999/xhtml","html","html"); handler.endDocument(); } } -- Renaud MICHEL defimedia S.A. |
From: <wer...@re...> - 2007-07-08 21:52:42
|
Hi Andreas, The solution should be to set content-width to "scale-to-fit" and the width property to "100%". This seems to work only with Antenna House, however. I tried it also with XEP and Xinc, but there the height is reduced to almost one line. The image doesn't fit in it. I'll have to ask around why the behaviour is different. Best regards, Werner. Andreas Jung wrote: > I am currently experimenting with generating PDFs with some fixed layout > containing images where different variations of the PDF might contain > the images in different resolutions (either for viewing or a printing > workflow). > > Assume I have the something like that: > > <table> > <tr> > <td width="40%"> > <img src="img1.png" /> > </td> > <td width="40%"> > <img src="img2.png" /> > </td> > </tr> > </table> > > Assume img1.png is available in a small resolution of 300x200px and a > large one of 2000x1500px. > > In both cases the image should be scaled to 40% of the page width. > I can of course specify > > img { > content-width: 40%; > } > > or something similar but I would like to avoid that an let XSLFO scale > the image based on the dimensions of the surrounding table. Is this > possible? > > Andreas > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support -- Werner Donné -- Re Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |
From: Andreas J. <li...@zo...> - 2007-07-06 16:50:03
|
I am currently experimenting with generating PDFs with some fixed layout containing images where different variations of the PDF might contain the images in different resolutions (either for viewing or a printing workflow). Assume I have the something like that: <table> <tr> <td width=3D"40%"> <img src=3D"img1.png" /> </td> <td width=3D"40%"> <img src=3D"img2.png" /> </td> </tr> </table> Assume img1.png is available in a small resolution of 300x200px and a large = one of 2000x1500px. In both cases the image should be scaled to 40% of the page width. I can of course specify img { content-width: 40%; } or something similar but I would like to avoid that an let XSLFO scale the image based on the dimensions of the surrounding table. Is this possible? Andreas |
From: Andreas J. <li...@zo...> - 2007-06-30 07:00:14
|
--On 29. Juni 2007 19:37:21 +0200 Werner Donn=C3=A9 <wer...@re...> = wrote: > Hi Andreas, > > Making the filtering optional would render the tool non-compliant > again. However, I can introduce a post-processing filter for Xinc > like there is one for the old FOP already. In there, the conversion > could be made. This conversion should then also be added to the > old FOP post-processor, because it doesn't implement the property > either. This is consistent with the fact that Xinc is based on the > old FOP. > Since I have a separation between the html->fo and fo->something conversion I added yet another replacement to my FO fixing code. No need for further changes on your side. Thanks, Andreas |
From: <wer...@re...> - 2007-06-29 17:38:00
|
Hi Andreas, Making the filtering optional would render the tool non-compliant again. However, I can introduce a post-processing filter for Xinc like there is one for the old FOP already. In there, the conversion could be made. This conversion should then also be added to the old FOP post-processor, because it doesn't implement the property either. This is consistent with the fact that Xinc is based on the old FOP. Regards, Werner. Andreas Jung wrote: > Thanks for the reply Werner. This explains it. However some FO converters > like XINC don't implement page-break-after but only break-after. Any > chance to make this filtering optional? Not a big deal since I have already > a XSLFO post-processing step where I could converter page-break-after back > into break-after. > > Andreas > > --On 29. Juni 2007 16:51:36 +0200 Werner Donné <wer...@re...> wrote: > >> Hi Andreas, >> >> This is a feature. Since version 1.4.1 there is a filter in CSSToXSLFO >> which discards invalid CSS properties. The CSS specification prescribes >> that such properties should be ignored. Before, they all ended up in >> the generated XSL-FO document. The break-after property is valid in >> XSL-FO, but not in CSS, which is why it is blocked. In this case the >> page-break-after property should be used instead. >> >> Best regards, >> >> Werner. >> >> Andreas Jung wrote: >>> I have the following test HTML file where each DIV should start >>> on a new page (break-after: page). >>> >>> >>> <?xml version="1.0" ?> >>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >>> <html xmlns="http://www.w3.org/1999/xhtml" > >>> <head> >>> <style type="text/css"> >>> >>> >>> div.sp-page { >>> break-after:page; >>> } >>> >>> </style> >>> </head> >>> <body> >>> <div class="main"> >>> >>> <div class="sp-page">hello world</div> >>> <div class="sp-page">hello world</div> >>> <div class="sp-page">hello world</div> >>> >>> </div> >>> </body> >>> </html> >>> >>> However css2xslfo 1.4.2 generates this: >>> >>> .... >>> <fo:block margin-left="0pt" margin-right="0pt" >>> unicode-bidi="embed">hello world</fo:block> >>> <fo:block margin-left="0pt" margin-right="0pt" >>> unicode-bidi="embed">hello world</fo:block> >>> <fo:block margin-left="0pt" margin-right="0pt" >>> unicode-bidi="embed">hello world</fo:block> >>> >>> ... >>> >>> where the break-after attibute isn't passed through. Bug or Feature? >>> >>> Thanks in advance, >>> Andreas >>> >>> >>> ------------------------------------------------------------------------ >>> >>> ------------------------------------------------------------------------- >>> >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 express and take >>> control of your XML. No limits. Just data. Click to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> css2xslfo-support mailing list >>> css...@li... >>> https://lists.sourceforge.net/lists/listinfo/css2xslfo-support >> >> -- >> Werner Donné -- Re >> Engelbeekstraat 8 >> B-3300 Tienen >> tel: (+32) 486 425803 e-mail: wer...@re... >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> css2xslfo-support mailing list >> css...@li... >> https://lists.sourceforge.net/lists/listinfo/css2xslfo-support > > > -- Werner Donné -- Re Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |