css2xslfo-support Mailing List for CSSToXSLFO (Page 3)
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: Werner D. <wer...@re...> - 2008-09-05 12:19:50
|
Hi, Scaling of images is described in section 4.13 of the manual and rotating in section 4.8. Check also section 4.20 for the actual property definitions. Best regards, Werner. On 05 Sep 2008, at 14:06, parames waran wrote: > > > Hi Werner, > > I am having the problem with large image ,that is too larger than > the pdf page so the overflow image portions are hidden. > > I am using the following style for image display. > > doc view _img { > width:auto: > height:auto; > } > > And also i need to display the image as landscape instead of > portrait page. > > Please help me to solve this problem. > > > > Regards. > Parameswaran.M > > > > Be the first one to try the new Messenger 9 Beta! Go to http://in.messenger.yahoo.com/win/ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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: parames w. <par...@ya...> - 2008-09-05 12:13:23
|
Hi Werner, I am having the problem with large image ,that is too larger than the pdf page so the overflow image portions are hidden. I am using the following style for image display. doc view _img { width:auto: height:auto; } And also i need to display the image as landscape instead of portrait page. Please help me to solve this problem. Regards. Parameswaran.M Be the first one to try the new Messenger 9 Beta! Go to http://in.messenger.yahoo.com/win/ |
From: Brad C. <bk...@mu...> - 2008-09-01 12:12:54
|
Hi, I assume when you say "TLD" you actually mean "DTD" this is what I did to support xhtml dtd catalog: 1. download dtd archive from w3. I think it's http://www.w3.org/TR/xhtml1/xhtml1.tgz 2. unpack the archive somewhere on your system, in my case I upacked the archive to /home/bkc/dtd/ 3. I created a catalog file: /home/bkc/dtd/xhtml1-20020801/catalog It's contents are (note the relative filenames) PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd" SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" "DTD/xhtml1-strict.dtd" PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd" SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" "DTD/xhtml1-transitional.dtd" (in this case, DTD is a directory in /home/bkc/dtd/xhtml1-20020801 ) specify the full path to the catalog file when you execute css2xslfo For me, doing all this took 1 second off a 15 second translation time. I was using css2xslfo from the command line, spawned by a REST server process written in Python. To speed up the process more, I re-wrote the server to use Jython and to call CSSToFOPNew.convert() directly from the REST Jython server and conversion times are now about 1 or 2 seconds. parames waran wrote: > Hi Werner, > > > I am having the problem while generating pdf from xhtml with csstoxslfo . > > The conversion time is very long .I am struggling with how to refer the "tld" file in local . > > please give me a solution to solve this issue. > > can u send me the links to download the "tld" and what are the changes need to done if I want to access the "tld" from local instead of www.w3c.com. > > Really appreciate you if you give the solution . > -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM: BKClements |
From: Andreas J. <li...@an...> - 2008-09-01 07:16:27
|
--On 1. September 2008 12:38:56 +0530 parames waran <par...@ya...> wrote: > Hi Werner, > > > I am having the problem while generating pdf from xhtml with csstoxslfo . > > The conversion time is very long .I am struggling with how to refer the > "tld" file in local . > > please give me a solution to solve this issue. > > can u send me the links to download the "tld" and what are the changes > need to done if I want to access the "tld" from local instead of > www.w3c.com. tld??? -aj |
From: parames w. <par...@ya...> - 2008-09-01 07:09:09
|
Hi Werner, I am having the problem while generating pdf from xhtml with csstoxslfo . The conversion time is very long .I am struggling with how to refer the "tld" file in local . please give me a solution to solve this issue. can u send me the links to download the "tld" and what are the changes need to done if I want to access the "tld" from local instead of www.w3c.com. Really appreciate you if you give the solution . Regards. Parameswaran.M Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/ |
From: Brad C. <bk...@mu...> - 2008-08-21 12:13:09
|
parames waran wrote: > Hi > Thanks for your comment ,now I am doing exactly what you said ,but I am have a problem with this when forming the URL .If the URL contains the & it does not make any sense . > > Really appreciate if you give a solution. > Hi, Again this is not specific to css2xslfo, and for completeness it's best if you reply to the mailing list rather than directly to an individual. Anyway, not knowing what application you are using or where, at best I can suggest that you want to look into URL encoding. the & character is used to separate parameters in http requests. Depending on what the URL is, you want the & sent encoded, or not encoded. This is basic HTTP stuff. Perhaps this page will help: http://en.wikipedia.org/wiki/Percent-encoding > > Regards. > Parameswaran.M > -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM: BKClements |
From: Werner D. <wer...@re...> - 2008-08-20 16:17:42
|
Hi, You should put & in your document instead of just &. Best regards, Werner. On 20 Aug 2008, at 17:48, parames waran wrote: > Hi, > > I have created the pdf from xhtml with csstoxslfo and apache > fop .but I am having one problem if the content containing "&" it > throws an error message that says the reference entity must end > with ; > > for example > > "publisher & place of publication" is a content ,error message is > "place of publication must end with ;" > > i am really appreciate if any one solve this . > > > > > Regards. > Parameswaran.M > > > > Add more friends to your messenger and enjoy! Go to http://in.messenger.yahoo.com/invite/ -- 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: Brad C. <bk...@mu...> - 2008-08-20 16:04:50
|
XHTML must be well-formed. A bare '&' is not allowed in XHTML. You need to use the correct entity. & is what you need instead of '&' This page could be helpful: http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references parames waran wrote: > Hi, > > I have created the pdf from xhtml with csstoxslfo and apache fop .but I am having one problem if the content containing "&" it throws an error message that says the reference entity must end with ; > > for example > > "publisher & place of publication" is a content ,error message is "place of publication must end with ;" > > i am really appreciate if any one solve this . > > > > > Regards. > Parameswaran.M > > > > Add more friends to your messenger and enjoy! Go to http://in.messenger.yahoo.com/invite/ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support > -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM: BKClements |
From: parames w. <par...@ya...> - 2008-08-20 15:48:26
|
Hi, I have created the pdf from xhtml with csstoxslfo and apache fop .but I am having one problem if the content containing "&" it throws an error message that says the reference entity must end with ; for example "publisher & place of publication" is a content ,error message is "place of publication must end with ;" i am really appreciate if any one solve this . Regards. Parameswaran.M Add more friends to your messenger and enjoy! Go to http://in.messenger.yahoo.com/invite/ |
From: Werner D. <wer...@re...> - 2008-07-22 07:38:36
|
Hi, You have to be much more precise. A sample and telling what you want to achieve would help. Best regards, Werner. On 22 Jul 2008, at 08:51, parames waran wrote: > Hi i am using css2xslfo ,for make the pdf from xhtml . > > the style in xhtml pages are not reflected in pdf .in css > flaot:left ,margin-left:20px; are not working . > please help me to solve this > > > Regards. > Parameswaran.M > > > > Explore your hobbies and interests. Go to http://in.promos.yahoo.com/groups/ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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: parames w. <par...@ya...> - 2008-07-22 06:51:50
|
Hi i am using css2xslfo ,for make the pdf from xhtml . the style in xhtml pages are not reflected in pdf .in css flaot:left ,margin-left:20px; are not working . please help me to solve this Regards. Parameswaran.M Explore your hobbies and interests. Go to http://in.promos.yahoo.com/groups/ |
From: Brad C. <bk...@mu...> - 2008-06-21 00:59:56
|
Please ignore that last post, I see the html was not valid (tr in a tr).. doh! -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM: BKClements |
From: Brad C. <bk...@mu...> - 2008-06-10 15:59:29
|
Werner Donné wrote: > >> I tried adding '-dpi' to the parameters hashmap, but it looks like >> csstoxslfo is interpreting parameters. >> >> > > Indeed it does. An new feature could to make room for processor-specific > options on the command-line. I have created feature request 1989920 for > this. > Great! > >> I need to tell csstoxslfo to do something like: >> >> >>> userAgent.setTargetResolution(600) >>> >> I also tried setting this in the fop conf file, but it doesn't seem >> to work: >> >> <renderer mime="application/x-pcl"> >> <target-resolution>600</target-resolution> >> ... >> >> > > I don't know this part of FOP, but I noticed that the MIME type in your > sample differs from the example of the page you refer to. > > Right, I only need to set the DPI for pcl output. Anyway I think that's not supported by FOP, and instead must call userAgent.setTargetResolution(600) instead -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM: BKClements |
From: Werner D. <wer...@re...> - 2008-06-10 15:43:49
|
Hi Brad, On 09 Jun 2008, at 17:05, Brad Clements wrote: > > This page > http://xmlgraphics.apache.org/fop/0.95/output.html#pcl-configuration > > says: > >> You can control the output resolution for the PCL using the "target >> resolution" setting on the FOUserAgent. > > I can't see how to set this when embedding csstoxslfo. > > I tried adding '-dpi' to the parameters hashmap, but it looks like > csstoxslfo is interpreting parameters. > Indeed it does. An new feature could to make room for processor-specific options on the command-line. I have created feature request 1989920 for this. > I need to tell csstoxslfo to do something like: > >> userAgent.setTargetResolution(600) > > I also tried setting this in the fop conf file, but it doesn't seem > to work: > > <renderer mime="application/x-pcl"> > <target-resolution>600</target-resolution> > ... > I don't know this part of FOP, but I noticed that the MIME type in your sample differs from the example of the page you refer to. > > > -- > Brad Clements, bk...@mu... (315)268-1000 > http://www.murkworks.com > AOL-IM: BKClements > Best regards, Werner. > > ------------------------------------------------------------------------- > 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: Brad C. <bk...@mu...> - 2008-06-09 15:05:29
|
This page http://xmlgraphics.apache.org/fop/0.95/output.html#pcl-configuration says: > You can control the output resolution for the PCL using the "target > resolution" setting on the FOUserAgent. I can't see how to set this when embedding csstoxslfo. I tried adding '-dpi' to the parameters hashmap, but it looks like csstoxslfo is interpreting parameters. I need to tell csstoxslfo to do something like: > userAgent.setTargetResolution(600) I also tried setting this in the fop conf file, but it doesn't seem to work: <renderer mime="application/x-pcl"> <target-resolution>600</target-resolution> ... -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM: BKClements |
From: Werner D. <wer...@re...> - 2008-06-06 07:09:20
|
Hi Brad, I'm glad it worked out. Regarding threading, there is no global state, so you can use multiple instances of the CSSToXSLFO filter in different threads. The same instance can't be used in multiple threads, because the streaming-oriented filters inside have state. Best regards, Werner. On 06 Jun 2008, at 00:24, Brad Clements wrote: > Werner Donné wrote: >> Hi Brad, >> >> The CSSToFOPNew class also has convert() variants that do what >> you want. However, there is no javadoc about that yet. I should >> include it in the next release. > For the archives, using the excellent JinSitu, I was able to noodle > this > out: > > from be.re.css import CSSToFOPNew > from java.net import URL > from java.io import File, FileInputStream, FileOutputStream > from java.util import HashMap > input_file_path = '/tmp/t/x.html' > baseUrl = URL('file://'+input_file_path) > input_file = FileInputStream(input_file_path) > output_file = FileOutputStream('/tmp/fop.pdf') > catalog = URL('file://'+'/home/bkc/dtd/xhtml1-20020801/catalog') > agentSheet = None > parameters = HashMap() > preprocessors = [] > format = 'application/pdf' > configFile = File('/home/bkc/apps/css2xslfo/bar.conf.xml') > validate = False > try: > CSSToFOPNew.convert(input_file, output_file, baseUrl, agentSheet, > catalog, > parameters, preprocessors, format, configFile, validate) > finally: > input_file.close() > output_file.close() > > > the conversion seems very fast.. less than 1/10 second for a 1 page > document. I can't believe that, but will continue to convert my server > app from Python to Jython. > > > Are there any threading issues I need to be aware of? > > Thanks > > -- > Brad Clements, bk...@mu... (315)268-1000 > http://www.murkworks.com > AOL-IM: BKClements > > > ------------------------------------------------------------------------- > 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: Brad C. <bk...@mu...> - 2008-06-05 22:24:24
|
Werner Donné wrote: > Hi Brad, > > The CSSToFOPNew class also has convert() variants that do what > you want. However, there is no javadoc about that yet. I should > include it in the next release. For the archives, using the excellent JinSitu, I was able to noodle this out: from be.re.css import CSSToFOPNew from java.net import URL from java.io import File, FileInputStream, FileOutputStream from java.util import HashMap input_file_path = '/tmp/t/x.html' baseUrl = URL('file://'+input_file_path) input_file = FileInputStream(input_file_path) output_file = FileOutputStream('/tmp/fop.pdf') catalog = URL('file://'+'/home/bkc/dtd/xhtml1-20020801/catalog') agentSheet = None parameters = HashMap() preprocessors = [] format = 'application/pdf' configFile = File('/home/bkc/apps/css2xslfo/bar.conf.xml') validate = False try: CSSToFOPNew.convert(input_file, output_file, baseUrl, agentSheet, catalog, parameters, preprocessors, format, configFile, validate) finally: input_file.close() output_file.close() the conversion seems very fast.. less than 1/10 second for a 1 page document. I can't believe that, but will continue to convert my server app from Python to Jython. Are there any threading issues I need to be aware of? Thanks -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM: BKClements |
From: Werner D. <wer...@re...> - 2008-06-05 15:34:41
|
Hi Brad, The CSSToFOPNew class also has convert() variants that do what you want. However, there is no javadoc about that yet. I should include it in the next release. Best regards, Werner. On 05 Jun 2008, at 17:25, Brad Clements wrote: > Is there a variant of CSSToXSLFOFilter or convert() that can write > out a PDF directly using fopnew? > > I'm not a java guy, so will be using Jython to "glue" stuff together. > > The example code in the manual is clear enough for me, but I could > use a clue how to pipe the xsl-fo stream into FOP.. > > Or maybe css2fopnew.jar has a convenience method exposed that does > the hard work? > > Is there a javadoc file? Perhaps in the source (haven't tried that > yet, sorry) > > Thanks for any tips.. > > > -- > Brad Clements, bk...@mu... (315)268-1000 > http://www.murkworks.com > AOL-IM: BKClements > ------------------------------------------------------------------------- > 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: Brad C. <bk...@mu...> - 2008-06-05 15:25:25
|
Is there a variant of CSSToXSLFOFilter or convert() that can write out a PDF directly using fopnew? I'm not a java guy, so will be using Jython to "glue" stuff together. The example code in the manual is clear enough for me, but I could use a clue how to pipe the xsl-fo stream into FOP.. Or maybe css2fopnew.jar <http://prdownloads.sourceforge.net/css2xslfo/css2fopnew1_5_2.jar?download> has a convenience method exposed that does the hard work? Is there a javadoc file? Perhaps in the source (haven't tried that yet, sorry) Thanks for any tips.. -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM: BKClements |
From: Werner D. <wer...@re...> - 2008-06-05 07:54:47
|
Hi Brad, The catalog file should look like this: 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" You should place the file next to the "xhtml1" directory and then use it for with the "-c" option. Best regards, Werner. On 05 Jun 2008, at 04:57, Brad Clements wrote: > Werner Donné wrote: >> >> >> I think the reason is that the XHTML DTD is no longer in the >> package. As a consequence, the DTD is probably fetched from >> the Internet. You can use the "-c" option to specify a catalog >> that refers to a local copy of the DTD entity. I have created >> bug 1984171 for this. >> > Hi, > > I downloaded the complete sgml/dtd tgz file from http://www.w3.org/TR/xhtml1/ > > Then I use the -c option to refer to xhtml.soc from that tar file. > > But css2xslfo says: > > > Line 4: PUBLIC or SYSTEM expected > > However line 4 does start with PUBLIC. is this not the correct > catalog format to use? > > Thanks > > --- > > > server4:~/dtd/xhtml1-20020801/DTD> more xhtml.soc > OVERRIDE YES > -- Oasis entity catalog for Extensible HTML 1.0 -- > > PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "xhtml1-strict.dtd" > PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1- > transitional.dtd" > PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "xhtml1- > frameset.dtd" > > -- ISO latin 1 entity set for Extensible HTML (XML 1.0 > format) -- > > PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "xhtml-lat1.ent" > PUBLIC "-//W3C//ENTITIES Symbols for XHTML//EN" "xhtml-symbol.ent" > PUBLIC "-//W3C//ENTITIES Special for XHTML//EN" "xhtml-special.ent" > > SGMLDECL "xhtml1.dcl" > > > > >> >>> I don't know much about java, but I'm wondering if most of the >>> time is >>> spent loading java and the required classes. Has anyone setup >>> css2xslfo >>> to run as a servlet / REST web service? >>> >>> >> You can try out http://www.pincette.biz. If you click on the Acrobat >> icon a conversion to PDF is launched for that page. This is for demo >> purposes, because in reality you would generate that offline. The >> conversion is a filter chain composed of CSSToXSLFO and XEP. >> >> >>> Also, is the Dec 07 release of css2xslfopnew compatible with the FOP >>> 0.95 beta release from march 08? >>> >>> >> It wasn't tested yet, but if the API of FOP hasn't changed it should >> work. >> >> >>> Thanks >>> >>> ps. For some use cases, I have to subsequently convert the PDF to >>> PCL >>> or Postscript and send it to a printer. I'm that is also slow. That >>> is, >>> low end printers take a long time to render each page.. About 40 >>> seconds.. the pcl6 output is only 183kb. I'm using ghostscript with >>> pxlmono for this. >>> >>> I can't really use FOP's PCL output directly in this case, because >>> it's >>> a 2 step process and I do not know in advance what kind of printer >>> will >>> be used. Does anyone have experience with this problem as well? >>> Perhaps >>> suggesting a better way to generate PCL from PDF? The eventual >>> target is >>> a windows printer, but all this work is done on Linux. >>> >> I have no experience with this. >> >> >>> -- >>> Brad Clements, bk...@mu... (315)268-1000 >>> http://www.murkworks.com >>> AOL-IM: BKClements >>> >>> >> Best regards, >> >> Werner. >> >> >>> ------------------------------------------------------------------------- >>> 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... >> >> >> >> >> >> >> ------------------------------------------------------------------------- >> 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 >> > > > -- > Brad Clements, bk...@mu... (315)268-1000 > http://www.murkworks.com > AOL-IM: BKClements > ------------------------------------------------------------------------- > 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: Brad C. <bk...@mu...> - 2008-06-05 02:57:48
|
Werner Donné wrote: > > I think the reason is that the XHTML DTD is no longer in the > package. As a consequence, the DTD is probably fetched from > the Internet. You can use the "-c" option to specify a catalog > that refers to a local copy of the DTD entity. I have created > bug 1984171 for this. > Hi, I downloaded the complete sgml/dtd tgz file from http://www.w3.org/TR/xhtml1/ Then I use the -c option to refer to xhtml.soc from that tar file. But css2xslfo says: Line 4: PUBLIC or SYSTEM expected However line 4 does start with PUBLIC. is this not the correct catalog format to use? Thanks --- server4:~/dtd/xhtml1-20020801/DTD> more xhtml.soc OVERRIDE YES -- Oasis entity catalog for Extensible HTML 1.0 -- PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "xhtml1-strict.dtd" PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1-transitional.dtd" PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "xhtml1-frameset.dtd" -- ISO latin 1 entity set for Extensible HTML (XML 1.0 format) -- PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "xhtml-lat1.ent" PUBLIC "-//W3C//ENTITIES Symbols for XHTML//EN" "xhtml-symbol.ent" PUBLIC "-//W3C//ENTITIES Special for XHTML//EN" "xhtml-special.ent" SGMLDECL "xhtml1.dcl" > >> I don't know much about java, but I'm wondering if most of the time is >> spent loading java and the required classes. Has anyone setup >> css2xslfo >> to run as a servlet / REST web service? >> >> > > You can try out http://www.pincette.biz. If you click on the Acrobat > icon a conversion to PDF is launched for that page.? This is for demo > purposes, because in reality you would generate that offline. The > conversion is a filter chain composed of CSSToXSLFO and XEP. > > >> Also, is the Dec 07 release of css2xslfopnew compatible with the FOP >> 0.95 beta release from march 08? >> >> > > It wasn't tested yet, but if the API of FOP hasn't changed it should > work. > > >> Thanks >> >> ps. For some use cases, I have to subsequently convert the PDF to PCL >> or Postscript and send it to a printer. I'm that is also slow. That >> is, >> low end printers take a long time to render each page.. About 40 >> seconds.. the pcl6 output is only 183kb. I'm using ghostscript with >> pxlmono for this. >> >> I can't really use FOP's PCL output directly in this case, because >> it's >> a 2 step process and I do not know in advance what kind of printer >> will >> be used. Does anyone have experience with this problem as well? >> Perhaps >> suggesting a better way to generate PCL from PDF? The eventual >> target is >> a windows printer, but all this work is done on Linux. >> > > I have no experience with this. > > >> -- >> Brad Clements, bk...@mu... (315)268-1000 >> http://www.murkworks.com >> AOL-IM: BKClements >> >> > > Best regards, > > Werner. > > >> ------------------------------------------------------------------------- >> 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... > > > > > > > ------------------------------------------------------------------------- > 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 > -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM: BKClements |
From: Werner D. <wer...@re...> - 2008-06-04 07:33:28
|
Hi Brad, On 03 Jun 2008, at 23:43, Brad Clements wrote: > Hi, > > I am running css2xslfo from the command line to convert simple, short > xhtml pages to PDF. > > I'm told it "takes too long", about 9 seconds to generate a 1 page > document (contains a few tables, and maybe a 12Kb .png image or not) > > Does anyone have suggestions on how to speed this up? > I think the reason is that the XHTML DTD is no longer in the package. As a consequence, the DTD is probably fetched from the Internet. You can use the "-c" option to specify a catalog that refers to a local copy of the DTD entity. I have created bug 1984171 for this. > I don't know much about java, but I'm wondering if most of the time is > spent loading java and the required classes. Has anyone setup > css2xslfo > to run as a servlet / REST web service? > You can try out http://www.pincette.biz. If you click on the Acrobat icon a conversion to PDF is launched for that page. This is for demo purposes, because in reality you would generate that offline. The conversion is a filter chain composed of CSSToXSLFO and XEP. > Also, is the Dec 07 release of css2xslfopnew compatible with the FOP > 0.95 beta release from march 08? > It wasn't tested yet, but if the API of FOP hasn't changed it should work. > Thanks > > ps. For some use cases, I have to subsequently convert the PDF to PCL > or Postscript and send it to a printer. I'm that is also slow. That > is, > low end printers take a long time to render each page.. About 40 > seconds.. the pcl6 output is only 183kb. I'm using ghostscript with > pxlmono for this. > > I can't really use FOP's PCL output directly in this case, because > it's > a 2 step process and I do not know in advance what kind of printer > will > be used. Does anyone have experience with this problem as well? > Perhaps > suggesting a better way to generate PCL from PDF? The eventual > target is > a windows printer, but all this work is done on Linux. I have no experience with this. > -- > Brad Clements, bk...@mu... (315)268-1000 > http://www.murkworks.com > AOL-IM: BKClements > Best regards, Werner. > ------------------------------------------------------------------------- > 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: Brad C. <bk...@mu...> - 2008-06-03 21:48:56
|
Hi, I am running css2xslfo from the command line to convert simple, short xhtml pages to PDF. I'm told it "takes too long", about 9 seconds to generate a 1 page document (contains a few tables, and maybe a 12Kb .png image or not) Does anyone have suggestions on how to speed this up? I don't know much about java, but I'm wondering if most of the time is spent loading java and the required classes. Has anyone setup css2xslfo to run as a servlet / REST web service? Also, is the Dec 07 release of css2xslfopnew compatible with the FOP 0.95 beta release from march 08? Thanks ps. For some use cases, I have to subsequently convert the PDF to PCL or Postscript and send it to a printer. I'm that is also slow. That is, low end printers take a long time to render each page.. About 40 seconds.. the pcl6 output is only 183kb. I'm using ghostscript with pxlmono for this. I can't really use FOP's PCL output directly in this case, because it's a 2 step process and I do not know in advance what kind of printer will be used. Does anyone have experience with this problem as well? Perhaps suggesting a better way to generate PCL from PDF? The eventual target is a windows printer, but all this work is done on Linux. -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM: BKClements |
From: Brad C. <bk...@mu...> - 2008-02-18 20:30:36
|
duh, nevermind. I was only generating output to region="top", and not any body output. -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM: BKClements |
From: Brad C. <bk...@mu...> - 2008-02-18 19:24:21
|
I am stumped on this one. I have a slightly modified xhtml document that is derived from another document that has been working great. However this new document produces no output at all. I upgraded from 1_4_2p7 to 1.5.2 and still can't get any output. I'm not able to understand the temp files produced by -debug. When I try the -v switch, it says: Error: file:/tmp/tmp.avFCw23654/y.html: Line 3: Attribute "xmlns:xhtml" must be declared for element type "html". The file starts off with: <?xml version="1.0" encoding="utf-8"?> <!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" xmlns:xhtml="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> Picking Slip </title> I've tried removing the xml version dec, the doctype, and the extra xmlns:xhtml attribute on the html element, but still it produces no output. For example, if I remove just the DOCTYPE, I get: Error: file:/tmp/tmp.avFCw23654/y.html: Line 2: cvc-elt.1: Cannot find the declaration of element 'html'. If I run it without the -v argument, it still produces no -fo output (and fopnew produces a 15 byte PDF) How can I debug this more? I can send the .html file source.. -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM: BKClements |