RE: Basic help needed

2005-04-21 Thread Roland Neilands
Ashley, To stop editing you can use this: http://xml.apache.org/fop/pdfencryption.html To wrap at 80 chars there are several solutions, but it really depends on your situation: as Jay suggested you might be trying to do something XSL-FO does automatically & better. For a preformatted text file

Re: AW: Html 2 FO

2005-04-21 Thread The Web Maestro
Just shooting from the hip (I don't *know* the answers, but here're my guesses...) On Apr 21, 2005, at 3:07 AM, Matthias Wessendorf wrote: I forgot the messages for that use case! so perhaps anybody has an idea for me :)) C:\JavaLibs>fop foo.fo -pdf foo.pdf [INFO] Using org.apache.xerces.parsers

Re: Using a non-standard font in FOP

2005-04-21 Thread The Web Maestro
On Apr 21, 2005, at 7:15 AM, Richard Korthuis wrote: Hello, For a commercial application I want to use FOP with the Garamond-font to generate a PDF-file. Can I simply embed the Windows Garamond-font or are there any licensing issues I should consider? Do I have to pay to use this font? If so where

RE: Basic help needed

2005-04-21 Thread JBryant
It usually is silly, but it's these silly things that keep money in our bank accounts. Anyway, if you want to break the line at the space closest to 80 (but not after 80), this stylesheet will do it: http://www.w3.org/1999/XSL/Transform"; xmlns:fo="http://www.w3.org/1999/XSL/Format"; xmlns:f

Re: Basic help needed

2005-04-21 Thread Luke Shannon
Here is another idea. Its is more hacky, but it never hurts to have options. You could build your XSL-FO document in memory. Use something similar to the simple.fo from the examples as a base. You could create a method using regex to determine when you have hit 80 characters as you process your t

Re: Basic help needed

2005-04-21 Thread Mike Trotman
I haven't tried this - so it's purely theoretical and I'm just thinking aloud. To have wrapping at 80 characters look nice - use a fixed pitch font. To get your text to wrap - and obey justification and hyphenation if you want it, you want to produce it inside something where you can specify an

RE: Basic help needed

2005-04-21 Thread Zaleski, Matthew \(M.E.\)
Wouldn't it be quicker to just generate an MD5SUM value and check if it is changed? IIRC you will still have to use another tool like iText to lock down the PDF (I could be wrong here as I never tried to do this). > -Original Message- > From: Ashley Martens [mailto:[EMAIL PROTECTED] > S

RE: Basic help needed

2005-04-21 Thread Ashley Martens
It's really silly. I'm creating this software to interface another company. That company returns a report as a text file, however, my client does not want his employees to be able to change the text file so he wants it converted to a PDF. -Original Message- From: [EMAIL PROTECTED] [mai

Re: Basic help needed

2005-04-21 Thread JBryant
Well, FO doesn't have any sense of breaking at an arbitrary number of characters. The FO idiom is to fill the line until the end of the line or the end of the text is reached. If you really want to break the text every eighty lines, you can do it with XSLT and then put each chunk in its own blo

Basic help needed

2005-04-21 Thread Ashley Martens
I trying to convert a simple text document, with no line feeds, into a simple PDF that is wrapped at 80 characters. Can anyone suggest the FO syntax to do this? E-Mail Confidentiality Notification --- This e-mail message (and any associated files) contains info

Re: How to transform a block or inline in uppercase

2005-04-21 Thread JBryant
If you use XSLT 2.0, you could use the upper-case() function. (It's actually an XPath 2.0 function.) What is there about your problem that prevents the translate() function from being sufficient? Please post your input and desired output. If you want small-caps, I wrote an XSLT 1.0 solution to

Using a non-standard font in FOP

2005-04-21 Thread Richard Korthuis
Hello,   For a commercial application I want to use FOP with the Garamond-font to generate a PDF-file. Can I simply embed the Windows Garamond-font or are there any licensing issues I should consider? Do I have to pay to use this font? If so where can I get a license to use this font?  

Re: How to transform a block or inline in uppercase

2005-04-21 Thread Louis . Masters
Willy: Why not use xsl's translate? I have something like (upper to lower): translate($something,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')

AW: Html 2 FO

2005-04-21 Thread Matthias Wessendorf
I forgot the messages for that use case! so perhaps anybody has an idea for me :)) C:\JavaLibs>fop foo.fo -pdf foo.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 ob

AW: Html 2 FO

2005-04-21 Thread Matthias Wessendorf
Btw. also I (again) removed the contry, language and hyphenation at and again, all is fine -mw- -Ursprüngliche Nachricht- Von: Matthias Wessendorf [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 21. April 2005 11:59 An: fop-users@xmlgraphics.apache.org; Andreas Jung Betreff: AW: Html

AW: Html 2 FO

2005-04-21 Thread Matthias Wessendorf
After I also asked the css2xslfo list, I figured out, that for my problem hyphenation is the problem. When I manually remove language etc. FOP generates me a fine (and simple PDF) I saw, that I have to use fop-hyph.jar So I put that JAR into my CLAZZPATH so fine... a new Error message... Inst

Re: AW: Html 2 FO

2005-04-21 Thread Andreas Jung
--On Donnerstag, 21. April 2005 10:32 Uhr +0200 Matthias Wessendorf <[EMAIL PROTECTED]> wrote: Andreas, thanks! I tried (css2xslfo.jar) it and it generates me a *.fo but when I try to use FOP to build a PDF I become an endless loop... (see below) the same with css2fop.jar FOP (at least FOP 0.20.

AW: Html 2 FO

2005-04-21 Thread Matthias Wessendorf
Andreas, thanks! I tried (css2xslfo.jar) it and it generates me a *.fo but when I try to use FOP to build a PDF I become an endless loop... (see below) the same with css2fop.jar Any idea? -messages--- -- [INFO] building formattin

How to transform a block or inline in uppercase

2005-04-21 Thread Willy Reinhardt
Hi, I would set a text in uppercase I have no problem if I would use small-caps but all characters in capitale with the same size I don't found a clean solution (the solution xsl function translate isn't enough). text-transform="uppercase" can't be use with block or inline and font-variant has

Re: Html 2 FO

2005-04-21 Thread Andreas Jung
--On Donnerstag, 21. April 2005 8:38 Uhr +0200 Matthias Wessendorf <[EMAIL PROTECTED]> wrote: Hi folks, I found an old (and C based) tool that is able to *convert* html into XSL-FO. Does anybody know a java-way for this ? Look at -aj pgpVDZRl3VDwd.pgp Description:

Html 2 FO

2005-04-21 Thread Matthias Wessendorf
Hi folks, I found an old (and C based) tool that is able to *convert* html into XSL-FO. Does anybody know a java-way for this ? thanks, matthias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI