Please help: section labels and other XML woes
Hi everybody! Could you please advise me on the following XSL issues? I am using XSLPROC and FOP 0.94 for compiling pdf documents, and I can't cope with two problems: 1) section labels have a dot at the end: for example: 2.2.4. Getting Started - I want to get rid of the dot after 4. 2) I have several parts in my document and each part has its table of contents that displays the parts chapters and their sections. I would like to show only chapters - is it possible? Thank you very much in advance! Best wishes, Nancy -- View this message in context: http://www.nabble.com/Please-help%3A-section-labels-and-other-XML-woes-tp17398687p17398687.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]
AW: MalformedURLException when using relative paths
Hi, thanks for your replies. I tried: file:pdf_test, file://pdf_test Works both for me, because we have our own URI Resolver Implementation. Now, we have to check whether the case path starts with file:// and remove this. Regards, Jacqueline. -Ursprüngliche Nachricht- Von: Ted Young [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 21. Mai 2008 22:41 An: fop-users@xmlgraphics.apache.org Betreff: RE: MalformedURLException when using relative paths I know it works with FOP .94 since I am doing exactly this right now. :-) Ted -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 21, 2008 3:11 PM To: fop-users@xmlgraphics.apache.org Subject: Re: MalformedURLException when using relative paths Ted Young wrote: Yes, it supports relative, but relative URLs not relative file paths. So, what you want it: file:pdf_test Everything starting with file: (or anything else which looks like an URI scheme) is by specification an absolute URL. The string file:pdf_test is not a valid URL at all, although some libraries will try to interpret it the way you do. I'm not sure whether FOP does it, and I'm too tired to check the URI resolver class right now. J.Pietschmann - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP .94 Fonts
Hi, -Message d'origine- De : zachary Dains [mailto:[EMAIL PROTECTED] Envoyé : jeudi 22 mai 2008 00:49 I have set up some font metrics for my own custom TrueType font and trying to get fop to read it. As soon as I specify a config file via -c I get this error when I try and render a pdf. SEVERE: Exception java.io.FileNotFoundException: /var/www/.fop/fop-fonts.cache NOTE: I am using the example fop.xconf file as my config without any changes, however this issue still occurs even when I put my own changes in the file. Any ideas? FOP 0.9x create a cache file to store some fonts data. Perhaps your appli has not write access to /var/www/.fop/fop-fonts.cache Pascal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fedora 9: hyphenation
Hi Tav, Looks like you did everything right on your side, so indeed this may be a Fedora packaging problem. After a quick search I didn’t manage to find the corresponding rpm, in order to have a look into it. But apparently things differ quite a bit from the upstream package. The FOP_HYPHENATION_PATH method works only if you’re using the original fop script. Try to figure out how FOP is called in Fedora. I bet this is a customized shell script that calls java in some way. Maybe you will then be able to figure out how to add fop-hyph.jar to the classpath. Perhaps a separate rpm exists that provides hyphenation files? At any rate it looks like a good idea to contact the package maintainers and ask them if they modified anything WRT the upstream version. HTH, Vincent Tavmjong Bah wrote: Vincent, Thanks for your replies. On Mon, 2008-05-19 at 09:25 +0100, Vincent Hennebert wrote: Hi, Tavmjong Bah wrote: Hi, Fop (0.95beta) is included in Fedora 9. Has anybody gotten hyphenation to work with this package? I get the error message: SEVERE: Couldn't find hyphenation pattern en I have downloaded the precompiled JAR file from OFFO and tried setting the CLASSPATH to include it. I've also tried setting the Are you writing your own program embedding FOP, or are you using the command-line version? Command line version. You can copy the fop-hyph.jar file into the lib/ or build/ directory of the FOP distribution. This makes hyphenation patterns available to every user of the machine (if this is of any interest for you), however the file may not survive a subsequent update of the FOP rpm package. A. Since I wasn't building FOP myself, I didn't have a build directory (it's built already in Fedora 9). There also isn't an explicit lib directory. I tried putting it the same place where fop-0.95.jar is located. FOP_HYPHENATION_PATH to point to it. How did you do exactly? Note that the variable must explicitly include ‘fop-hyph.jar’: export FOP_HYPHENATION_PATH=/path/to/my/fop-hyph.jar Just setting the directory won’t work. Tried that... still doesn't work. You can have a look at the following page for help: http://offo.sourceforge.net/hyphenation/fop-stable/installation.html (although I’ve just noticed that the explanation about FOP_HYPHENATION_PATH is slighty inexact —will need correction.) That's where I looked first. I am thinking that maybe it's due to the way it was packaged by Fedora. I will try to email the person that did the packaging. I have built fop myself... and it is now finding the hyphenation file. Tav -- Vincent HennebertAnyware Technologies http://people.apache.org/~vhennebert http://www.anyware-tech.com Apache FOP Committer FOP Development/Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please help: section labels and other XML woes
Hi Nancy, nancy_b wrote: Hi everybody! Could you please advise me on the following XSL issues? I am using XSLPROC and FOP 0.94 for compiling pdf documents, and I can't cope with two problems: 1) section labels have a dot at the end: for example: 2.2.4. Getting Started - I want to get rid of the dot after 4. 2) I have several parts in my document and each part has its table of contents that displays the parts chapters and their sections. I would like to show only chapters - is it possible? We can’t help you on those issues I’m afraid, because they occur before FOP is even started. This has to do with customizing the XSLT transformation, and FOP only takes the result of this transformation to render it into PDF. It sounds like you are using DocBook? Then you can have a look at the following pages to see how you can customize your transformation: http://docbook.sourceforge.net/release/xsl/current/doc/ http://docbook.sourceforge.net/release/xsl/current/doc/fo/index.html However, if I remember well your first issue will be slightly more complicated to address. It has already been mentioned on the docbook-apps mailing list, so try to search in the archives: http://docbook.org/help At any rate the docbook-apps list is the right one for any question related to DocBook customization. If you’re using something else than DocBook, then you will have to figure out how to get help for this particular documentation system. HTH, Vincent -- Vincent HennebertAnyware Technologies http://people.apache.org/~vhennebert http://www.anyware-tech.com Apache FOP Committer FOP Development/Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Asian Fonts - Please see the attachement
Hi, I am using FOP 0.20.5 and i have a problem with korean fonts. The fonts are getting stored the right way in the DB but when i am printing as a PDF they are not getting displayed properly.Please find the output PDF attached. Can somebody give me some solutions for this. I cannot use Asian specific fonts because the same FO is going to be used across all languages!!! Thanks Regards, Rakesh Kumar S CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS*** korean.pdf Description: korean.pdf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP .94 Fonts
Ok I did that and it seems to work. Is there anyway that I can disable this cache? Pascal Sancho wrote: Hi, -Message d'origine- De : zachary Dains [mailto:[EMAIL PROTECTED] Envoyé : jeudi 22 mai 2008 00:49 I have set up some font metrics for my own custom TrueType font and trying to get fop to read it. As soon as I specify a config file via -c I get this error when I try and render a pdf. SEVERE: Exception java.io.FileNotFoundException: /var/www/.fop/fop-fonts.cache NOTE: I am using the example fop.xconf file as my config without any changes, however this issue still occurs even when I put my own changes in the file. Any ideas? FOP 0.9x create a cache file to store some fonts data. Perhaps your appli has not write access to /var/www/.fop/fop-fonts.cache Pascal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/FOP-.94-Fonts-tp17386501p17406861.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: Named destination: hyperlink to target in external PDF jumps to first page
Andreas Delmelle andreas.delmelle at telenet.be writes: On May 21, 2008, at 17:26, John Brown wrote: 2) Is there a way to specify a relative path (current directory) with file:// syntax? file:f2.pdf does not work. snip/ Depending on the answer to my above question, you could try: file://./f2.pdf#hello HTH! Cheers Andreas I got a different error.when I clicked the hyperlink, it immediately displayed Timeout on server. Anyway, a post in this mailing-list (http://article.gmane.org/gmane.text.xml.fop.user/25889) says that file: urls are always absolute, so it seems that I am out of luck. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Asian Fonts - Please see the attachement
On Thursday 22 May 2008 23:03:58 Rakesh Kumar S wrote: Hi, I am using FOP 0.20.5 and i have a problem with korean fonts. The fonts are getting stored the right way in the DB but when i am printing as a PDF they are not getting displayed properly.Please find the output PDF attached. Can somebody give me some solutions for this. I cannot use Asian specific fonts because the same FO is going to be used across all languages!!! I would suggest using Arial Unicode, or some other font which covers a larger subset of Unicode blocks. This is my main beef with FOP too, that it can't handle font substitution at a per-character level, using Java's (or the OS's) rules. Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]