Re: AW: Generate Black and White PDF's
Matthias Müller wrote: hi again ;-) Ok, maybe i didn't expressed my needs correctly. At the moment i generate PDF files using FOP. This PDF files are colored. What i need now is a way to tell my FOP Serializer to make the same output in gray scales, WITHOUT changing the color properties of each colored block. Got Me ;-) So, basically, you want the same as what happens when you print anything that has colored to a gray-scale printer, right? What you need is two FOP files, of course, and you XSLT process (I assume you use XSLT for getting your FOP files, but I can't tell for sure of course) is best split in two phases (or, if you can use the exslt:node-set extension in xslt 1.0, or if you use xslt 2.0, you can use temporary trees), where the first phase is your colored transform and the second phase calculates the gray scales from this (using, of course, an modified identity transformation that only changes the attributes with color information). Google a bit around and you will find plenty of algorithms for getting from color to gray scale. An idea to get the all properties that have color information: xsl:template match=@*[starts-with(., 'rgb(') or starts-with(., '#') or starts-with('cmyk(')] xsl:attribute name={name()} xsl:call-template name=color-to-bw xsl:with-param name=color-value select=. / /xsl:call-template /xsl:attribute /xsl:template Good luck coding! -- Abel Braaksma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem inserting a BMP image.
Hi, I am trying to insert a bitmap image into my pdf document using fo:external-graphic in my style sheet. This works fine with most bmp's I try to insert but when I try and insert a bmp representation of a ChartFX chart I get the following error. SEVERE: Image () has 200 which is not a supported BMP format. I am using FOP 0.93. Any advice or guidance would be greatly appreciated. -- Trevor Keast Client Server Specialists Inc. Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rendering ZWJ (x200D) for Devanagari joints.
On Monday 23 April 2007 22:13, Matt P. wrote: Hello, I am trying to produce a pdf document in Sanskrit based on a docbook source. I use Xalan (with -p body.font.family 'chandas') to generate an fo file, as well as an html, and then fop to convert the fo into pdf. The html file seems to be correct, in that they render the following characters as a joint character: #x093F;#x0936;#x094D;#x091A; (see fop.png, which is the fo file seen with Firefox in Linux). The pdf file, however, doesn't seem to be correct. (see pdf.png) I would appreciate any help on the topic. Matt, sorry but fop doesn't support advanced unicode features like like normalization, glyph merging and substitution, etc.. Any help to improve that area would be most welcome. BTW, when I look at the fo in firefox (Linux and Windows) I get a display much more similar to the pdf.png than your fop.png. Manuel Thanks, Matt Note: (1) I use fop-0.93 on a Linux 2.6.20 64bit (gentoo), with sun-jdk-1.5.0.11 (2) I have registered the chandas.ttf (see http://www.sanskritweb.org/cakram/) with fop: font metrics-url=file:///usr/local/fop/conf/chandas.xml kerning=yes embed-url=file:///usr/local/share/fonts/devanagari/chandas.ttf font-triplet name=chandas style=normal weight=normal/ /font (3) Running fop `/usr/local/fop/fop -c /usr/local/fop/conf/fop.xconf utf8.fo -pdf utf8.pdf` produces several warnings: [EMAIL PROTECTED] ~ $ /usr/local/fop/fop -c /usr/local/fop/conf/fop.xconf utf8.fo -pdf utf8.pdf Apr 23, 2007 10:06:27 AM org.apache.fop.apps.FopFactory initUserConfig INFO: Source resolution set to: 72.0dpi (px2mm=0.3528) Apr 23, 2007 10:06:27 AM org.apache.fop.apps.FopFactory initUserConfig INFO: Default page-height set to: 11in Apr 23, 2007 10:06:27 AM org.apache.fop.apps.FopFactory initUserConfig INFO: Default page-width set to: 8.26in Apr 23, 2007 10:06:27 AM org.apache.fop.apps.FopFactory getBaseURLfromConfig INFO: base set to: file:/home/matt/./ Apr 23, 2007 10:06:27 AM org.apache.fop.apps.FOUserAgent configure INFO: Target resolution set to: 72.0dpi (px2mm=0.3528) Apr 23, 2007 10:06:29 AM org.apache.fop.hyphenation.Hyphenator getHyphenationTree SEVERE: Couldn't find hyphenation pattern en Apr 23, 2007 10:06:29 AM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'chandas,normal,700' not found. Substituting with 'chandas,normal,400'. (4) You can find the following files: http://www.area403.org/utf8.xml (docbook source) http://www.area403.org/utf8.fo (Xalan output w/ fo/docbook.xsl (1.70.1)) http://www.area403.org/utf8.pdf (fop output) http://www.area403.org.utf8.html (Xalan output w/ html/docbook.xsl (1.70.1)) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
(Postscript) transformation of block-container
Gentlepeople, Does anyone know how I could apply a postscript transformation on the content of a block-container. What I currently do is render the container content to png and then use svg to do the transformation. I would however like to keep the content as text and have not found a way to achieve that. The basic use case is arbitrary rotation of (fop formatted) text blocks, but scaling and skewing might be nice to have as well. Any guidance, as always, most warmly welcomed! Peter -- View this message in context: http://www.nabble.com/%28Postscript%29-transformation-of-block-container-tf3632392.html#a10142589 Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Add Image Behind text to AWT preview
Hi all; Is there a way to add a Image behind text (a kind of background image) to AWT preview? Thanks /Harshini