fo:inline and fo:list-block
I would like to ask if the fo:inline could be the parent of fo:list-block? -- View this message in context: http://www.nabble.com/fo%3Ainline-and-fo%3Alist-block-tp15849840p15849840.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: Default font FOP and Adobe
Yes I've seen the document properties font list I just could not be sure if these fonts are set because of FOP or because of Adobe.Can I also ask something else? (promise it will be the last:) ) I've seen in the document properties font list that when the fonts are not embedded but are referenced the encoding is ANSI. while when there are embedded the encoding is Identity-H (and the true type is CID). The thing is that with ANSI some characters (e.g. greek) are substitued wrongly. Is there any way to control this by Fop.?It is important for me to use fonts by reference. Thanks again.. Jeremias Maerki-2 wrote: I'm sorry Juanita, but we can probably spend the whole day documenting and someone might still find some little detail missing. Everyone can easily find out what font is used for any by looking at the fonts list in Acrobat Reader's Document Properties dialog. I'm going to add this missing piece to our documentation right now. BTW, any is not mapped to Times New Roman, but to Times Roman. I don't know if there's a difference between the two. Probably not, nowadays, since Adobe maps Times Roman to Times New Roman in recent versions of Acrobat Reader. They also map Helvetica to Arial and there definitely is a difference there. Jeremias Maerki On 08.11.2007 08:36:12 juanita wrote: Yes I do have control over the font family. However I wanted to know what is happening if the font family label stays empty.So it is replaced by default by Times New Roman. So when in the console I see something like Verdana not found, substituing with any, 200, ...) this any is Times New Roman? However I can't find anywhere in the Apache FOP page that the default font is Times New Roman... Jeremias Maerki-2 wrote: No, FOP uses Times. It has been so since I joined the project. Shrug. But you have control over the font-family property, right? Jeremias Maerki On 07.11.2007 15:50:22 juanita wrote: I have an .xsl file that creates a *.fo file and then there is the generation of pdf. When I use a name for the font that does not exist in the configuration file, the pdf is created with default font Times New Roman. Isn't Helvetica the default font for FOP? I am using fop 0.94. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Default-font-FOP-and-Adobe-tf4765156.html#a13642893 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: Problem with Times New Roman and fop 0.94
Since metrics-url must be removed, what happens when the fonts in pdf must be in reference and not embedded.Then the will complain that nor embed-url neither metrics-url attribute exists. Jeremias Maerki-2 wrote: Since you're on FOP 0.94, please try removing the metrics-url attributes from your elements. The font metrics files shouldn't be necessary anymore for almost all cases since 0.94. Jeremias Maerki On 07.11.2007 11:20:58 juanita wrote: I am using fop 0.94 and I want to generate a pdf with Times New Roman. In my configuration file I have: font-triplet name=times style=normal weight=normal/ font-triplet name=times style=normal weight=bold/ font-triplet name=times style=italic weight=normal/ font-triplet name=times style=italic weight=bold/ The metrics files (xml) are taken from the fop trunk and the ttf files are the ones I use to have for fop. However I am getting the following exception: java.lang.RuntimeException: Malformed width in metric file: null at org.apache.fop.fonts.LazyFont.load(LazyFont.java:130) at org.apache.fop.fonts.LazyFont.getAscender(LazyFont.java:20 at org.apache.fop.fonts.Font.getAscender(Font.java:83) I think that this is caused when fop is trying to read the 'wdt' attribute from the xml file which indeed does not exist. This attribute existed in the previous metric xml file I had(for fop 0.93) however when I am using that xml file I have the following exception: java.lang.RuntimeException: Missing metrics-version attribute - please regenerate the font metrics file with a more recent version of FOP at org.apache.fop.fonts.LazyFont.load(LazyFont.java:130) Any clues? Thank you... -- View this message in context: http://www.nabble.com/Problem-with-Times-New-Roman-and-fop-0.94-tf4763781.html#a13624523 Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problem-with-Times-New-Roman-and-fop-0.94-tf4763781.html#a13626362 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: Default font FOP and Adobe
Yes I do have control over the font family. However I wanted to know what is happening if the font family label stays empty.So it is replaced by default by Times New Roman. So when in the console I see something like Verdana not found, substituing with any, 200, ...) this any is Times New Roman? However I can't find anywhere in the Apache FOP page that the default font is Times New Roman... Jeremias Maerki-2 wrote: No, FOP uses Times. It has been so since I joined the project. Shrug. But you have control over the font-family property, right? Jeremias Maerki On 07.11.2007 15:50:22 juanita wrote: I have an .xsl file that creates a *.fo file and then there is the generation of pdf. When I use a name for the font that does not exist in the configuration file, the pdf is created with default font Times New Roman. Isn't Helvetica the default font for FOP? I am using fop 0.94. Thank you... -- View this message in context: http://www.nabble.com/Default-font-FOP-and-Adobe-tf4765156.html#a13628554 Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Default-font-FOP-and-Adobe-tf4765156.html#a13642496 Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fop null pointer exception and tiff image
When I am trying to use the xsl:fo processor for a tiff Image I get the following exception: java.lang.NullPointerException at org.apache.fop.image.TIFFImage.decodeImage(TIFFImage.java:77) at org.apache.fop.image.XmlGraphicsCommonsImage.loadDimensions(XmlGraphicsCommonsImage.java:78) I already read the existing related issue but I do not want to add this patch I want to use fop.jar as it is. I am using java 1.5 and fop 0.93 Any suggestions?Or at least any clue of what this exception means? Thanking you in advance. -- View this message in context: http://www.nabble.com/Fop-null-pointer-exception-and-tiff-image-tf4757169.html#a13603878 Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Math and fop 0.93
I am using fop 0.93 and I want to be able to display a MathML object in the generated pdf. I read that I can use JEuclid jar for this reason. I download jeuclid-fop-3.0.1.jar for this reason and added in the lib directory of fop but there is no change. Is this version correct or it only aplies for fop 0.94? I use a fo.xsl that generates the fo.fo from an html and this fo.fo is then generates a pdf. the MathMl exists in the html in an tag and in the fo.xsl I use the fo:external-graphic.. ...Any clues? Thank you... -- View this message in context: http://www.nabble.com/Math-and-fop-0.93-tf4757170.html#a13603879 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: Package messaging is missing from fop 0.93
Ok, however I still cannot find a solution for eliminating fop debugging and I tried all the suggested solutions. I even added the log4j.logger.org.apache.fop = FATAL in the log4j.properties in the oc4j directory but no luck. Any clue? Jeremias Maerki-2 wrote: A direct connection between logging and FOP isn't necessary anymore like it was with FOP 0.20.5. We simply use Commons Logging and leave the configuration of the user's preferred logging subsystem to the user. More info here: http://wiki.apache.org/xmlgraphics-fop/HowTo/SetupJDK14Logging http://jakarta.apache.org/commons/logging/commons-logging-1.0.4/docs/guide.html On 16.07.2007 10:42:05 juanita wrote: Ok I set the jar correctly in the classpath and now in the class where I initiate the fop and specifically the fopFactory I am doing the following: logFactory = LogFactory.getFactory(); logFactory.setAttribute(level, fatal); however again I see all the fop messages. Shouldn't I connect fop with logFactory in a way and if yes how can I do that? snip/ Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Package-messaging-is-missing-from-fop-0.93-tf4028223.html#a11670310 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: Package messaging is missing from fop 0.93
Ok I set the jar correctly in the classpath and now in the class where I initiate the fop and specifically the fopFactory I am doing the following: logFactory = LogFactory.getFactory(); logFactory.setAttribute(level, fatal); however again I see all the fop messages. Shouldn't I connect fop with logFactory in a way and if yes how can I do that? cbowditch wrote: juanita wrote: I am using oc4j as an application server and the logger used is java.util.logging.Logger When I am trying to use org.apache.commons.logging.LogFactory I get: an 'org.apache.commons.logging does not exist' error. That means the file commons-logging-1.0.4.jar is not in the classpath of your Application server. snip/ Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Package-messaging-is-missing-from-fop-0.93-tf4028223.html#a11611175 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: Package messaging is missing from fop 0.93
However firstly in the fop.jar of version 0.93 there is no org.apache.commons.logging.LogFactory class. and secondly when you say that I should know the logging implementation that is installed in my environment what do you mean? J.Pietschmann wrote: juanita wrote: I am using fop 0.93 and I would like to use the quiet mode so as not to have all these debugs in my console. The fop transformation is done automatically and not through a command so using -q in fop.bat it is not suitable for me. In fop.020.5 I could use MessageHandler.setQuite(true) to achieve what I wanted. However in fop 0.93 this class is not included. The interface has changed significantly. FOP now uses a consistent logging interface. Unfortunately, this may require you to know which logging implementation is installed in your environment. You can try to call the static method org.apache.commons.logging.LogFactory.setAttribute(level,fatal) which might achieve what you want. This will still show you fatal errors. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Package-messaging-is-missing-from-fop-0.93-tf4028223.html#a11578386 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: Package messaging is missing from fop 0.93
I am using oc4j as an application server and the logger used is java.util.logging.Logger When I am trying to use org.apache.commons.logging.LogFactory I get: an 'org.apache.commons.logging does not exist' error. cbowditch wrote: juanita wrote: However firstly in the fop.jar of version 0.93 there is no org.apache.commons.logging.LogFactory class. That class isn't in FOP.jar but it is in commons-logging-1.0.4.jar which is distributed with FOP in the lib sub directory. and secondly when you say that I should know the logging implementation that is installed in my environment what do you mean? Commons Logging is designed to work with a variety of other logging providers, e.g. log4J and JDK logging. If you are deploying FOP into an Application Server, e.g. JBoss, then you will know what logging framework is provided with your Application Server and how to configure it. If you don't then seek local help on how to configure logging in your environment. If you using FOP as a standalone application on JDK 1.4 and above I think JDK logging is used and the property that J.Pietschmann gave you can be used to control the log level: org.apache.commons.logging.LogFactory.setAttribute(level,fatal) Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Package-messaging-is-missing-from-fop-0.93-tf4028223.html#a11580436 Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Package messaging is missing from fop 0.93
I am using fop 0.93 and I would like to use the quiet mode so as not to have all these debugs in my console. The fop transformation is done automatically and not through a command so using -q in fop.bat it is not suitable for me. In fop.020.5 I could use MessageHandler.setQuite(true) to achieve what I wanted. However in fop 0.93 this class is not included. Does anybody knows which is the equivalent class in 0.93 where I could set quiet mode equal to true. Thanking you in advance -- View this message in context: http://www.nabble.com/Package-messaging-is-missing-from-fop-0.93-tf4028223.html#a11442342 Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]