Re: FOP 1.0 -- some CGM graphics are not printing
Thank you for your reply! This is something that someone else set up and now I get to figure out how it works because I am running into that problem of some cgm graphics not printing. I've found that we use http://jcgm.sourceforge.net/index.html and http://xmlgraphics.apache.org/commons/ in relation to printing graphics. But I don't quite yet completely understand how they work (or work together). Any advice is greatly appreciated, thank you! -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-1-0-some-CGM-graphics-are-not-printing-tp36191p36214.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
FOP 1.0 -- some CGM graphics are not printing
We have been using Apache FOP to create pdf files from xml generated from our database, customized xsl stylesheets, and they often include graphics. These graphics will usually be jpg, tif, or cgm. Some, but not all CGM files will show up in the print. We have a workaround of converting them to .tif to be able to print them, but would like to not have to do that conversion. What restrictions are there regarding printing cgm graphic files? Please let me know if more info is needed, thanks! -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-1-0-some-CGM-graphics-are-not-printing-tp36191.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fonts in config file
I would gladly do that if it were an option, but the file that has fo:inline font-size=8pt font-family=Symbol•/fo:inline is one that is given to me as is, not one I can modify. Is there a way to tell it to use a different font if it encounters font-family=Symbol? I've tried going here http://xmlgraphics.apache.org/fop/1.0/fonts.html#substitution http://xmlgraphics.apache.org/fop/1.0/fonts.html#substitution but I can't seem to get it to /do/ anything. lmpmbernardo wrote: Arial also has a bullet. Why not just use that since you already get the Ohm symbol from Arial? On 4/16/12 9:56 PM, froglander wrote: Thank you very much for that information. Would there be a way (and I've tried using the substitutions but with no luck so I assume I am doing something wrong) to tell it to use a different font other than the operating system Symbol font? cbowditch wrote: On 12/04/2012 14:00, froglander wrote: If I haveauto-detect / in the userconfig.xml file this line fo:inline font-size=8pt font-family=Symbol•/fo:inline Ends up displaying as a # symbol in the resulting pdf file print. If I takeauto-detect / out of the userconfig.xml file, then the above line works but the following line does not. That's because there are 2 version of the font named Symbol; The Base 14 font Symbol that is included with FOP by default. That is the version used whenauto-detect/ is absent from the fop.xconf file and the symbol.ttf file installed in the operating system. The bullet character is not present in the Operating System version of Symbol or at least its accessed via a different Unicode reference. fo:inline font-size=11pt font-family=Arial, sans-serifΩ/fo:inline Arial is not available as part of the Base 14 fonts, so you must register it in the fop.xconf. Sinceauto-detect/ adds every font installed in the Operating System I suggest you manually add individual fonts that you wish to use (such as Arial) using the element as described in [1] Thanks, Chris [1] http://xmlgraphics.apache.org/fop/1.0/fonts.html#register Is any more information needed? I need this to be able to show bulleted lists as well as possible 'special' characters. Thanks! froglander wrote: In this case it is using te symbol font for the bullets. Rob Sargent-4 wrote: Not all fonts have bullets. Which are you using? rjs On 04/11/2012 02:34 PM, froglander wrote: I am using FOP 1.0 and am having difficulty getting bullets and symbols to display correctly. I have found that if I take theauto-detect /the bullets for the bulleted list (rich text format) will show, but them some other symbols (like the Ohm symbol, etc) show as #. If I keep theauto-detect /in, the bulleted list shows as # symbols, but the Ohm symbol, etc display correctly. Is something missing for the fonts? Thanks! - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- View this message in context: http://old.nabble.com/Fonts-in-config-file-tp33671500p33701165.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fonts in config file
So is there no way to leave the auto-detect in there in case someone wants to use a random font and just tell FOP to use a different font for Symbol? lmpmbernardo wrote: Try to add something like this to the fonts element of your renderer. So for PDF that would be the fonts element inside renderer mime=application/pdf. font-triplet name=Arial style=normal weight=normal/ font-triplet name=ArialMT style=normal weight=normal/ This with no auto-detect means you get the default FOP Symbol for the bullet, and you get the Ohm from the Arial font configured above. Make sure that the embed-url points to your local Arial.ttf file. -- View this message in context: http://old.nabble.com/Fonts-in-config-file-tp33671500p33702176.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fonts in config file
Yes, thank you, the information from lmpmbernardo seems to have done what I was looking for. I had thought it was a general useage question, I was trying to find out how to substitute one font with the glyphs needed (such as a bullet) for one that doesn't have those. The other details came out as I was trying to better describe my question, I apologize if I did something wrong. Glenn Adams-2 wrote: beg pardon, but that's an operational problem on your end, not FOP; you need to work with your FO content provider to fix it, not on this ML... of course, if you have a general usage question, please do pose it here i believe luis and chris have addressed your questions On Tue, Apr 17, 2012 at 6:05 AM, froglander kristina.here...@trax.aerowrote: I would gladly do that if it were an option, but the file that has fo:inline font-size=8pt font-family=Symbol•/fo:inline is one that is given to me as is, not one I can modify. Is there a way to tell it to use a different font if it encounters font-family=Symbol? I've tried going here http://xmlgraphics.apache.org/fop/1.0/fonts.html#substitution http://xmlgraphics.apache.org/fop/1.0/fonts.html#substitution but I can't seem to get it to /do/ anything. lmpmbernardo wrote: Arial also has a bullet. Why not just use that since you already get the Ohm symbol from Arial? On 4/16/12 9:56 PM, froglander wrote: Thank you very much for that information. Would there be a way (and I've tried using the substitutions but with no luck so I assume I am doing something wrong) to tell it to use a different font other than the operating system Symbol font? cbowditch wrote: On 12/04/2012 14:00, froglander wrote: If I haveauto-detect / in the userconfig.xml file this line fo:inline font-size=8pt font-family=Symbol•/fo:inline Ends up displaying as a # symbol in the resulting pdf file print. If I takeauto-detect / out of the userconfig.xml file, then the above line works but the following line does not. That's because there are 2 version of the font named Symbol; The Base 14 font Symbol that is included with FOP by default. That is the version used whenauto-detect/ is absent from the fop.xconf file and the symbol.ttf file installed in the operating system. The bullet character is not present in the Operating System version of Symbol or at least its accessed via a different Unicode reference. fo:inline font-size=11pt font-family=Arial, sans-serifΩ/fo:inline Arial is not available as part of the Base 14 fonts, so you must register it in the fop.xconf. Sinceauto-detect/ adds every font installed in the Operating System I suggest you manually add individual fonts that you wish to use (such as Arial) using the element as described in [1] Thanks, Chris [1] http://xmlgraphics.apache.org/fop/1.0/fonts.html#register Is any more information needed? I need this to be able to show bulleted lists as well as possible 'special' characters. Thanks! froglander wrote: In this case it is using te symbol font for the bullets. Rob Sargent-4 wrote: Not all fonts have bullets. Which are you using? rjs On 04/11/2012 02:34 PM, froglander wrote: I am using FOP 1.0 and am having difficulty getting bullets and symbols to display correctly. I have found that if I take theauto-detect /the bullets for the bulleted list (rich text format) will show, but them some other symbols (like the Ohm symbol, etc) show as #. If I keep theauto-detect /in, the bulleted list shows as # symbols, but the Ohm symbol, etc display correctly. Is something missing for the fonts? Thanks! - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- View this message in context: http://old.nabble.com/Fonts-in-config-file-tp33671500p33701165.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- View this message in context: http://old.nabble.com/Fonts-in-config-file-tp33671500p33702897.html Sent from the FOP - Users mailing list archive at Nabble.com
Re: Fonts in config file
Thank you, that works brilliantly. I had been trying to do it using the substitution option I had seen but with no success. Glenn Adams-2 wrote: no i was not saying you did anything wrong; sorry if i gave that impression; you can manually configure font substitution by adding a font-triplet to your FOP configuration file that maps the font family, style, weight triplet to a specific concrete font file, e.g., you could specify renderers renderer mime=application/pdf ... fonts font-triplet name=Symbol style=normal weight=normal/ /fonts ... /renderer /renderers this is one way you could circumvent the use of specific fonts within the FO input file. however, I would suggest you simply change the input FO file to use the desired font directly. -- View this message in context: http://old.nabble.com/Fonts-in-config-file-tp33671500p33703597.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fonts in config file
Thank you very much for that information. Would there be a way (and I've tried using the substitutions but with no luck so I assume I am doing something wrong) to tell it to use a different font other than the operating system Symbol font? cbowditch wrote: On 12/04/2012 14:00, froglander wrote: If I haveauto-detect / in the userconfig.xml file this line fo:inline font-size=8pt font-family=Symbol•/fo:inline Ends up displaying as a # symbol in the resulting pdf file print. If I takeauto-detect / out of the userconfig.xml file, then the above line works but the following line does not. That's because there are 2 version of the font named Symbol; The Base 14 font Symbol that is included with FOP by default. That is the version used when auto-detect/ is absent from the fop.xconf file and the symbol.ttf file installed in the operating system. The bullet character is not present in the Operating System version of Symbol or at least its accessed via a different Unicode reference. fo:inline font-size=11pt font-family=Arial, sans-serifΩ/fo:inline Arial is not available as part of the Base 14 fonts, so you must register it in the fop.xconf. Since auto-detect/ adds every font installed in the Operating System I suggest you manually add individual fonts that you wish to use (such as Arial) using the element as described in [1] Thanks, Chris [1] http://xmlgraphics.apache.org/fop/1.0/fonts.html#register Is any more information needed? I need this to be able to show bulleted lists as well as possible 'special' characters. Thanks! froglander wrote: In this case it is using te symbol font for the bullets. Rob Sargent-4 wrote: Not all fonts have bullets. Which are you using? rjs On 04/11/2012 02:34 PM, froglander wrote: I am using FOP 1.0 and am having difficulty getting bullets and symbols to display correctly. I have found that if I take theauto-detect / the bullets for the bulleted list (rich text format) will show, but them some other symbols (like the Ohm symbol, etc) show as #. If I keep theauto-detect / in, the bulleted list shows as # symbols, but the Ohm symbol, etc display correctly. Is something missing for the fonts? Thanks! - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- View this message in context: http://old.nabble.com/Fonts-in-config-file-tp33671500p33692114.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fonts in config file
If I have auto-detect / in the userconfig.xml file this line fo:inline font-size=8pt font-family=Symbol•/fo:inline Ends up displaying as a # symbol in the resulting pdf file print. If I take auto-detect / out of the userconfig.xml file, then the above line works but the following line does not. fo:inline font-size=11pt font-family=Arial, sans-serifΩ/fo:inline Is any more information needed? I need this to be able to show bulleted lists as well as possible 'special' characters. Thanks! froglander wrote: In this case it is using te symbol font for the bullets. Rob Sargent-4 wrote: Not all fonts have bullets. Which are you using? rjs On 04/11/2012 02:34 PM, froglander wrote: I am using FOP 1.0 and am having difficulty getting bullets and symbols to display correctly. I have found that if I take theauto-detect / the bullets for the bulleted list (rich text format) will show, but them some other symbols (like the Ohm symbol, etc) show as #. If I keep theauto-detect / in, the bulleted list shows as # symbols, but the Ohm symbol, etc display correctly. Is something missing for the fonts? Thanks! - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- View this message in context: http://old.nabble.com/Fonts-in-config-file-tp33671500p33675118.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Fonts in config file
I am using FOP 1.0 and am having difficulty getting bullets and symbols to display correctly. I have found that if I take the auto-detect / the bullets for the bulleted list (rich text format) will show, but them some other symbols (like the Ohm symbol, etc) show as #. If I keep the auto-detect / in, the bulleted list shows as # symbols, but the Ohm symbol, etc display correctly. Is something missing for the fonts? Thanks! -- View this message in context: http://old.nabble.com/Fonts-in-config-file-tp33671500p33671500.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fonts in config file
In this case it is using te symbol font for the bullets. Rob Sargent-4 wrote: Not all fonts have bullets. Which are you using? rjs On 04/11/2012 02:34 PM, froglander wrote: I am using FOP 1.0 and am having difficulty getting bullets and symbols to display correctly. I have found that if I take theauto-detect / the bullets for the bulleted list (rich text format) will show, but them some other symbols (like the Ohm symbol, etc) show as #. If I keep theauto-detect / in, the bulleted list shows as # symbols, but the Ohm symbol, etc display correctly. Is something missing for the fonts? Thanks! - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- View this message in context: http://old.nabble.com/Fonts-in-config-file-tp33671500p33671951.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org