Re: Asian fonts in pdfs
On Mon, 8 May 2006 23:43:37 +0100 Matthew East <[EMAIL PROTECTED]> wrote: > Hi Lev, > > On Sun, 7 May 2006 14:07:28 +0300 > Lev T <[EMAIL PROTECTED]> wrote: > > > If those documents use Unicode charsets, a possible solution is to > > embed ttf font contains needed charsets into PDF. I am using > > DFSG-free version of "kochi" font family for asian languages. > > [...] > > Thanks for this tip: I tried the kochi font family as you suggested, > and although everything seemed to go well, all I got were hashes > again. I've tried the following: > > arphic-uming for zh_CN (fop crashed with an error about java memory) > kochi for zh_CN, ko, id s/id/urd So, I've made some progress, having found that a typo in my xsl was responsible for the hashes. Now I think that I just need to find the right font for each of the languages I am trying, and eliminate this crash, which seems to be happening when I get the right font (I'm using uming for zh_CN, which I have been assured works) ;) http://pastebin.com/706537 Matt signature.asc Description: PGP signature
Re: Asian fonts in pdfs
Hi Lev, On Sun, 7 May 2006 14:07:28 +0300 Lev T <[EMAIL PROTECTED]> wrote: > If those documents use Unicode charsets, a possible solution is to > embed ttf font contains needed charsets into PDF. I am using > DFSG-free version of "kochi" font family for asian languages. [...] Thanks for this tip: I tried the kochi font family as you suggested, and although everything seemed to go well, all I got were hashes again. I've tried the following: arphic-uming for zh_CN (fop crashed with an error about java memory) kochi for zh_CN, ko, id Any more hints you can give would be much appreciated, I'm starting to give up on getting asian languages working! Matt signature.asc Description: PGP signature
footer/page number in embedded .xsl
I have my code working, extracting data from our database and producing a PDF from an OBJ. This works quite well. I am trying to find out how to add a page number and text in the page footer. I can find references to a static method but that does not seem to work for the embedded method nor can I find any reference to this in the docs(unless I am not looking the the right place). I have mirrored my code off the projectteam2fo.xsl in the .92 distribution. Any help would be appreciated. Thanks Calvin -- View this message in context: http://www.nabble.com/footer-page-number-in-embedded-.xsl-t1579153.html#a4286478 Sent from the FOP - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using svg image on both fop.0.20 and fop.0.92beta
Jeremias Maerki jeremias-maerki.ch> writes: > > Make sure you have it in the /jre/lib/endorsed directory if > you've installed a JDK rather than a JRE. In my jre/lib/endorsed > directory for Sun JDK 1.4.2_10 I have the following JARs: > - serializer-2.7.0.jar > - xalan-2.7.0.jar > - xercesImpl-2.7.1.jar > - xml-apis-1.3.02.jar Looks like I ran into path (not classpath) problems with Java. It's working fine now that I've straighted that out. Thanks again, -arturo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java Result: 2 Why?
Jeremias Maerki <[EMAIL PROTECTED]> wrote:>In XSL-FO you say hyphenate="false". You'll have to find out yourselfwhat the equivalent is in DocBook. I have found something similar on the web for docbook, I should have to add the following line: on the fop.xsl file. the bad new is that the problem persists, :-)>fox:outline is not supported by FOP 0.92beta. You have to tell DocBookto use the XSL 1.1 bookmark elements instead and you may need to get thelatest DocBook version. The DocBook cracks on this list (or on theDocBook list) may be able to help you here with more current information. Ok, thanks, so that would be more difficult because I am using the Hibernate template (Another Open Source Project), so I have no much idea about the style detail used. Thanks, David New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
Re: Problem using svg image on both fop.0.20 and fop.0.92beta
Make sure you have it in the /jre/lib/endorsed directory if you've installed a JDK rather than a JRE. In my jre/lib/endorsed directory for Sun JDK 1.4.2_10 I have the following JARs: - serializer-2.7.0.jar - xalan-2.7.0.jar - xercesImpl-2.7.1.jar - xml-apis-1.3.02.jar And that works fine. The timeframe for the next Batik release is unknown. There are still a few things to do before the next release can happen. On 08.05.2006 15:50:53 Arturo Perez wrote: > Jeremias Maerki jeremias-maerki.ch> writes: > > > > > This problem is now documented in our FAQ: > http://xmlgraphics.apache.org/fop/faq.html#svg-attribute-required > > > > > > I put in the Xalan2.7 into the endorsed library (and serializer.jar, it needs > that too) but I still get the same problem on 0.92 > > It looks like I'll have to wait for a fixed Batik for this to be resolved? If > so, is there a timeframe for that? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using svg image on both fop.0.20 and fop.0.92beta
Jeremias Maerki jeremias-maerki.ch> writes: > > This problem is now documented in our FAQ: http://xmlgraphics.apache.org/fop/faq.html#svg-attribute-required > > I put in the Xalan2.7 into the endorsed library (and serializer.jar, it needs that too) but I still get the same problem on 0.92 It looks like I'll have to wait for a fixed Batik for this to be resolved? If so, is there a timeframe for that? tia, -arturo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: table-body, border-width, and "inherit"
Jeremias Maerki wrote: > > So is the above result right or a bug? > It's correct. Ok, I misunderstood completly here, sorry. Thanks for your comprehensive explanation. Regards, --drkm ___ Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. Rendez-vous sur http://fr.yahoo.com/set - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: table-body, border-width, and "inherit"
On 08.05.2006 14:54:41 Florent Georges wrote: > Hi > > Doesn't the following have to result in a table with a > border of 1pt, and two rules of 0.25pt? No. > > > > > > > Line 1 > > > > > > > Line 2 > > > > > > > Line 3 > > > > > > > Actually, the two rules are of 1pt. Is it expected? Yes. > I > thought that by "inherit", the value was the one of the > nearest ancestor with that value (well, the value in the > parent, itself maybe "inherit"). The border properties are not inherited properties and you didn't specify "inherit" as the property value anywhere. The default border-width is "medium" which results in a 1pt border in FOP. The border-width on the table-body has no effect, especially since in FOP 0.92beta the border-collapse property is forced to the value "separate" because the default collapsing border model isn't supported, yet. So, as soon as you set the border-style you simply activate the default border-width of "medium" (=1pt). > So is the above result right or a bug? It's correct. > PS: I use FOP 0.92beta. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
table-body, border-width, and "inherit"
Hi Doesn't the following have to result in a table with a border of 1pt, and two rules of 0.25pt? Line 1 Line 2 Line 3 Actually, the two rules are of 1pt. Is it expected? I thought that by "inherit", the value was the one of the nearest ancestor with that value (well, the value in the parent, itself maybe "inherit"). So is the above result right or a bug? PS: I use FOP 0.92beta. Regards, --drkm ___ Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. Rendez-vous sur http://fr.yahoo.com/set - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TTF Metric
Thanks a lot Jeremias! tbl > --- Ursprüngliche Nachricht --- > Von: Jeremias Maerki <[EMAIL PROTECTED]> > An: fop-users@xmlgraphics.apache.org > Betreff: Re: TTF Metric > Datum: Mon, 08 May 2006 14:39:49 +0200 > > > On 08.05.2006 12:38:48 tblhh wrote: > > Hi, > > I have a problem creating font metrics. > > I´m using FOP 0.20.5. > > > > I tried it this way > > > > java -cp c:\fop\build\fop.jar; > c:\fop\lib\avalon-framework-cvs-20020806.jar; > > > Remove the space character indicated above. > > > org.apache.fop.fonts.apps.TTFReader C:\fop-fonts\Jgsonder.ttf > jgsonder.xml > > > > and got this answer > > Exception in thread "main" java.lang.NoClassDefFoundError: > > c:\fop\lib\avalon-framework-cvs-20020806/jar; > > > > fop.jar and avalon-framework-cvs-20020806.jar in the called folder. > > > > I´m using > > java version "1.4.0" > > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92) > > Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode) > > > > Does someone know what the problem might be? > > > > I wish a nice day and thanks for help. > > > > Jeremias Maerki > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- GMX Produkte empfehlen und ganz einfach Geld verdienen! Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TTF Metric
On 08.05.2006 12:38:48 tblhh wrote: > Hi, > I have a problem creating font metrics. > I´m using FOP 0.20.5. > > I tried it this way > > java -cp c:\fop\build\fop.jar; c:\fop\lib\avalon-framework-cvs-20020806.jar; Remove the space character indicated above. > org.apache.fop.fonts.apps.TTFReader C:\fop-fonts\Jgsonder.ttf jgsonder.xml > > and got this answer > Exception in thread "main" java.lang.NoClassDefFoundError: > c:\fop\lib\avalon-framework-cvs-20020806/jar; > > fop.jar and avalon-framework-cvs-20020806.jar in the called folder. > > I´m using > java version "1.4.0" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92) > Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode) > > Does someone know what the problem might be? > > I wish a nice day and thanks for help. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java Result: 2 Why?
On 08.05.2006 12:02:26 David wrote: > Dear Jeremias Maerki, > > Thanks, for your interesest again, I am following your recomendation with > the following results: > > >Must be something about text inside a list-item-body. The line number in > LineArea.java indicates that there may be something wrong with > hyphenation. You could try to switch off hyphenation to see if there's > any difference. > > I guess it too, it is a problem about the the text length, because it > ocurres at variables possition on the original text. > > About to swith hyphenation please clarify again my ignorance, :-), because > I have no idea about how to swith off this. In XSL-FO you say hyphenate="false". You'll have to find out yourself what the equivalent is in DocBook. > I thought to add some attribute in the node definition but I have no > found such attribute. I use the following definition: > > > > Trying with your second suggestion: > > >I'd say this is a bug in FOP 0.20.5. But since we don't do any bugfixing > anymore on this version, you might want to consider upgrading to the > latest release, 0.92beta. > > I have downloaded it, but now I get another error: > > Buildfile: P:\LRA\build.xml > check-build-doc: > doc2pdf: > [echo] INFO(lra): Generating intermediate file... > [docbook] Making portrait pages on A4 paper (210mmx297mm) > [echo] INFO(lra): Generating pdf file... > [fop] P:\LRA\build\doc\pdf\docbook_fop.tmp -> P:\LRA\build\doc\pdf\lra.pdf > BUILD FAILED > P:\LRA\build.xml:976: javax.xml.transform.TransformerException: > org.apache.fop.apps.FOPException: > file:///P:/LRA/build/doc/pdf/docbook_fop.tmp:1:23534: Error(1/23534): No > element mapping definition found for fox:outline fox:outline is not supported by FOP 0.92beta. You have to tell DocBook to use the XSL 1.1 bookmark elements instead and you may need to get the latest DocBook version. The DocBook cracks on this list (or on the DocBook list) may be able to help you here with more current information. > Total time: 7 seconds > > What I did was to just put on the classpath the *.jar on the FOP beta > distribution, but still using the *.xsl files from: > > http://static.springframework.org/spring/files/docbook-reference-libs.zip > > that use DocBook 4.2 version. > > so before generating the PDF file I produce a temporary file with the > following command: > > >dir="${doc.ref.src.dir}" >> > > > > > > > > > > > > > > > > > > > basedir="${build.doc.ref.pdf.dir}" >fofile="${build.doc.ref.pdf.dir}/docbook_fop.tmp" >messagelevel="verbose" > outfile="${build.doc.ref.pdf.dir}/${name}.pdf" /> > > > Please let me know any suggestion, > > David Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bug with tables and footers?
Right, the generated element list is wrong (the element for the table-row shows 0pt height). But as you notice, this is rather exotic, especially since the problem goes away if you remove the row span. I don't feel like running after this bug right now. Please always state the FOP version you're using. I had to look up your last post to find out. On 08.05.2006 04:56:36 Jordan Soet wrote: > Hi, I think I found a little bug with when you have a table and a footer, > having the body content overlap the footer. However, I'm not sure if this > really counts as a bug, since I actually have the rowspan = 3 when there's > only one row in the table. Don't really need it fixed or anything, just > letting you know. Anyways, the code is below: > Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TTF Metric
Hi, I have a problem creating font metrics. I´m using FOP 0.20.5. I tried it this way java -cp c:\fop\build\fop.jar; c:\fop\lib\avalon-framework-cvs-20020806.jar; org.apache.fop.fonts.apps.TTFReader C:\fop-fonts\Jgsonder.ttf jgsonder.xml and got this answer Exception in thread "main" java.lang.NoClassDefFoundError: c:\fop\lib\avalon-framework-cvs-20020806/jar; fop.jar and avalon-framework-cvs-20020806.jar in the called folder. I´m using java version "1.4.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92) Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode) Does someone know what the problem might be? I wish a nice day and thanks for help. tbl -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java Result: 2 Why?
Dear Jeremias Maerki, Thanks, for your interesest again, I am following your recomendation with the following results: >Must be something about text inside a list-item-body. The line number inLineArea.java indicates that there may be something wrong withhyphenation. You could try to switch off hyphenation to see if there'sany difference. I guess it too, it is a problem about the the text length, because it ocurres at variables possition on the original text. About to swith hyphenation please clarify again my ignorance, :-), because I have no idea about how to swith off this. I thought to add some attribute in the node definition but I have no found such attribute. I use the following definition: Trying with your second suggestion: >I'd say this is a bug in FOP 0.20.5. But since we don't do any bugfixinganymore on this version, you might want to consider upgrading to thelatest release, 0.92beta. I have downloaded it, but now I get another error: Buildfile: P:\LRA\build.xml check-build-doc: doc2pdf: [echo] INFO(lra): Generating intermediate file... [docbook] Making portrait pages on A4 paper (210mmx297mm) [echo] INFO(lra): Generating pdf file... [fop] P:\LRA\build\doc\pdf\docbook_fop.tmp -> P:\LRA\build\doc\pdf\lra.pdf BUILD FAILED P:\LRA\build.xml:976: javax.xml.transform.TransformerException: org.apache.fop.apps.FOPException: file:///P:/LRA/build/doc/pdf/docbook_fop.tmp:1:23534: Error(1/23534): No element mapping definition found for fox:outline Total time: 7 seconds What I did was to just put on the classpath the *.jar on the FOP beta distribution, but still using the *.xsl files from: http://static.springframework.org/spring/files/docbook-reference-libs.zip that use DocBook 4.2 version. so before generating the PDF file I produce a temporary file with the following command: > basedir="${build.doc.ref.pdf.dir}" fofile="${build.doc.ref.pdf.dir}/docbook_fop.tmp" messagelevel="verbose" outfile="${build.doc.ref.pdf.dir}/${name}.pdf" /> Please let me know any suggestion, David Get amazing travel prices for air and hotel in one click on Yahoo! FareChase