[no subject]
!DOCTYPE root-element SYSTEM URI OR !DOCTYPE root-element [ DTD-content ] Regards, Roland Neilands Analyst/Programmer Pulse Mining Systems Pty Ltd (w) +612 4933 3300 (f) +612 4933 6732 (e) [EMAIL PROTECTED] This e-mail is solely for the use of the intended recipient and may contain information which is confidential or privileged. Unauthorised use of its contents is prohibited. If you have received this e-mail in error, please notify the sender immediately via return e-mail and then delete the original e-mail. -Original Message- From: Mihael Knezevic [mailto:[EMAIL PROTECTED] Sent: Tuesday, 2 April 2002 11:22 PM To: [EMAIL PROTECTED] Subject: OFF-TOPIC: dtd in xml-file hi, sorry for this off-topic question but i don't know where to post it elsewhere: i want to have the dtd in the xml-file. what do i have to write after doctype !DOCTYPE Bericht SYSTEM \ker.dtd\ please help. thanx mk
[no subject]
Include this namespace: xmlns:java=http://xml.apache.org/xslt/java; exclude-result-prefixes=java See use of java in select atttributes : xsl:template name=todayis xml:space=preserve xsl:variable name=fmt select=java:java.text.SimpleDateFormat.new('-MMM-dd')/ xsl:variable name=now select=java:java.util.Date.new()/ xsl:value-of select=java:format($fmt,$now)/. /xsl:template - Original Message - From: Marina Pérel To: [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 10:36 AM Subject: xsl:script and FOP Hi! I would like to know if FOP implements the tag xsl:script because i 'd like to insert into my XSL steelsheet some javascript's code. My stylesheet looks like : xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xsl:script language=javascript implements-prefix=js function impresion(i){return i;}; /xsl:script . /xsl:stylesheet When i launch FOP i have this error = ERROR : null Does anybody have ideas ? Thanks a lot in advance for your answers Marina
Cannot Copy Text from PDF
Greetings, I just came acrosss something, and I'm trying to find out if there is a way around it: When I create a PDF with FOP, everything looks fine. However, I am unable to copy selections of text from the PDF and paste it into a Notepad or any other text editor. When I create a PDF from Word (without using FOP), I do not have this problem. Can anyone offer me advice? Thanks, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot Copy Text from PDF
David 'Dox' Shevitz wrote: When I create a PDF with FOP, everything looks fine. However, I am unable to copy selections of text from the PDF and paste it into a Notepad or any other text editor. When I create a PDF from Word (without using FOP), I do not have this problem. This is a known problem with TrueType fonts, documented here: http://xml.apache.org/fop/fonts.html#truetype-metrics under the -enc ansi option. There is no workaround other than using -enc ansi, which limits the characters available in the font. Victor Mote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot Copy Text from PDF
Thank you for such a prompt response. I appreciate it! Victor Mote wrote: David 'Dox' Shevitz wrote: When I create a PDF with FOP, everything looks fine. However, I am unable to copy selections of text from the PDF and paste it into a Notepad or any other text editor. When I create a PDF from Word (without using FOP), I do not have this problem. This is a known problem with TrueType fonts, documented here: http://xml.apache.org/fop/fonts.html#truetype-metrics under the -enc ansi option. There is no workaround other than using -enc ansi, which limits the characters available in the font. Victor Mote - 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]
Favorite Bullet characters
I want to have nested html or powerpoint style bullets. Solid discs, circles, empty squares, solid squares, double greater thans, etc... What are the favorite fonts and character codes for this? Thanks, Siegfried - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbe PCL question
I've been trying an example of generating FO for a PCL printer. I have two printers, a HP 1210 Multifunction and a Canon s820. I get a printer error when I send the pcl stream to the hp and no response from the Canon. I'm guessing that these printers do not support PCL. I researched the HP web site and it says that all laserjet printers support PCL but no mention of deskjets. Am I correct in my thinking that these printer are not compatible with PCL? Is there any java capable solution where a PCL stream can be converted to other formats? Thanks is advance for any help Charles Griswold - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: br in XSLFO
Thanks everybody for the clarification! Got it working! Gang -Original Message- From: Partridge, Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 4:22 PM To: fop-users@xmlgraphics.apache.org Subject: RE: br in XSLFO If you don't want to nest blocks, you can just put a fo:block/ anywhere you would otherwise put a br/. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How can I rotate text for a 90o sidebar?
Nice. I'll check this out. -Lou Rymasz Jacky [EMAIL PROTECTED] To: fop-users@xmlgraphics.apache.org decaux.fr cc: Subject: RE: How can I rotate text for a 90o sidebar? 03/29/2005 03:39 Please respond to fop-users Here a bit of code which scatter each letter of a string into a vertical set of blocks (ie: vertical string): xsl:template name=scatter-string xsl:paramname=text/ xsl:paramname=rotated/ xsl:variable name=lenxsl:value-of select=string-length($text)//xsl:variable !-- Concat the blocks containing each letters -- xsl:value-of disable-output-escaping=yes select=$rotated/ xsl:choose xsl:when test=$len 0 xsl:variable name=vrotated xsl:text lt;fo:blockgt;/xsl:text xsl:value-of select=substring($text,1,1)/ xsl:text lt;/fo:blockgt;/xsl:text /xsl:variable xsl:call-template name=scatter-string xsl:with-param name=text xsl:value-of select=substring($text, 2)/ /xsl:with-param xsl:with-param name=rotated xsl:value-of select=$vrotated/ /xsl:with-param /xsl:call-template /xsl:when xsl:otherwise /xsl:otherwise /xsl:choose /xsl:template I hope this could help ;) Jack -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : lundi 28 mars 2005 15:57 À : fop-users@xmlgraphics.apache.org Objet : RE: How can I rotate text for a 90o sidebar? The following code prints top to bottom, but the letters are stacked. It's a starting point. svg:text x=1 y=1 writing-mode=tb glyph-orientation-vertical=0 YOUR TEXT HERE /svg:text -Lou Andreas L. DelmelleTo: fop-users@xmlgraphics.apache.org [EMAIL PROTECTED] cc: ndora.beSubject: RE: How can I rotate text for a 90o sidebar? 03/27/2005 06:30 Please respond to fop-users -Original Message- From: Tommy Reynolds [mailto:[EMAIL PROTECTED] Hi, I'm trying to insert some text into xsl-region-start and I'd like it rotated 90-degrees to you'd have to tilt your head sideways to read it. I think the reference-orientation property is the right approach but it isn't implemented in FOP. Is there a work-around? The only workaround I know of would be to use SVG to draw the rotated text... HTH! Greetz, Andreas - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Creating named anchor spots
I would like to be able to generate a document that has anchor locations that you can jump to from an HTML href like this: href=printables.pdf#Test The names used in internal links like: basic-link internal-destination=Test don't seem to work. How can I generate a marker that will be externally visible? Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Article in JAVAWORLD.
--- Andreas L. Delmelle [EMAIL PROTECTED] wrote: -Original Message- From: Glen Mazza [mailto:[EMAIL PROTECTED] FOP can really do Japanese? I didn't know that. Anyway--well done! I second that. I don't remember personally helping Manoj out, but anyway: Big THANKS for the publicity! It looks like we'll be having even more publicity soon[1]...congratulations Jeremias! [1] http://apachecon.com/2005/EU/html/speakers.html Glen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Creating named anchor spots
William Brogden wrote: I would like to be able to generate a document that has anchor locations that you can jump to from an HTML href like this: href=printables.pdf#Test The names used in internal links like: basic-link internal-destination=Test don't seem to work. How can I generate a marker that will be externally visible? Actually, what you need is something to identify the target, not the link. The basic mechanism is the id property that is available on most objects, but you also need to tell FOP to create a destination: http://xml.apache.org/fop/extensions.html#named-destinations Victor Mote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Current state of Apache FOP?
Not being able to create releases is one thing, a dead project is totally different. I've updated the status page a few days ago: http://xml.apache.org/fop/status.html You're welcome to help improve RTF output. I've played with the idea to release the RTF part of FOP separately until the new layout engine is ready (RTF doesn't need it). That says something about the state of the RTF code. It's not very far from an initial release. But it needs a little work so why don't you just download the source code from CVS and start playing with it? I'll gladly review and apply patches for the RTF handler. On 29.03.2005 09:11:32 Andreas Jung wrote: I am currently evaluating XSL-FO to produce PDF and RTF from XML/XHTML. The Apache FOP project seems to be dead?! Is this impression true? Especially I am looking at the pending RTF support in FOP but the last release seems to be from 2003. Is there something newer? Andreas Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Current state of Apache FOP?
--On Dienstag, 29. März 2005 9:24 Uhr +0200 Jeremias Maerki [EMAIL PROTECTED] wrote: Not being able to create releases is one thing, a dead project is totally different. I've updated the status page a few days ago: http://xml.apache.org/fop/status.html Ok..this makes things clearer :-) You're welcome to help improve RTF output. I've played with the idea to release the RTF part of FOP separately until the new layout engine is ready (RTF doesn't need it). That says something about the state of the RTF code. It's not very far from an initial release. But it needs a little work so why don't you just download the source code from CVS and start playing with it? I'll gladly review and apply patches for the RTF handler. If we should decide to use to FOP for our project (we ship content (XHTML) on CD/DVD on are looking for a solution to provide on-the-fly PDF/RTF generation cross-platform on Windoze and Linux) then I am sure we might support the project with some resources (especially because FOP is open-source and has a liberal license). Andreas pgp5Tehriy7os.pgp Description: PGP signature
RE: How can I rotate text for a 90o sidebar?
Here a bit of code which scatter each letter of a string into a vertical set of blocks (ie: vertical string): xsl:template name=scatter-string xsl:paramname=text/ xsl:paramname=rotated/ xsl:variable name=lenxsl:value-of select=string-length($text)//xsl:variable !-- Concat the blocks containing each letters -- xsl:value-of disable-output-escaping=yes select=$rotated/ xsl:choose xsl:when test=$len 0 xsl:variable name=vrotated xsl:text lt;fo:blockgt;/xsl:text xsl:value-of select=substring($text,1,1)/ xsl:text lt;/fo:blockgt;/xsl:text /xsl:variable xsl:call-template name=scatter-string xsl:with-param name=text xsl:value-of select=substring($text, 2)/ /xsl:with-param xsl:with-param name=rotated xsl:value-of select=$vrotated/ /xsl:with-param /xsl:call-template /xsl:when xsl:otherwise /xsl:otherwise /xsl:choose /xsl:template I hope this could help ;) Jack -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : lundi 28 mars 2005 15:57 À : fop-users@xmlgraphics.apache.org Objet : RE: How can I rotate text for a 90o sidebar? The following code prints top to bottom, but the letters are stacked. It's a starting point. svg:text x=1 y=1 writing-mode=tb glyph-orientation-vertical=0 YOUR TEXT HERE /svg:text -Lou Andreas L. DelmelleTo: fop-users@xmlgraphics.apache.org [EMAIL PROTECTED] cc: ndora.beSubject: RE: How can I rotate text for a 90o sidebar? 03/27/2005 06:30 Please respond to fop-users -Original Message- From: Tommy Reynolds [mailto:[EMAIL PROTECTED] Hi, I'm trying to insert some text into xsl-region-start and I'd like it rotated 90-degrees to you'd have to tilt your head sideways to read it. I think the reference-orientation property is the right approach but it isn't implemented in FOP. Is there a work-around? The only workaround I know of would be to use SVG to draw the rotated text... HTH! Greetz, Andreas - 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: PDF with CMYK
Jeremias Maerki wrote: I'm not sure if iText can really do it. I've never tried. But there are tools out there that can do the conversion. But they may not be free. ok Or re enhancing FOP: Would it make sense to add a CMYKColorFunction and add it to the PropertyParser? (btw, we are using FOP 0.20.5) Thanks Michi On 24.03.2005 12:25:16 Michael Wechner wrote: I am not sure if anyone has tried using iText to change the generated PDF from RGB to CMYK. Would that actually make sense as a hack? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Wechner Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org [EMAIL PROTECTED][EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF with CMYK
Well, that's only a start. You will have to extend the PDF library, the PDFRenderer and possibly the SVG integration, too. And you will have to do a better abstraction of the colors used all over the code because so far everything is designed to deal with RGB only (see datatypes.ColorType for example). Frankly, I don't think it's worth hacking CMYK support into FOP 0.20.5. On 29.03.2005 11:33:12 Michael Wechner wrote: Or re enhancing FOP: Would it make sense to add a CMYKColorFunction and add it to the PropertyParser? (btw, we are using FOP 0.20.5) Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF with CMYK
On 29.03.2005 12:00:12 Michael Wechner wrote: well, the problem is that we use FOP 0.20.5 in production and cannot switch that easily ;-) I can imagine. Would it make more sense to implement CMYK into the HEAD/trunk version (or has this already been done?)? Sure, but only as a long-term solution. Is the HEAD/trunk version ready for a productive environment (whatever that means)? No, CVS HEAD is not ready, yet. I'd suggest you look for a post-processing solution if you need something quickly. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF with CMYK
Jeremias Maerki wrote: Is the HEAD/trunk version ready for a productive environment (whatever that means)? No, CVS HEAD is not ready, yet. I'd suggest you look for a post-processing solution if you need something quickly. alright, thanks very much for your help Michi Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Wechner Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org [EMAIL PROTECTED][EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Current state of Apache FOP?
You may want to take a look at open-source JasperReports -- your stylesheets will not be XSL but the system will still be Java/XML-based. Later, as FOP matures, you can evaluate going back to it, possibly just by changing your stylesheets. I have not worked with this product, however, so am unsure of its quality. Glen --- Andreas Jung [EMAIL PROTECTED] wrote: If we should decide to use to FOP for our project (we ship content (XHTML) on CD/DVD on are looking for a solution to provide on-the-fly PDF/RTF generation cross-platform on Windoze and Linux) then I am sure we might support the project with some resources (especially because FOP is open-source and has a liberal license). Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Fwd: TiffRenderer Anomaly]
Oleg - have you had a chance to look at this issue yet? Bill Oleg Tkachenko wrote: Bill Jordan wrote: Hi - thanks very much for the suggestion, and congratulations on a great product. Unfortunately, when I made the suggested change, it had no effect on the output, which seems puzzling to me. I'm certain that the change was executed, because I set a breakpoint in the code and stepped through it. The imageType came in to the switch statement with a value of TIFF_BILEVEL_BLACK_IS_ZERO, and due to the change in the code, the value of photometricInterpretation was set to 0. Ok, sounds like that's something else. I'll take a look at it this weekend. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
br in XSLFO
Anybody know how can I get a line break like br in HTML? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: br in XSLFO
Gang Li wrote: Anybody know how can I get a line break like br in HTML? Thanks. Putting a linefeed character U+000A in the content should work, but you have to be careful of the properties that affect it, specifically linefeed-treatment=preserve. (I can't remember whether this works in FOP 0.20.5 or not, but I think it does). The other way is to put an empty nested block, fo:block/ where you want the line break, and I am pretty sure that does work. Victor Mote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: br in XSLFO
-Original Message- From: Gang Li [mailto:[EMAIL PROTECTED] Hi, Anybody know how can I get a line break like br in HTML? Thanks. Ending the current fo:block should work fine... Another option would be to insert an explicit line-feed character (numeric character reference #x0A; [*]), although in some cases, this might get converted into a space. I'd go with the first option... I'm guessing, right now, you're trying to do sth like: fo:block some text goes here !-- here you need br / -- some other text /fo:block So, the simplest would be to make it fo:blocksome text goes here/fo:block fo:blocksome other text/fo:block The second option would be fo:blocksome text goes here #x0A; some other text/fo:block HTH! Andreas [*] http://xml.apache.org/fop/fo.html#xml-special-chars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: br in XSLFO
If you don't want to nest blocks, you can just put a fo:block/ anywhere you would otherwise put a br/. -Original Message- From: Gang Li [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 3:00 PM To: fop-users@xmlgraphics.apache.org Subject: br in XSLFO Anybody know how can I get a line break like br in HTML? Thanks. - 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]
Article in JAVAWORLD.
I had written an article about publishing PDF docs on client side using FOP for JAVAWORLD magazine. The editors have approved it and has been published in the March 28 edition of Javaworld.Check the article at http://www.javaworld.com. Its right on the home page. The direct article link is http://www.javaworld.com/javaworld/jw-03-2005/jw-0328-xmlprinting.htmlI have acknowledged the help received from this forum in the CONCLUSION section just above the ABOUT THE AUTHOR section on page 2.Thanks again to all in this group. Without your inputs this wouldn't have been possible..Manoj Nair - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Article in JAVAWORLD.
Good One. On Sun, 27 Mar 2005 23:02:07 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I had written an article about publishing PDF docs on client side using FOP for JAVAWORLD magazine. The editors have approved it and has been published in the March 28 edition of Javaworld. Check the article at http://www.javaworld.com. Its right on the home page. The direct article link is http://www.javaworld.com/javaworld/jw-03-2005/jw-0328-xmlprinting.html I have acknowledged the help received from this forum in the CONCLUSION section just above the ABOUT THE AUTHOR section on page 2. Thanks again to all in this group. Without your inputs this wouldn't have been possible.. Manoj Nair - 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: How can I rotate text for a 90o sidebar?
The following code prints top to bottom, but the letters are stacked. It's a starting point. svg:text x=1 y=1 writing-mode=tb glyph-orientation-vertical=0 YOUR TEXT HERE /svg:text -Lou Andreas L. DelmelleTo: fop-users@xmlgraphics.apache.org [EMAIL PROTECTED] cc: ndora.beSubject: RE: How can I rotate text for a 90o sidebar? 03/27/2005 06:30 Please respond to fop-users -Original Message- From: Tommy Reynolds [mailto:[EMAIL PROTECTED] Hi, I'm trying to insert some text into xsl-region-start and I'd like it rotated 90-degrees to you'd have to tilt your head sideways to read it. I think the reference-orientation property is the right approach but it isn't implemented in FOP. Is there a work-around? The only workaround I know of would be to use SVG to draw the rotated text... HTH! Greetz, Andreas - 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: Article in JAVAWORLD.
FOP wa honto ni Nihongo ga dekimasu ka? Sono jijitsu o shiranakatta desu. Tonikaku, yoku dekimashita! Boku wa Manoj-san no kiji o oishii no rinku[1] ni tashimashita--arigatou! FOP can really do Japanese? I didn't know that. Anyway--well done! I added your article to my del.icio.us links[1]--thanks! Glen [1] http://del.icio.us/gmazza/xsl --- [EMAIL PROTECTED] wrote: - I had written an article about publishing PDF docs on client side using FOP for JAVAWORLD magazine. The editors have approved it and has been published in the March 28 edition of Javaworld. Check the article at http://www.javaworld.com. Its right on the home page. The direct article link is http://www.javaworld.com/javaworld/jw-03-2005/jw-0328-xmlprinting.html I have acknowledged the help received from this forum in the CONCLUSION section just above the ABOUT THE AUTHOR section on page 2. Thanks again to all in this group. Without your inputs this wouldn't have been possible.. Manoj Nair -To unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Article in JAVAWORLD.
-Original Message- From: Glen Mazza [mailto:[EMAIL PROTECTED] snip / FOP can really do Japanese? I didn't know that. Anyway--well done! I second that. I don't remember personally helping Manoj out, but anyway: Big THANKS for the publicity! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I rotate text for a 90o sidebar?
Uttered [EMAIL PROTECTED], spake thus: The following code prints top to bottom, but the letters are stacked. It's a starting point. Cool. Thanks! pgpDDfuXkbM2f.pgp Description: PGP signature
How can I rotate text for a 90o sidebar?
I'm trying to insert some text into xsl-region-start and I'd like it rotated 90-degrees to you'd have to tilt your head sideways to read it. I think the reference-orientation property is the right approach but it isn't implemented in FOP. Is there a work-around? Thanks! pgp95rvH3DOEV.pgp Description: PGP signature
RE: How can I rotate text for a 90o sidebar?
-Original Message- From: Tommy Reynolds [mailto:[EMAIL PROTECTED] Hi, I'm trying to insert some text into xsl-region-start and I'd like it rotated 90-degrees to you'd have to tilt your head sideways to read it. I think the reference-orientation property is the right approach but it isn't implemented in FOP. Is there a work-around? The only workaround I know of would be to use SVG to draw the rotated text... HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A few problems with XSL:FO
Zitat von J.Pietschmann [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: My first problem are fo:markers, which I use to display subtotals in pages. The calculation is correct but a different formatting is not possible! That's a known bug. The marker content is not reparented (as required by the spec) and partly inherits properties from the marker's parents and *no* properties form the retrieve-marker's parents. I'm not sure about possible work-arounds. I suspect you have to put all necessary formatting properties in the marker element. Well that would restrict my project's flexibility but I'm affraid there is no other way. Another problem are links in my resulting PDF document. I have a page with a table with a header and footer. If the footer contains any formatting area and there is a link in the body of the table, the active area of the link (the area where the mouse changes and the hover-area is located) is shifted down and not consistent with the object area, which should represent the link. That's another known problem. No work-arounds. Getting the hotspot into the corretc position in reference areas other than the page body requires some luck. I tried several times to find the problem in the code and failed due to some rather convoluted design aspects. Oh I see, so you are in the FOP developing team? I would like to know if there is any possibility to display the total ammount of pages transformed? FAQ. See http://xml.apache.org/fop/fo.html#fo-total-pages Only a few minutes after I had sent this mail, I found this section in the FOP FAQs -- sorry for the stupid question ;) It's a really smart work-around. A last question: I have embedded the translations from XML to PDF into another Java application, which is a school project. I would like to know, if there is any sample code how to embed direct printing into another application? Have a look at the PrintServlet example, somewhere in the examples directory in the FOP distribution (perhaps only in the source distribution). I've found it: may be I will have some further questions about this example ;) J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thanks for the quick reply!! You helped me a lot! Greetings SeNeTeX -- Ein Service von http://www.networld.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fw: [appfuse-user] ... POJO to PDF Tutorial
FYI...frequent AppFuse contributor Ben Gill has written a FOP--AppFuse tutorial [1]. It's nice to see my favorite and second favorite open source projects described together... :-) Glen - Original Message - From: Matt Raible [EMAIL PROTECTED] To: AppFuse [EMAIL PROTECTED] Sent: Monday, March 21, 2005 7:55 AM Subject: [appfuse-user] Help with MySQL Access Denied and POJO to PDF Tutorial FYI... Ben Gill has been kind enough to put a couple of good howtos together. The first shows how to modify MySQL when you're getting Access Denied errors. http://raibledesigns.com/wiki/Wiki.jsp?page=AssistanceWithAntSetup This article is linked to from the FAQ: http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseSupport#ref-AppFuseSupport-5 The second article shows how to generate a PDF from a POJO using FOP. [1] http://raibledesigns.com/wiki/Wiki.jsp?page=POJOToPDF This article is linked to from the Articles: http://raibledesigns.com/wiki/Wiki.jsp?page=Articles Thanks Ben! Matt - 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]
A few problems with XSL:FO
Hi! I have a few problems with my FO output and I hope somebody can help me! My first problem are fo:markers, which I use to display subtotals in pages. The calculation is correct but a different formatting is not possible! Here is the output sample of one fo:marker: fo:table-cell display-align=before border-left-style=solid border-left-color=#00 border-left-width=1px padding-top=2px padding-bottom=2px padding-left=2px padding-right=2px fo:block fo:marker marker-class-name=14/fo:marker /fo:block fo:block font-family=sans-serif font-size=10pt1/fo:block /fo:table-cell The fo:marker is embedded into a table and therefore into an fo:table-cell. The first block contains the marker, the second one the content of the table-cell. Here is the ouput sample of the fo:retrieve-marker: fo:table-cell text-align=center background-color=#CC border-top-style=solid border-top-color=#00 border-top-width=1px border-bottom-style=solid border-bottom-color=#00 border-bottom-width=1px border-left-style=solid border-left-color=#00 border-left-width=1px border-right-style=solid border-right-color=#00 border-right-width=1px padding-top=10px padding-bottom=10px fo:block font-family=sans-serif font-size=16pt font-weight=bold fo:inline font-family=sans-serif font-size=20pt font-weight=bold fo:retrieve-marker retrieve-position=last-starting-within-page retrieve-boundary=page retrieve-class-name=1/ /fo:inline Report Test - Header! /fo:block /fo:table-cell The retrieve-marker is embedded into an inline element to make different formatting possible. But the problem is, that the retrieved content of the marker doesn't inherit any of the given properties. Is there an error in my sylesheet or is there no possibility to make a different formatting? Another problem are links in my resulting PDF document. I have a page with a table with a header and footer. If the footer contains any formatting area and there is a link in the body of the table, the active area of the link (the area where the mouse changes and the hover-area is located) is shifted down and not consistent with the object area, which should represent the link. I found that the formatting areas of the footer are the problem -- if there is no content in the footer or there is no footer, the link-area is correct, otherwise there is this shift. I hope my description was clear (I am from Austria ;)). I would like to know if there is any possibility to display the total ammount of pages transformed? A last question: I have embedded the translations from XML to PDF into another Java application, which is a school project. I would like to know, if there is any sample code how to embed direct printing into another application? Greetz SeNeTeX -- Ein Service von http://www.networld.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A few problems with XSL:FO
[EMAIL PROTECTED] wrote: My first problem are fo:markers, which I use to display subtotals in pages. The calculation is correct but a different formatting is not possible! That's a known bug. The marker content is not reparented (as required by the spec) and partly inherits properties from the marker's parents and *no* properties form the retrieve-marker's parents. I'm not sure about possible work-arounds. I suspect you have to put all necessary formatting properties in the marker element. Another problem are links in my resulting PDF document. I have a page with a table with a header and footer. If the footer contains any formatting area and there is a link in the body of the table, the active area of the link (the area where the mouse changes and the hover-area is located) is shifted down and not consistent with the object area, which should represent the link. That's another known problem. No work-arounds. Getting the hotspot into the corretc position in reference areas other than the page body requires some luck. I tried several times to find the problem in the code and failed due to some rather convoluted design aspects. I would like to know if there is any possibility to display the total ammount of pages transformed? FAQ. See http://xml.apache.org/fop/fo.html#fo-total-pages A last question: I have embedded the translations from XML to PDF into another Java application, which is a school project. I would like to know, if there is any sample code how to embed direct printing into another application? Have a look at the PrintServlet example, somewhere in the examples directory in the FOP distribution (perhaps only in the source distribution). J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Roadmap for 1.0
Hello I there a Roadmap for FOP 1.0 What is the Status for Redesign / FOA Implementation - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with the FOP website?
Has someone changed the FOP website or is it just me? It looks terrible in FF, and doesn't work at all in IE6 Regards, Roland Neilands Pulse Mining Systems Pty Ltd w +612 49 00 f +612 49 336732 e [EMAIL PROTECTED] This e-mail is solely for the use of the intended recipient and may contain information which is confidential or privileged. Unauthorised use of its contents is prohibited. If you have received this e-mail in error, please notify the sender immediately via return e-mail and then delete the original e-mail. Any views or opinions presented are solely those of the author. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with the FOP website?
We screwed up doing a website update. I think it is fixed now, but it'll take a couple of hours until the sites are synced and you see the results. Sorry for the inconvenience! On 24.03.2005 07:07:06 Roland Neilands wrote: Has someone changed the FOP website or is it just me? It looks terrible in FF, and doesn't work at all in IE6 Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Java's Birthday
Hi All, March 23, 2005 is Java's 10th Anniversary. http://www.javarss.com/java-timeline-10years.html I wish Java Community grows more. Best Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Roadmap for 1.0
This is a question that pops up every few weeks. I took this as an excuse to update the status page on the FOP website (which is now restored again): http://xml.apache.org/fop/status.html And by the way, FOA is an FO editor and has nothing to do with the FOP project, so I can't comment on that. On 24.03.2005 07:03:55 Joern.Karthaus wrote: I there a Roadmap for FOP 1.0 What is the Status for Redesign / FOA Implementation Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fop error
Hello everybody. We use fop.0.20.5 to produce pdf files at our linux server. It works most times. But after some times we got the following error message: [WARNING] table-layout=auto is not supported, using fixed! Xlib: connection to localhost:0.0 refused by server Xlib: No protocol specified java.lang.InternalError: Can't connect to X11 window server using 'localhost:0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.clinit(X11GraphicsEnvironment.java:126) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:130) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62) at sun.awt.motif.MToolkit.clinit(MToolkit.java:70) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:130) at java.awt.Toolkit$2.run(Toolkit.java:712) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703) at java.awt.SystemColor.updateSystemColors(SystemColor.java:417) at java.awt.SystemColor.clinit(SystemColor.java:409) at org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(DefaultSystemColorResolver.java:27) at org.apache.batik.css.value.ColorFactory.init(ColorFactory.java:75) at org.apache.batik.css.value.CommonValueFactoryMap.init(CommonValueFactoryMap.java:39) at org.apache.batik.css.svg.SVGValueFactoryMap.init(SVGValueFactoryMap.java:39) at org.apache.batik.css.svg.SVGValueFactoryMap.init(SVGValueFactoryMap.java:32) at org.apache.batik.dom.svg.SVGDOMImplementation.init(SVGDOMImplementation.java:88) at org.apache.batik.dom.svg.SVGDOMImplementation.clinit(SVGDOMImplementation.java:76) at org.apache.batik.dom.svg.SAXSVGDocumentFactory.init(SAXSVGDocumentFactory.java:66) at org.apache.fop.image.analyser.SVGReader.loadImage(Unknown Source) at org.apache.fop.image.analyser.SVGReader.verifySignature(Unknown Source) at org.apache.fop.image.analyser.ImageReaderFactory.Make(Unknown Source) at org.apache.fop.image.FopImageFactory.Make(Unknown Source) at org.apache.fop.fo.flow.ExternalGraphic.layout(Unknown Source) at org.apache.fop.fo.flow.TableCell.layout(Unknown Source) at org.apache.fop.fo.flow.TableRow.layout(Unknown Source) at org.apache.fop.fo.flow.TableBody.layout(Unknown Source) at org.apache.fop.fo.flow.Table.layout(Unknown Source) at org.apache.fop.fo.flow.Block.layout(Block.java:256) at org.apache.fop.fo.flow.Flow.layout(Unknown Source) at org.apache.fop.fo.flow.Flow.layout(Unknown Source) at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source) at org.apache.fop.apps.StreamRenderer.render(Unknown Source) at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.fop.apps.Driver.render(Unknown Source) at org.apache.fop.apps.Driver.run(Unknown Source) we don't use any svg graphics and a x-server is installed on the system. Does anyone know why the error occurs only sometimes and what we can do? greets thmarx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fop error
we have solved the problem by setting the systemproperty java.awt.headless System.setProperty (java.awt.headless, true); thmarx wrote: Hello everybody. We use fop.0.20.5 to produce pdf files at our linux server. It works most times. But after some times we got the following error message: [WARNING] table-layout=auto is not supported, using fixed! Xlib: connection to localhost:0.0 refused by server Xlib: No protocol specified java.lang.InternalError: Can't connect to X11 window server using 'localhost:0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.clinit(X11GraphicsEnvironment.java:126) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:130) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62) at sun.awt.motif.MToolkit.clinit(MToolkit.java:70) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:130) at java.awt.Toolkit$2.run(Toolkit.java:712) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703) at java.awt.SystemColor.updateSystemColors(SystemColor.java:417) at java.awt.SystemColor.clinit(SystemColor.java:409) at org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(DefaultSystemColorResolver.java:27) at org.apache.batik.css.value.ColorFactory.init(ColorFactory.java:75) at org.apache.batik.css.value.CommonValueFactoryMap.init(CommonValueFactoryMap.java:39) at org.apache.batik.css.svg.SVGValueFactoryMap.init(SVGValueFactoryMap.java:39) at org.apache.batik.css.svg.SVGValueFactoryMap.init(SVGValueFactoryMap.java:32) at org.apache.batik.dom.svg.SVGDOMImplementation.init(SVGDOMImplementation.java:88) at org.apache.batik.dom.svg.SVGDOMImplementation.clinit(SVGDOMImplementation.java:76) at org.apache.batik.dom.svg.SAXSVGDocumentFactory.init(SAXSVGDocumentFactory.java:66) at org.apache.fop.image.analyser.SVGReader.loadImage(Unknown Source) at org.apache.fop.image.analyser.SVGReader.verifySignature(Unknown Source) at org.apache.fop.image.analyser.ImageReaderFactory.Make(Unknown Source) at org.apache.fop.image.FopImageFactory.Make(Unknown Source) at org.apache.fop.fo.flow.ExternalGraphic.layout(Unknown Source) at org.apache.fop.fo.flow.TableCell.layout(Unknown Source) at org.apache.fop.fo.flow.TableRow.layout(Unknown Source) at org.apache.fop.fo.flow.TableBody.layout(Unknown Source) at org.apache.fop.fo.flow.Table.layout(Unknown Source) at org.apache.fop.fo.flow.Block.layout(Block.java:256) at org.apache.fop.fo.flow.Flow.layout(Unknown Source) at org.apache.fop.fo.flow.Flow.layout(Unknown Source) at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source) at org.apache.fop.apps.StreamRenderer.render(Unknown Source) at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.fop.apps.Driver.render(Unknown Source) at org.apache.fop.apps.Driver.run(Unknown Source) we don't use any svg graphics and a x-server is installed on the system. Does anyone know why the error occurs only sometimes and what we can do? greets thmarx - 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: PDF with CMYK
Hi Michi, no, not at the moment. The topic pops up every now and then but so far nobody has solved this properly, yet. Search through the archives for ideas. One big problem, of course, is that both XSL-FO and SVG only support sRGB. Providing CMYK support means creating custom extensions. On 24.03.2005 10:51:17 Michael Wechner wrote: Is it possible with FOP to generate a PDF with CMYK (instead RGB)? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF with CMYK
Jeremias Maerki wrote: Hi Michi, no, not at the moment. The topic pops up every now and then but so far nobody has solved this properly, yet. Search through the archives for ideas. ok One big problem, of course, is that both XSL-FO and SVG only support sRGB. Providing CMYK support means creating custom extensions. ok I am not sure if anyone has tried using iText to change the generated PDF from RGB to CMYK. Would that actually make sense as a hack? Thanks Michi On 24.03.2005 10:51:17 Michael Wechner wrote: Is it possible with FOP to generate a PDF with CMYK (instead RGB)? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Wechner Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org [EMAIL PROTECTED][EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: blind tables
Hi, I noticed the processing instruction to"page-break if less thanX inches left" is not implemented. Therefore I am trying to use "blind tables" to keeptwo pieces of content together. However this doesn't seem to be working - if you render the attacheddocument to PDF you will see that the instrument varbiageis on page 1 and the related data is on page 2. Thetwo pieces of content are themselves tables, so I'm wondering if this is allowed. Does anyone know what I'm doing wrong? I notice bug#7241 looks similar but this talks about it working for the first page break - but it doesn't even do that for me. thx. -- fop version:0.20.5 fop processes the document without errors; OPC fop.sh -fo CA_73468_20040630.fo -pdf out.pdf[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser[INFO] FOP 0.20.5[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser[INFO] building formatting object tree[INFO] setting up fonts[INFO] [1][INFO] [2][INFO] [3][INFO] Parsing of document complete, stopping renderer PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. keep-with.fo Description: keep-with.fo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: blind tables
This works for me now. I had a block around my first piece of content (a table). I removed this, so nesting the table directly. table row keep-with-next !- blind row 1 - block --- remove table ... /table /block --- remove /row row !- blind row 2 - blabla.. /row /table -Original Message-From: Smith, Martin Sent: 24 March 2005 11:38To: fop-users@xmlgraphics.apache.orgSubject: FW: blind tables Hi, I noticed the processing instruction to"page-break if less thanX inches left" is not implemented. Therefore I am trying to use "blind tables" to keeptwo pieces of content together. However this doesn't seem to be working - if you render the attacheddocument to PDF you will see that the instrument varbiageis on page 1 and the related data is on page 2. Thetwo pieces of content are themselves tables, so I'm wondering if this is allowed. Does anyone know what I'm doing wrong? I notice bug#7241 looks similar but this talks about it working for the first page break - but it doesn't even do that for me. thx. -- fop version:0.20.5 fop processes the document without errors; OPC fop.sh -fo CA_73468_20040630.fo -pdf out.pdf[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser[INFO] FOP 0.20.5[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser[INFO] building formatting object tree[INFO] setting up fonts[INFO] [1][INFO] [2][INFO] [3][INFO] Parsing of document complete, stopping renderer PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange.
Re: PDF with CMYK
I'm not sure if iText can really do it. I've never tried. But there are tools out there that can do the conversion. But they may not be free. On 24.03.2005 12:25:16 Michael Wechner wrote: I am not sure if anyone has tried using iText to change the generated PDF from RGB to CMYK. Would that actually make sense as a hack? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: encoding space in xsl:fo
Andreas L. Delmelle wrote: -Original Message- From: Peter B. West [mailto:[EMAIL PROTECTED] Hi Peter, #160; is A0 in hex; 1100 in binary. Slight adjustment... 160 = 2^7 + 2^5, so 1010 ? (Fresh out of bed, ay? ;-)) Precisely. And I'm not good in the morning. I was thinking along the same lines, but haven't discovered the mapping yet... When this value is represented in UTF-8, it becomes the two-byte sequence How exactly? If you are on a linux system, man utf-8 explains it well. The Unicode manual has an appendix on transformations, which is probably available online. This is from the man page. ENCODING The following byte sequences are used to represent a character. The sequence to be used depends on the UCS code number of the character: 0x - 0x007F: 0xxx 0x0080 - 0x07FF: 110x 10xx 0x0800 - 0x: 1110 10xx 10xx 0x0001 - 0x001F: 0xxx 10xx 10xx 10xx 0x0020 - 0x03FF: 10xx 10xx 10xx 10xx 10xx 0x0400 - 0x7FFF: 110x 10xx 10xx 10xx 10xx 10xx It's a beautiful encoding. A0 (0101 ) uses the two byte form. So, 110x 10xx where the first 5 bits are 000 + the top two bits of the original, i.e. 10, and the remaining 6 bits are the lower 6 bits of the original, i.e. 10 , becomes 110.000.10 10.10 1100 0010 1010 C2 A0 So the result in iso 8859-1 is Â+#xA0; where the fllowing A0 will be interpreted as an ordinary space, I believe. Peter -- Peter B. West http://cv.pbw.id.au/ Folio http://defoe.sourceforge.net/folio/ http://folio.bkbits.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svg text and spacing
Hi All I have a little problem. I need to draw a barchart in svg, imbedded in fo which is produced in xsl. The problem is, how do i know where to draw the y axis? What i mean is, If i want numbers on the left side of the axis thus : | 15 | 10 | 5 | 0 |___ | How do i know at what x position to draw the y axis? The scale could be 0 -5, 0 -100 etc... Is there a way to find out how wide/long a particular bit of text will be? Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JFOR for fo:external-graphic
I use jfor but does not suppport content-height and content-width for external image. My problem is the on linux the image rendered are bigger than normal...on window that 's not happen... U know any alternative way for setting size for fo:external-graphic? 6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero! Scaricalo su INTERNET GRATIS 6X http://www.libero.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svg text and spacing
Hi Jake, This seems to be a specific svg question. You should ask it in a svg list. However, You can use this: svg:text x=... y=... text-anchor=end.../svg:text In a left-to-right context, your x coordinate corresponds to the right edge of the text box. You can then easily locate your chart. Pascal -Message d'origine- De : Jake Briggs [mailto:[EMAIL PROTECTED] I have a little problem. I need to draw a barchart in svg, imbedded in fo which is produced in xsl. The problem is, how do i know where to draw the y axis? What i mean is, If i want numbers on the left side of the axis thus : | 15 | 10 | 5 | 0 |___ | How do i know at what x position to draw the y axis? The scale could be 0 -5, 0 -100 etc... Is there a way to find out how wide/long a particular bit of text will be? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JFOR for fo:external-graphic
Hi, FOP 0.20.5 doesn't support content-xxx. Use 'height' and 'width' attributes instead. Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I use jfor but does not suppport content-height and content-width for external image. My problem is the on linux the image rendered are bigger than normal...on window that 's not happen... U know any alternative way for setting size for fo:external-graphic? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with TTFReader FileNotFoundException
Klearchou Klearchos wrote: Hello all, I am trying to generate the xml file from a ttf file in order to use it with my FOP Engine. I run win2k. I run it exactly as the instructions write but I always take a FileNotFoundException. java -cp fop.jar;avalon-framework.jar;xml-apis.jar;xercesImpl.jar;xalan.jar org.apache.fop.fonts.apps.TTFReader -enc ansi f/pala.ttf f/palattf.xml Here I use relative paths. I tried absolute as wellusing the syntax file:/// as the FAQ page instructs. When the website is talking about URIs and URLs, it means as metric file reference inside user-config.xml, not when running TTFReader. When calling the TTFReader from the command line you should always use file paths and *not* URLs, or URIs. Relative paths work for me provided the shell is in the right directory, but if you are having trouble getting relative paths working use absolute paths, e.g. java -cp fop.jar;avalon-framework.jar;xml-apis.jar;xercesImpl.jar;xalan.jar org.apache.fop.fonts.apps.TTFReader -enc ansi C:\downloads\FADO\PDFBox\fonts\f\pala.ttf C:\downloads\FADO\PDFBox\fonts\f\pala.xml snip/ Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: svg text and spacing
Quoting Pascal Sancho [EMAIL PROTECTED]: Hi Jake, This seems to be a specific svg question. You should ask it in a svg list. Oh, yeah, of course. That would be the batik mailing list. Sorry, I didnt even think :) However, You can use this: svg:text x=... y=... text-anchor=end.../svg:text In a left-to-right context, your x coordinate corresponds to the right edge of the text box. You can then easily locate your chart. Pascal I will have a play with this, thanks :) Jake -Message d'origine- De : Jake Briggs [mailto:[EMAIL PROTECTED] I have a little problem. I need to draw a barchart in svg, imbedded in fo which is produced in xsl. The problem is, how do i know where to draw the y axis? What i mean is, If i want numbers on the left side of the axis thus : | 15 | 10 | 5 | 0 |___ | How do i know at what x position to draw the y axis? The scale could be 0 -5, 0 -100 etc... Is there a way to find out how wide/long a particular bit of text will be? - 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: JFOR for fo:external-graphic
We're not really JFOR support although JFOR has been integrated into FOP and RTF support will be part of the next release. Anyway, the fact that you're talking about Linux brings some warning lights up. JFOR is optimized for MS Word which is not available for Linux. What application do you use to open the generated RTF file? OpenOffice, for example, is horrible when it comes to RTF import. So we first have to find out whether the generated RTF is different between Windows and Linux or if the generated RTF displays differently in different applications. It may not be a JFOR problem after all. On 23.03.2005 09:46:26 [EMAIL PROTECTED] wrote: I use jfor but does not suppport content-height and content-width for external image. My problem is the on linux the image rendered are bigger than normal...on window that 's not happen... U know any alternative way for setting size for fo:external-graphic? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Embedding texts with different font size in a block...
Hi, I am trying to achieve something that looks like a basic thing to do but I can't find a way to do it. I would like to put, on the same line, several texts that have different font sizes. For example the word BIG in 60pt followed by the word SMALL in 40pt. The following FO code does not completely work since the text baseline is vertically centered in the parent block section and therefore the text gets out above the block! I added a solid border to the block to see the problem. ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master margin-bottom=2cm margin-left=2.5cm margin-right=2.5cm margin-top=2cm master-name=simple page-height=29.7cm page-width=21cm fo:region-body margin-bottom=1.5cm margin-top=2cm/ fo:region-before extent=2cm/ fo:region-after extent=1.5cm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simple fo:flow flow-name=xsl-region-body fo:block font-family=Helvetica line-height=60pt border-style=solid fo:inline font-size=60pt font-weight=bold BIG /fo:inline fo:inline font-size=40pt font-weight=bold SMALL /fo:inline /fo:block /fo:flow /fo:page-sequence /fo:root Many thanks for any ideas to solve this problem! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Embedding texts with different font size in a block...
Hi, I am trying to achieve something that looks like a basic thing to do but I can't find a way to do it. I would like to put, on the same line, several texts that have different font sizes. For example the word BIG in 60pt followed by the word SMALL in 40pt. The following FO code does not completely work since the text baseline is vertically centered in the parent block section and therefore the text gets out above the block! I added a solid border to the block to see the problem. ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master margin-bottom=2cm margin-left=2.5cm margin-right=2.5cm margin-top=2cm master-name=simple page-height=29.7cm page-width=21cm fo:region-body margin-bottom=1.5cm margin-top=2cm/ fo:region-before extent=2cm/ fo:region-after extent=1.5cm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simple fo:flow flow-name=xsl-region-body fo:block font-family=Helvetica line-height=60pt border-style=solid fo:inline font-size=60pt font-weight=bold BIG /fo:inline fo:inline font-size=40pt font-weight=bold SMALL /fo:inline /fo:block /fo:flow /fo:page-sequence /fo:root Many thanks for any ideas to solve this problem! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: encoding space in xsl:fo
-Original Message- From: Peter B. West [mailto:[EMAIL PROTECTED] If you are on a linux system, man utf-8 explains it well. The Unicode manual has an appendix on transformations, which is probably available online. snip / Big 'THANKS' for the clarification! (Although I should've been able to come up with that myself... Well, too early for you, way past midnight for me :-) Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Embedding texts with different font size in a block...
-Original Message- From: Patrick JUSSEAU [mailto:[EMAIL PROTECTED] Hi, I would like to put, on the same line, several texts that have different font sizes. For example the word BIG in 60pt followed by the word SMALL in 40pt. The following FO code does not completely work since the text baseline is vertically centered in the parent block section and therefore the text gets out above the block! If I get the problem correctly, the 'display-align' property[1] would solve a lot of your problems, but... in FOP 0.20.5 it was only partially implemented, and works only on table-cells and block-containers (not regular blocks). Should be enough to offer you a quite straightforward workaround though... HTH! Greetz, Andreas [1] http://www.w3.org/TR/xsl/slice7.html#display-align - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedding texts with different font size in a block...
Andreas L. Delmelle a écrit : I would like to put, on the same line, several texts that have different font sizes. For example the word BIG in 60pt followed by the word SMALL in 40pt. The following FO code does not completely work since the text baseline is vertically centered in the parent block section and therefore the text gets out above the block! If I get the problem correctly, the 'display-align' property[1] would solve a lot of your problems, but... in FOP 0.20.5 it was only partially implemented, and works only on table-cells and block-containers (not regular blocks). I'm not quite sure about that. I would say that this is somehow related to the line-stacking-strategy property. It is not implemented in Fop 0.20.5 [1] and I don't know which is the fallback behaviour. I guess that setting this property to 'max-height' would solve the problem. But this part of the XSL spec still is unclear to me. As a workaround, you can also set the font-size for the surrounding fo:block to the max size of its inline children (60pt here). Hope this helps, Vincent [1] http://xml.apache.org/fop/compliance.html#fo-property-line-stacking-strategy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedding texts with different font size in a block...
On 23 Mar 2005, at 19:20, Vincent Hennebert wrote: Andreas L. Delmelle a écrit : I would like to put, on the same line, several texts that have different font sizes. For example the word BIG in 60pt followed by the word SMALL in 40pt. The following FO code does not completely work since the text baseline is vertically centered in the parent block section and therefore the text gets out above the block! If I get the problem correctly, the 'display-align' property[1] would solve a lot of your problems, but... in FOP 0.20.5 it was only partially implemented, and works only on table-cells and block-containers (not regular blocks). I'm not quite sure about that. I would say that this is somehow related to the line-stacking-strategy property. It is not implemented in Fop 0.20.5 [1] and I don't know which is the fallback behaviour. I guess that setting this property to 'max-height' would solve the problem. But this part of the XSL spec still is unclear to me. As a workaround, you can also set the font-size for the surrounding fo:block to the max size of its inline children (60pt here). Setting the font-size for the surrounding fo:block to the max size of its inline children (60pt here) does produce a better result but the text is still not completely vertically center aligned (There seems to be more space below the text than above it). I wonder if anyone else faced himself with this very same problem and found a good solution for it. This is quite frustrating that this takes so much effort to achieve such a simple thing! Thanks again, Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedding texts with different font size in a block...
Patrick JUSSEAU a écrit : Setting the font-size for the surrounding fo:block to the max size of its inline children (60pt here) does produce a better result but the text is still not completely vertically center aligned (There seems to be more space below the text than above it). Actually not: if you put letters with non-null descent values (lowercase letters like 'j', 'g', 'p'...) you will have as much white space before as after the letter. If your text only has uppercase letters this will indeed give the feeling that there is more space after. Right now I have no other solution than setting a non-null before space for the block. You will have to hand-tune the space that will depend on the chosen font and size. But there probably are better solutions... It's late for me and I'm a bit tired ;-/ Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Build FOP
Dumb question asked again and again. But I seem to have problems rebuilding 0.20.5 source code. Following is the error message I got. I am trying to add Bookman Old Style font to support my PDF. BUILD FAILED file:C:/AppDown/fop-0.20.5/build.xml:438: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison Any help is appreciated. Thanks, Gang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Build FOP
Also, it looks like the userconfig.xml is pointing to a locale copy of font file. Can I make it portable? I am actually gonna build a WAR file of FOP to deploy it on Tomcat server. How can I avoid the hard-coded font file problem? Thanks for your answer, Gang -Original Message- From: Gang Li Sent: Tuesday, March 22, 2005 10:41 AM To: fop-users@xmlgraphics.apache.org Subject: Build FOP Dumb question asked again and again. But I seem to have problems rebuilding 0.20.5 source code. Following is the error message I got. I am trying to add Bookman Old Style font to support my PDF. BUILD FAILED file:C:/AppDown/fop-0.20.5/build.xml:438: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison Any help is appreciated. Thanks, Gang - 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]
Problem with TTFReader FileNotFoundException
Hello all, I am trying to generate the xml file from a ttf file in order to use it with my FOP Engine. I run win2k. I run it exactly as the instructions write but I always take a FileNotFoundException. java -cp fop.jar;avalon-framework.jar;xml-apis.jar;xercesImpl.jar;xalan.jar org.apache.fop.fonts.apps.TTFReader -enc ansi f/pala.ttf f/palattf.xml Here I use relative paths. I tried absolute as wellusing the syntax file:/// as the FAQ page instructs. The result is the same: Reading C:\downloads\FADO\PDFBox\fonts\f\pala.ttf... Number of glyphs in font: 1328 Creating xml font file... Creating WinAnsi encoded metrics Writing xml font file C:\downloads\FADO\PDFBox\fonts\f\palattf.xml... javax.xml.transform.TransformerException: java.io.FileNotFoundException: file:\C :\downloads\FADO\PDFBox\fonts\f\palattf.xml (The filename, directory name, or vo lume label syntax is incorrect) at org.apache.xalan.transformer.TransformerIdentityImpl.createResultCont entHandler(TransformerIdentityImpl.java:281) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf ormerIdentityImpl.java:314) at org.apache.fop.fonts.apps.TTFReader.writeFontXML(TTFReader.java:243) at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:196) Caused by: java.io.FileNotFoundException: file:\C:\downloads\FADO\PDFBox\fonts\f \palattf.xml (The filename, directory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.init(Unknown Source) at java.io.FileOutputStream.init(Unknown Source) at org.apache.xalan.transformer.TransformerIdentityImpl.createResultCont entHandler(TransformerIdentityImpl.java:271) ... 3 more - java.io.FileNotFoundException: file:\C:\downloads\FADO\PDFBox\fonts\f\palattf.xm l (The filename, directory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.init(Unknown Source) at java.io.FileOutputStream.init(Unknown Source) at org.apache.xalan.transformer.TransformerIdentityImpl.createResultCont entHandler(TransformerIdentityImpl.java:271) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf ormerIdentityImpl.java:314) at org.apache.fop.fonts.apps.TTFReader.writeFontXML(TTFReader.java:243) at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:196) This font contains no embedding license restrictions Any help would be very welcome. Thank you in advance for your time - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
encoding space in xsl:fo
Hi all I set xsl:output encoding=ISO-8859-1/ in my xsl as encoding output but on a window system is rendered as a space ; on unix system is rendered as A^ (unique character) It look like the mapping is dependent by system. Possible? Navighi a 2 MEGA e i primi 3 mesi sono GRATIS. Scegli Libero Adsl Flat senza limiti su http://www.libero.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: encoding space in xsl:fo
[EMAIL PROTECTED] wrote: Hi all I set xsl:output encoding=ISO-8859-1/ in my xsl as encoding output but on a window system is rendered as a space ; on unix systemis rendered as A^ (unique character) It look like the mapping is dependent by system. Possible? If you tried to print your special character in this mail it doesn't worked for me (I see a blank), could you explain which character is it and verify that it is really supported by ISO-8859-1 (try man iso-8859-1 on some sytems this manual page exists). Good luck, David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: encoding space in xsl:fo
I said that is mapped as white space...on window and on linux is mapped as A^... Any idea? -- Initial Header --- From : David Causse [EMAIL PROTECTED] To : fop-users@xmlgraphics.apache.org Cc : Date : Tue, 22 Mar 2005 18:18:45 +0100 Subject : Re: encoding space in xsl:fo [EMAIL PROTECTED] wrote: Hi all I set xsl:output encoding=ISO-8859-1/ in my xsl as encoding output but on a window system is rendered as a space ; on unix systemis rendered as A^ (unique character) It look like the mapping is dependent by system. Possible? If you tried to print your special character in this mail it doesn't worked for me (I see a blank), could you explain which character is it and verify that it is really supported by ISO-8859-1 (try man iso-8859-1 on some sytems this manual page exists). Good luck, David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Navighi a 2 MEGA e i primi 3 mesi sono GRATIS. Scegli Libero Adsl Flat senza limiti su http://www.libero.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Build FOP
Gang I have used the http protocol to access the font file.. font metrics-file=http://localhost:7011/web/msgothic.xml; embed-file=http://localhost:7011/web/msgothic.TTF; kerning=yes font-triplet name=MSGothic style=normal weight=normal/ font-triplet name=MSGothic style=normal weight=bold/ /font Instead of localhost you can use the servername where the fonts are located.. Thanks Manoj Gang Li [EMAIL PROTECTED]To: fop-users@xmlgraphics.apache.org onebs.com cc: Subject: RE: Build FOP 03/22/2005 08:59 AM Please respond to fop-users Also, it looks like the userconfig.xml is pointing to a locale copy of font file. Can I make it portable? I am actually gonna build a WAR file of FOP to deploy it on Tomcat server. How can I avoid the hard-coded font file problem? Thanks for your answer, Gang -Original Message- From: Gang Li Sent: Tuesday, March 22, 2005 10:41 AM To: fop-users@xmlgraphics.apache.org Subject: Build FOP Dumb question asked again and again. But I seem to have problems rebuilding 0.20.5 source code. Following is the error message I got. I am trying to add Bookman Old Style font to support my PDF. BUILD FAILED file:C:/AppDown/fop-0.20.5/build.xml:438: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison Any help is appreciated. Thanks, Gang - 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: encoding space in xsl:fo
You want to print this char below? Oct Dec Hex Char Description 240 160 A0 NO-BREAK SPACE I think you should explain what you want to do, I read in your mail: I said that is mapped... So I can't understand what you want... If I read the source of this mail I can see your char is coded like this: =A0 It displays a white space on my mail user agent (thunderbird/windows). David. [EMAIL PROTECTED] wrote: I said that is mapped as white space...on window and on linux is mapped as A^... Any idea? -- Initial Header --- From : David Causse [EMAIL PROTECTED] To : fop-users@xmlgraphics.apache.org Cc : Date : Tue, 22 Mar 2005 18:18:45 +0100 Subject : Re: encoding space in xsl:fo [EMAIL PROTECTED] wrote: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: encoding space in xsl:fo
Yes white space...is not well mapped in linux... # 160 ; is coded as white space on window while is coded as a letter with a chapot above on linux. Why? I need absolutely help! -- Initial Header --- From : David Causse [EMAIL PROTECTED] To : fop-users@xmlgraphics.apache.org Cc : Date : Tue, 22 Mar 2005 18:41:33 +0100 Subject : Re: encoding space in xsl:fo You want to print this char below? Oct Dec Hex Char Description 240 160 A0 NO-BREAK SPACE I think you should explain what you want to do, I read in your mail: I said that is mapped... So I can't understand what you want... If I read the source of this mail I can see your char is coded like this: =A0 It displays a white space on my mail user agent (thunderbird/windows). David. [EMAIL PROTECTED] wrote: I said that is mapped as white space...on window and on linux is mapped as A^... Any idea? -- Initial Header --- From : David Causse [EMAIL PROTECTED] To : fop-users@xmlgraphics.apache.org Cc : Date : Tue, 22 Mar 2005 18:18:45 +0100 Subject : Re: encoding space in xsl:fo [EMAIL PROTECTED] wrote: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Navighi a 2 MEGA e i primi 3 mesi sono GRATIS. Scegli Libero Adsl Flat senza limiti su http://www.libero.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: encoding space in xsl:fo
[EMAIL PROTECTED] wrote: Yes white space...is not well mapped in linux... # 160 ; is coded as white space on window while is coded as a letter with a chapot above on linux. Why? I need absolutely help! Try to use xsl:text /xsl:text in your xsl and white-space-collapse=false in the FO. I don't why nbsp; prints ^A on linux (^[LETTER] means control chars) Good luck. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Build FOP
Manoj, Thanks a lot. This is definitely a good way to go. But I am wondering whether we can actually package the TTF files along with the FOP and refer to the local file? Any thoughts? Gang -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 11:28 AM To: fop-users@xmlgraphics.apache.org Subject: RE: Build FOP Gang I have used the http protocol to access the font file.. font metrics-file=http://localhost:7011/web/msgothic.xml; embed-file=http://localhost:7011/web/msgothic.TTF; kerning=yes font-triplet name=MSGothic style=normal weight=normal/ font-triplet name=MSGothic style=normal weight=bold/ /font Instead of localhost you can use the servername where the fonts are located.. Thanks Manoj Gang Li [EMAIL PROTECTED]To: fop-users@xmlgraphics.apache.org onebs.com cc: Subject: RE: Build FOP 03/22/2005 08:59 AM Please respond to fop-users Also, it looks like the userconfig.xml is pointing to a locale copy of font file. Can I make it portable? I am actually gonna build a WAR file of FOP to deploy it on Tomcat server. How can I avoid the hard-coded font file problem? Thanks for your answer, Gang -Original Message- From: Gang Li Sent: Tuesday, March 22, 2005 10:41 AM To: fop-users@xmlgraphics.apache.org Subject: Build FOP Dumb question asked again and again. But I seem to have problems rebuilding 0.20.5 source code. Following is the error message I got. I am trying to add Bookman Old Style font to support my PDF. BUILD FAILED file:C:/AppDown/fop-0.20.5/build.xml:438: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison Any help is appreciated. Thanks, Gang - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: encoding space in xsl:fo
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Hi, I set xsl:output encoding=ISO-8859-1/ in my xsl as encoding output but on a window system is rendered as a space ; on unix system is rendered as A^ (unique character) It look like the mapping is dependent by system. Possible? In order to know for sure, a few more questions: - Which JVMs are you using? (Which version on Windows, which one on Linux?) - Are you using the same XSLT processor on both platforms? If so, is it the same version? If not, maybe one of them doesn't fully support xsl:output-encoding / (as I recall, it is not mandatory according to the XSLT Spec.) I'd also try posting this question on Xalan's user-list. If both XSLT processors are Xalan, their development team is far more likely to offer you an explanation... Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build FOP
[EMAIL PROTECTED] wrote: I have used the http protocol to access the font file.. Are you sure? The metrics-file attribute may be an URL: font metrics-file=http://localhost:7011/web/msgothic.xml; but the value of embed-file is passed to an java.io.File constructor. Which JVM version are you running? J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Build FOP
-Original Message- From: Gang Li [mailto:[EMAIL PROTECTED] Hi, Dumb question asked again and again. Reminds me of a saying: There are no dumb questions, there are only dumb answers. Sure, there *are* silly questions, but yours does not strike me as 'silly'. Anyway... But I seem to have problems rebuilding 0.20.5 source code. Following is the error message I got. ... BUILD FAILED file:C:/AppDown/fop-0.20.5/build.xml:438: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison It definitely seems to be a (version-)problem with Ant. Which version of Ant are you using to perform the build? (A bit of browsing leads me to conclude that for older versions --pre 1.5-- there was no 'TraXLiaison' taskdef.) HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Build FOP
-Original Message- From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison (A bit of browsing leads me to conclude that for older versions --pre 1.5-- there was no 'TraXLiaison' taskdef.) Correction: there was, since 1.3. AD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Build FOP
I thought it was an ANT problem. I am using ant 1.6.2 but the ant coming with source code and binary distribution is ant1.5.1. I didn't modify any of the build files (build.bat and build.xml) though I checked and made sure the files are under the right folder. Thanks, Gang -Original Message- From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 1:44 PM To: fop-users@xmlgraphics.apache.org Subject: RE: Build FOP -Original Message- From: Gang Li [mailto:[EMAIL PROTECTED] Hi, Dumb question asked again and again. Reminds me of a saying: There are no dumb questions, there are only dumb answers. Sure, there *are* silly questions, but yours does not strike me as 'silly'. Anyway... But I seem to have problems rebuilding 0.20.5 source code. Following is the error message I got. ... BUILD FAILED file:C:/AppDown/fop-0.20.5/build.xml:438: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison It definitely seems to be a (version-)problem with Ant. Which version of Ant are you using to perform the build? (A bit of browsing leads me to conclude that for older versions --pre 1.5-- there was no 'TraXLiaison' taskdef.) HTH! Greetz, Andreas - 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: Build FOP
If this doesn't work. Can we somehow use the BaseDir to point it to the absolute path to the TTF file packaged with FOP? variable name=BaseDir select=location/ font metrics-file=$BaseDir/fonts/msgothic.xml embed-file=$BaseDir/fonts/msgothic.TTF kerning=yes Is this possible? Gang -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 1:49 PM To: fop-users@xmlgraphics.apache.org Subject: Re: Build FOP [EMAIL PROTECTED] wrote: I have used the http protocol to access the font file.. Are you sure? The metrics-file attribute may be an URL: font metrics-file=http://localhost:7011/web/msgothic.xml; but the value of embed-file is passed to an java.io.File constructor. Which JVM version are you running? 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]
RE: Build FOP
-Original Message- From: Gang Li [mailto:[EMAIL PROTECTED] Hi, I thought it was an ANT problem. I am using ant 1.6.2 but the ant coming with source code and binary distribution is ant1.5.1. I didn't modify any of the build files (build.bat and build.xml) though I checked and made sure the files are under the right folder. Just making sure: so you *are* using build.bat, and not your own version of Ant? In that case, well... How exactly are you trying to add support for the 'Bookman Old Style' font? It almosts seems like you want to have it compiled in in some way, and you're trying to use the Base14 fonts as an example --correct? Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Build FOP
Well, I just started on rebuilding FOP source code. Nothing has been done with fonts yet. Here is what I am going to do. 1. Get the source code compiled. 2. Create fonts XML files for Bookman Old Style. 3. Modify the userconfig.xml and rebuild FOP to include fonts. In my case, I am running FOP as a Servlet so I think I would use Manoj's approach to refer to the font TTF file with http://localhost:8080/fop/fonts/msgothic.TTF; so that I am not gonna mess with package fonts file with FOP.jar but instead package it along with my FOP.war which will be deployed on Tomcat. Gang -Original Message- From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 4:33 PM To: fop-users@xmlgraphics.apache.org Subject: RE: Build FOP -Original Message- From: Gang Li [mailto:[EMAIL PROTECTED] Hi, I thought it was an ANT problem. I am using ant 1.6.2 but the ant coming with source code and binary distribution is ant1.5.1. I didn't modify any of the build files (build.bat and build.xml) though I checked and made sure the files are under the right folder. Just making sure: so you *are* using build.bat, and not your own version of Ant? In that case, well... How exactly are you trying to add support for the 'Bookman Old Style' font? It almosts seems like you want to have it compiled in in some way, and you're trying to use the Base14 fonts as an example --correct? Greetz, Andreas - 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: Build FOP
-Original Message- From: Gang Li [mailto:[EMAIL PROTECTED] Well, I just started on rebuilding FOP source code. Nothing has been done with fonts yet. Here is what I am going to do. Ah, ok. (Phew! For a moment, things seemed needlessly complicated) The build problem could be related to this FAQ: http://ant.apache.org/faq.html#delegating-classloader HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: encoding space in xsl:fo
Andreas L. Delmelle wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Hi, I set xsl:output encoding=ISO-8859-1/ in my xsl as encoding output but on a window system is rendered as a space ; on unix systemis rendered as A^ (unique character) It look like the mapping is dependent by system. Possible? In order to know for sure, a few more questions: - Which JVMs are you using? (Which version on Windows, which one on Linux?) - Are you using the same XSLT processor on both platforms? If so, is it the same version? If not, maybe one of them doesn't fully support xsl:output-encoding / (as I recall, it is not mandatory according to the XSLT Spec.) I'd also try posting this question on Xalan's user-list. If both XSLT processors are Xalan, their development team is far more likely to offer you an explanation... What is your locale on linux? Type the word locale at a command line prompt. #160; is A0 in hex; 1100 in binary. When this value is represented in UTF-8, it becomes the two-byte sequence 1100 0011 1000 , or C2 80 in hex. C2 is the  (capital A with circumflex) character that you are seeing in linux. The 80 is, I believe, treated as a null character, i.e. like 00, when encountered in an ISO 8859-1 character set. So it looks as though your #160; is beng translated into UTF-8, then read on your linux system as two ISO 8859-1 (or -15) characters. Peter -- Peter B. West http://cv.pbw.id.au/ Folio http://defoe.sourceforge.net/folio/ http://folio.bkbits.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: encoding space in xsl:fo
-Original Message- From: Peter B. West [mailto:[EMAIL PROTECTED] Hi Peter, #160; is A0 in hex; 1100 in binary. Slight adjustment... 160 = 2^7 + 2^5, so 1010 ? (Fresh out of bed, ay? ;-)) I was thinking along the same lines, but haven't discovered the mapping yet... When this value is represented in UTF-8, it becomes the two-byte sequence How exactly? Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Inserting a background image.
Hi, I have a new requirement and would like to know if anyone of you have done this before. I have a PDF already generated. There is an image strored as a TIF file. Now, on request I have to programmatically insert the TIF as a BACKGROUND to the pdf file. Any suggestion or pointer will he highly appreciated. Thanks and regards, Deiv Deivanayagam Ramakrishnan Hewlett Packard - GDIC 30 Cunningham Road Bangalore - 52 22251554 xtn 2149 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Inserting a background image.
Ramakrishnan, Deivanayagam wrote: Hi, I have a new requirement and would like to know if anyone of you have done this before. I have a PDF already generated. There is an image strored as a TIF file. Now, on request I have to programmatically insert the TIF as a BACKGROUND to the pdf file. Any suggestion or pointer will he highly appreciated. I think you are asking how to insert a TIF as a background of an already existing PDF? Whats that got to do with XSL-FO or FOP? You can try looking at iText which is a Java API for manipulating PDFs? http://www.lowagie.com/iText/ Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: text-indent issue
Thanks to you all for pointing me in the right direction. I was able to fix it and get the desired behavior. The changes were made in Block.java and BlockArea.java Thanks, Kumar Puppala -Original Message- From: Victor Mote [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 3:06 PM To: fop-users@xmlgraphics.apache.org Subject: RE: text-indent issue Kumar Puppala wrote: Can anyone direct me to the code where I can prevent inheritance of the text-indent property in the scenario mentioned below? I would like to make those changes in my local copy of Apache source code (0.20.5) since this would impact our application. Any help is greatly appreciated. It is almost certainly not a problem with the inheritance itself, but rather with the way the layout system signifies which LineArea objects are the first. I would start with the variable isFirst in layout/Area.java and find occurrences in the Block and Line layout that reference it, then work backwards from there. It sure could be something else, but that is my best guess about where to start. (I don't have FOP 0.20.5 set up in a development environment anymore, or I would dig a bit deeper for you). HTH. Victor Mote - 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: text-indent issue
Would you post a PATCH to bugzilla for us? You should be able to figure out what we need by going to this page: http://xml.apache.org/fop/bugs.html On Mar 17, 2005, at 5:49 AM, Puppala, Kumar (LNG-DAY) wrote: Thanks to you all for pointing me in the right direction. I was able to fix it and get the desired behavior. The changes were made in Block.java and BlockArea.java Thanks, Kumar Puppala -Original Message- From: Victor Mote [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 3:06 PM To: fop-users@xmlgraphics.apache.org Subject: RE: text-indent issue Kumar Puppala wrote: Can anyone direct me to the code where I can prevent inheritance of the text-indent property in the scenario mentioned below? I would like to make those changes in my local copy of Apache source code (0.20.5) since this would impact our application. Any help is greatly appreciated. It is almost certainly not a problem with the inheritance itself, but rather with the way the layout system signifies which LineArea objects are the first. I would start with the variable isFirst in layout/Area.java and find occurrences in the Block and Line layout that reference it, then work backwards from there. It sure could be something else, but that is my best guess about where to start. (I don't have FOP 0.20.5 set up in a development environment anymore, or I would dig a bit deeper for you). HTH. Victor Mote - 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] Web Maestro Clay -- [EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/ My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fop with lenya: how can I suppress the lenya:meta in a created pdf
I am using fop with apache lenya to create pdf files. I'm using a simple xsl-file for transforming the created lenya xml files into pdf files: ?xml version=1.0 encoding=iso-8859-1? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xmlns:fo=http://www.w3.org/1999/XSL/Format; !-- generate PDF page structure -- xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=page page-height=29.7cm page-width=21cm margin-top=1cm margin-bottom=2cm margin-left=2.5cm margin-right=2.5cm fo:region-before extent=3cm/ fo:region-body margin-top=3cm/ fo:region-after extent=1.5cm/ /fo:simple-page-master fo:page-sequence-master master-name=all fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=page page-position=first/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=all fo:flow flow-name=xsl-region-body fo:blockxsl:apply-templates//fo:block /fo:flow /fo:page-sequence /fo:root /xsl:template !-- process paragraphs -- xsl:template match=p fo:blockxsl:apply-templates//fo:block /xsl:template xsl:template match=meta fo:block color=green xsl:apply-templates/ /fo:block /xsl:template !-- convert sections to XSL-FO headings -- xsl:template match=s1 fo:block font-size=24pt color=red font-weight=bold xsl:apply-templates select=@title/ /fo:block xsl:apply-templates/ /xsl:template /xsl:stylesheet But ... how can I make the lenya:meta tags in the xml file not to be shown in the created pdf file??? Thank you in advance! Sascha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fop with lenya: how can I suppress the lenya:meta in a created pdf
Remove the template below from your XSLT, and that should work. xsl:template match=meta fo:block color=green xsl:apply-templates/ /fo:block /xsl:template Glen --- Sascha Teifke [EMAIL PROTECTED] wrote: I am using fop with apache lenya to create pdf files. I'm using a simple xsl-file for transforming the created lenya xml files into pdf files: ?xml version=1.0 encoding=iso-8859-1? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xmlns:fo=http://www.w3.org/1999/XSL/Format; !-- generate PDF page structure -- xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=page page-height=29.7cm page-width=21cm margin-top=1cm margin-bottom=2cm margin-left=2.5cm margin-right=2.5cm fo:region-before extent=3cm/ fo:region-body margin-top=3cm/ fo:region-after extent=1.5cm/ /fo:simple-page-master fo:page-sequence-master master-name=all fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=page page-position=first/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=all fo:flow flow-name=xsl-region-body fo:blockxsl:apply-templates//fo:block /fo:flow /fo:page-sequence /fo:root /xsl:template !-- process paragraphs -- xsl:template match=p fo:blockxsl:apply-templates//fo:block /xsl:template xsl:template match=meta fo:block color=green xsl:apply-templates/ /fo:block /xsl:template !-- convert sections to XSL-FO headings -- xsl:template match=s1 fo:block font-size=24pt color=red font-weight=bold xsl:apply-templates select=@title/ /fo:block xsl:apply-templates/ /xsl:template /xsl:stylesheet But ... how can I make the lenya:meta tags in the xml file not to be shown in the created pdf file??? Thank you in advance! Sascha - 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 with lenya: how can I suppress the lenya:meta in a created pdf
Sascha Teifke wrote: I am using fop with apache lenya to create pdf files. I'm using a simple xsl-file for transforming the created lenya xml files into pdf files: ?xml version=1.0 encoding=iso-8859-1? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xmlns:fo=http://www.w3.org/1999/XSL/Format; !-- generate PDF page structure -- xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=page page-height=29.7cm page-width=21cm margin-top=1cm margin-bottom=2cm margin-left=2.5cm margin-right=2.5cm fo:region-before extent=3cm/ fo:region-body margin-top=3cm/ fo:region-after extent=1.5cm/ /fo:simple-page-master fo:page-sequence-master master-name=all fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=page page-position=first/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=all fo:flow flow-name=xsl-region-body fo:blockxsl:apply-templates//fo:block xsl:apply-templates select=/html/*[local-name() != 'meta']/ HTH Michi -- Michael Wechner Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org [EMAIL PROTECTED][EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fop with lenya: how can I suppress the lenya:meta in a created pdf
I'm not sure--but you have an XSLT question, not a FOP one--and I think the Mulberry XSLT mailing list (Google for it) would be best for you. Glen --- Sascha Teifke [EMAIL PROTECTED] wrote: Hi Glen, thank you for the quick response. I removed it. But it still doesn't work. Her is an example xml file created by lenya. ?xml version=1.0 encoding=UTF-8?html xmlns=http://www.w3.org/1999/xhtml; xmlns:dc=http://purl.org/dc/elements/1.1/; xmlns:dcterms=http://purl.org/dc/terms/; xmlns:lenya=http://apache.org/cocoon/lenya/page-envelope/1.0; xmlns:xhtml=http://www.w3.org/1999/xhtml; dc:dummy=FIXME:keepNamespace dcterms:dummy=FIXME:keepNamespace lenya:dummy=FIXME:keepNamespace xhtml:dummy=FIXME:keepNamespace lenya:meta dc:titledctitle/dc:title dc:creatorSascha Teifke/dc:creator dc:subjectdcsubject/dc:subject dc:descriptionAbstract that can be used on an overview page/dc:description dc:publisher/ dc:contributor/ dc:dateSun Mar 06 16:40:36 CET 2005/dc:date dc:type/ dc:format/ dc:identifier/ dc:source/ dc:languagede/dc:language dc:relation/ dc:coverage/ dc:rightsdcrights/dc:rights /lenya:meta head titleDefault Publication/title /head body h1Grundlagen/h1 pIn dieser Rubrik erfahren Sie einiges über die a href=/mediengestaltung/authoring/basics/history_de.html title=Historie /ades PDF-Formates, sowie a href=/mediengestaltung/authoring/basics/application_de.html title=Einsatzgebiete/a und die a href=/mediengestaltung/authoring/basics/software_de.html title=Software/a, die man zur Erstellung benötigt./p/body /html Glen Mazza wrote: Remove the template below from your XSLT, and that should work. xsl:template match=meta fo:block color=green xsl:apply-templates/ /fo:block /xsl:template Glen --- Sascha Teifke [EMAIL PROTECTED] wrote: I am using fop with apache lenya to create pdf files. I'm using a simple xsl-file for transforming the created lenya xml files into pdf files: ?xml version=1.0 encoding=iso-8859-1? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xmlns:fo=http://www.w3.org/1999/XSL/Format; !-- generate PDF page structure -- xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=page page-height=29.7cm page-width=21cm margin-top=1cm margin-bottom=2cm margin-left=2.5cm margin-right=2.5cm fo:region-before extent=3cm/ fo:region-body margin-top=3cm/ fo:region-after extent=1.5cm/ /fo:simple-page-master fo:page-sequence-master master-name=all fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=page page-position=first/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=all fo:flow flow-name=xsl-region-body fo:blockxsl:apply-templates//fo:block /fo:flow /fo:page-sequence /fo:root /xsl:template !-- process paragraphs -- xsl:template match=p fo:blockxsl:apply-templates//fo:block /xsl:template xsl:template match=meta fo:block color=green xsl:apply-templates/ /fo:block /xsl:template !-- convert sections to XSL-FO headings -- xsl:template match=s1 fo:block font-size=24pt color=red font-weight=bold xsl:apply-templates select=@title/ /fo:block xsl:apply-templates/ /xsl:template /xsl:stylesheet But ... how can I make the lenya:meta tags in the xml file not to be shown in the created pdf file??? Thank you in advance! Sascha - 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] - To unsubscribe, e-mail: [EMAIL
Re: fop with lenya: how can I suppress the lenya:meta in a created pdf
Michael Wechner wrote: Sascha Teifke wrote: I am using fop with apache lenya to create pdf files. I'm using a simple xsl-file for transforming the created lenya xml files into pdf files: fo:page-sequence master-reference=all fo:flow flow-name=xsl-region-body fo:blockxsl:apply-templates//fo:block xsl:apply-templates select=/html/*[local-name() != 'meta']/ HTH Michi I did so, but now my page is blank ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fop with lenya: how can I suppress the lenya:meta in a created pdf
Sascha Teifke wrote: Michael Wechner wrote: Sascha Teifke wrote: I am using fop with apache lenya to create pdf files. I'm using a simple xsl-file for transforming the created lenya xml files into pdf files: fo:page-sequence master-reference=all fo:flow flow-name=xsl-region-body fo:blockxsl:apply-templates//fo:block xsl:apply-templates select=/html/*[local-name() != 'meta']/ HTH Michi I did so, but now my page is blank ... I guess the namespaces needed to be added ... Michi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Wechner Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org [EMAIL PROTECTED][EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fop with lenya: how can I suppress the lenya:meta in a created pdf
Michael Wechner wrote: Sascha Teifke wrote: Michael Wechner wrote: Sascha Teifke wrote: I am using fop with apache lenya to create pdf files. I'm using a simple xsl-file for transforming the created lenya xml files into pdf files: fo:page-sequence master-reference=all fo:flow flow-name=xsl-region-body fo:blockxsl:apply-templates//fo:block xsl:apply-templates select=/html/*[local-name() != 'meta']/ HTH Michi I did so, but now my page is blank ... I guess the namespaces needed to be added ... Michi Sorry, I am completely new to this and I really hope it isn't to annoying how can this be done? - 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]
text-indent issue
If I have text-indent specified on an fo:block and if I have a nested block within this, the text following this nested block is indented as well. For example: fo:block text-indent="5" This is just for testing purpose and this line will be indented. fo:blockthis is the nested block /fo:block The text following the nested block is indented as well...not sure if this is as per spec. since it does not happen in other renderers. /fo:block In the above example, the text following the second block should not be indented since text-indent applies only to the first line of that block and not to any subsequent text in that block. Is there a way to get around this issue by specifying some property on the first block? I appreciate your help. Thanks, Kumar Puppala
Re: text-indent issue
Since both the text preceding the nested block and the text following the nested block are within the indented block, the text after the nested block gets indented. You'd need to move the text after the nested block to its own block to not have it be indented. fo:block text-indent=5 This is just for testing purpose and this line will be indented. fo:blockthis is the nested block /fo:block /fo:block fo:block The text following the nested block is indented as well...not sure if this is as per spec. since it does not happen in other renderers. /fo:block If other rendering engines are NOT indenting the text after the nested block, then they are not honoring the spec. The attributes of a block should be applied to ALL the things within the block (unless specifically overridden by a child element's attributes). HTH Jay Bryant Bryant Communication Services (presently consulting at Synergistic Solution Technologies) Puppala, Kumar (LNG-DAY) [EMAIL PROTECTED] 03/16/2005 12:31 PM Please respond to fop-users@xmlgraphics.apache.org To 'fop-users@xmlgraphics.apache.org' fop-users@xmlgraphics.apache.org cc Subject text-indent issue If I have text-indent specified on an fo:block and if I have a nested block within this, the text following this nested block is indented as well. For example: fo:block text-indent=5 This is just for testing purpose and this line will be indented. fo:blockthis is the nested block /fo:block The text following the nested block is indented as well...not sure if this is as per spec. since it does not happen in other renderers. /fo:block In the above example, the text following the second block should not be indented since text-indent applies only to the first line of that block and not to any subsequent text in that block. Is there a way to get around this issue by specifying some property on the first block? I appreciate your help. Thanks, Kumar Puppala - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: text-indent issue
I totally agree that all the PCDATA is owned by the outer fo:block and hence when it applies the text-indent property, it should apply only to the first line in that block. The spec. for text-indent says: This property specifies the indentation of the first line of text in a block. More precisely, it specifies the indentation of the first box that flows into the block's first line box. The box is indented with respect to the left (or right, for right-to-left layout) edge of theline box. User agents should render this indentation as blank space. Any thoughts or comments? Thanks, Kumar Puppala -Original Message- From: Glen Mazza [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 1:46 PM To: fop-users@xmlgraphics.apache.org Subject: Re: text-indent issue --- Puppala, Kumar (LNG-DAY) [EMAIL PROTECTED] wrote: If I have text-indent specified on an fo:block and if I have a nested block within this, the text following this nested block is indented as well. For example: fo:block text-indent=5 This is just for testing purpose and this line will be indented. fo:blockthis is the nested block /fo:block The text following the nested block is indented as well...not sure if this is as per spec. since it does not happen in other renderers. /fo:block In the above example, the text following the second block should not be indented since text-indent applies only to the first line of that block and not to any subsequent text in that block. I really don't think so. All of the PCDATA in your example is owned by that outer fo:block, and subject to its properties. Is there a way to get around this issue by specifying some property on the first block? I appreciate your help. De-nest your fo:blocks? Glen - 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]