how do u draw vertical and horizondal lines without using table outerlines?
Hello, I have a more or less design issue here. Please have a look at my pdf attachment. this is a insurance card needed for CAR regstration in germany. I managed to make this using FOP with correct measurement as of the original document. But, I have a problem here , when u look at the lines drawn , so many places u can see double lines. this is because of my design where I used tables inside tables , and used my xsl to draw table borders wherever the table outlines appear. I want to get rid of this problem. but I have no idea how to go about it. there is not vertical line drawing feature here I guess. I am not so good in xslt transformation though. I tried using XMLSPY version 5 release 4's Stylesheet designer for ressolving this problem. but I hardly could work on it as per my wish. so gave up that idea. thanks Best Regards, sudha doppelkarte_asdf_asdfa_2003-05-23.pdf Description: Adobe PDF document - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: UTF-8 errors
Yes! Thanks! I actually got to the bottom of it shortly before I received this mail. For the record and if it helps anybody else... I was generating my input XML data from an SQL query on a MySql database. The database is configured (well, it came out-of-the-box) as default ISO-8859-1. I generate the XML using a perl script (XML::Generator::DBI and XML::Hander::YAWriter), which defaults to UTF-8 encoding. Hence the problem. I only got away with it for as long as I did, because I must only have had old-fashioned ASCII data in my tables. When I introduced some Norwegian customers it all fell over. It was simply a matter of telling YAWriter to encode ISO-8859-1 (and changing the ?xml line appropriately) and all was well. Thanks for everybody's help! H. I encountered a similar error. The problem was that I was generating an XML document that contained non UTF-8 data but I incorrectly indicated that the document was UTF-8 in the prolog: ?xml version=1.0 encoding=UTF-8?. FOP encountered a non UTF-8 character (a foreign currency symbol in my case) and threw the same king of invalid byte sequence error. The solution is to change the document's encoding. When generating your output document, change the encoding to ISO-8859-1 or whatever the proper encoding is for the kind of character data your document contains. E.g. ?xml version=1.0 encoding=ISO-8859-1? Note: I am using Castor's Marshaller to generate an XML document from JavaBeans and I had to tell it to use the proper encoding like this: marshaller.setEncoding( ISO-8859-1 ); -Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 6:00 AM To: [EMAIL PROTECTED] Subject: UTF-8 errors Hi, When I run FOP, I get the following error... Invalid byte 2 of 2 byte UTF-8 sequence ...followed by an extensive trace. I have a pretty clear idea of what it mean but not what to do about it!! The following problems spring to mind... * What file is the invalid sequence in? Is it my xml (input) file or the xsl file? * Even if I identify the file, where/which character is causing the problem * how do I fix it :-) I guess what I am saying is that the error message is getting towards useless... Has anybody got any suggestions on how to proceed with this? Any help much appreciated - 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: xsl:fo word
i'm trying to convert a large ms word 2000 file to xsl:fo. Are there any converters available? Don't know about direct converters, but there are several stable RTF to XML converters: for example, upCast which colleagues of mine used successfully in a project, and also logictran and majix of which I know little. -- Bertrand Delacretaz independent consultant, Lausanne, Switzerland http://cvs.apache.org/~bdelacretaz/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: Re: WriteBeyondContentLengthException
Sorry I meant to send my previous post to the list, so all can see. Looks like content and res are parameters to this method because I cant see their definition anywhere in the code you sent me. Your code wont work because you need to set contentLength on the response after you have run the transformation and generated the PDF. You dont know the number of bytes in the PDF until after the line I have highlighted below: From: [EMAIL PROTECTED] try { XMLOutputter serializer = new XMLOutputter(); output = serializer.outputString(document); op = res.getOutputStream(); res.setContentType (application/application/x-ms-download); res.setHeader (Content-Disposition, attachment;filename=\ + fileName + \); try{ //Setup driver Driver driver = new Driver(); //Setup logger Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO); driver.setLogger(logger); MessageHandler.setScreenLogger(logger); //Setup Renderer (output format) driver.setRenderer(Driver.RENDER_PDF); File userConfigFile = new File(userconfig.xml); Options options = new Options(userConfigFile); byte [] arrXML = content.getBytes(); InputStream xml = new ByteArrayInputStream(arrXML); res.setContentLength(arrXML.length); File xslt = new File(sl-pdf.xsl); try { driver.setOutputStream(op); //Setup XSLT TransformerFactory tf = TransformerFactory.newInstance(); Transformer t = tf.newTransformer(new StreamSource(xslt)); //Setup input for XSLT transformation Source src = new StreamSource(xml); //Resulting SAX events (the generated FO) must be piped through o FOP Result result = new SAXResult(driver.getContentHandler()); //Start XSLT transformation and FOP processing t.transform(src, result); op.flush(); *** bytes of PDF arent available until here. } catch() -- Besplatni e-mail - http://webmail.iskon.hr/ _ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: fo word
Title: RE: fo word You can try this: http://www.rtf2fo.com/download.html Save your word 2k doc as an rtf, if your formatting will allow. Run it though rtf2fo, get the fo, and go from there This would be a quick and dirty solution As rtf2fo is a commercial product, it does replace some characters in your file. Rob -Original Message- From: Mirko Sertic [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 16, 2003 10:49 AM To: Fop-User Subject: xsl:fo word Hello to all! i'm trying to convert a large ms word 2000 file to xsl:fo. Are there any converters available? I don't want to type everything again, and i also want to keep the existing text format. Has anybody done this before ??? Thanks a lot. Cheers Mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xsl:fo word
At 15:49 16/07/03 +0200, you wrote: Hello to all! i'm trying to convert a large ms word 2000 file to xsl:fo. Are there any converters available? I don't want to type everything again, and i also want to keep the existing text format. OK, Here is what I suggest based on an educated guess. You probably want to convert the MS Word document to some XML format such as OpenOffice or MS Office 11 (I think that is right - I don't know much about MS Office). If you can read the document in OpenOffice and save it as an OpenOffice document then you can open up the document with a zip tool to see that it is in fact several XML files inside. One of these XML files is important and contains most of the data. You might be able to take the data and use XSLT to convert it to xsl:fo (or preferably an intermediate XML format). I doubt you will get the XSL:FO to look identical to the MS Word document. The important point here is that you probably need different bits of the Open Office document to be defined with different user-defined styles because these names will appear in the XML and can be used when you do the XSLT transformation. Feel free to email me off list if you need more of a hand. Alex McLintock - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
borders problems
hi, i upgrated from the 0.18 to 0.25 and now i have trouble with table borders,some are missing and there's no special processing for them! can somebody help me with this..? thanks. othman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UTF-8 errors
Steve Albin wrote: Note: I am using Castor's Marshaller to generate an XML document from JavaBeans and I had to tell it to use the proper encoding like this: marshaller.setEncoding( ISO-8859-1 ); If an XML tool requires you to specify the correct encoding instead of re-encoding the data itself, it is crap. File a bug report. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Blank page at the end
Ramon Maria Gallart wrote: The thing is that i'm using relative heights, so i can't calculate the overall size of the blocks contained in the page (or, at least, i just don't know how to do it, i've found nothing about it in the API). Any other suggerence? Check whether there is any space-after coming form somewhere. If the FO source isn't too big (after compression), and if you can post it to the list, I can have a look at it. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how do u draw vertical and horizondal lines without using table outerlines?
sudha. wrote: But, I have a problem here , when u look at the lines drawn , so many places u can see double lines. this is because of my design where I used tables inside tables , and used my xsl to draw table borders wherever the table outlines appear. I want to get rid of this problem. but I have no idea how to go about it. there is not vertical line drawing feature here I guess. There are several possible approaches. It the whole stuff is guaranteed to fit a page you can use a table with row- and column-spanning cells for the grid. Another possibility is to use absolutely positioned cointainers and either specify appropriate borders individually, for example full width only where no other borders match or do careful positioning so that the actual borders overlap. I am not so good in xslt transformation though. I don't think you need to be all that good at XSLT for this. But then: I tried using XMLSPY version 5 release 4's Stylesheet designer for ressolving this problem. You are probably better off writing a FO file by hand which does exactly the layout you want with some blind text and then use it as a base to create a style sheet. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WriteBeyondContentLengthException
[EMAIL PROTECTED] wrote: also, i made document object and i transformed it in String String output = serializer.outputString(); and now i wrote response.setContentLength(output.length()); result of transformation is WriteBeyondContentLengthException i persume that croatian letters are in unicode and because of that they need more bytes. how to solve it? Perhaps byte output[]=serializer.toString().getBytes() response.setContentLength(output.length); although I don't understand where the serializer comes from and why you think you'll have to stringify it. PDF is binary, and you should use a ByteArrayOutputStream as shown in the sample servlet. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with keep-with-next properties
Bargel, Britta wrote: I have two table-rows which should be on the same page. I have set the propertie keep-wiht-next=always. Nevertheless those table rows are separated by a page break. If FOP can't fit a table onto a page due to keep constraints, keeps are turned off for the rest of the table. Check whether this is your problem. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: borders problems
Othman HADDAD wrote: i upgrated from the 0.18 to 0.25 and now i have trouble with table borders,some are missing and there's no special processing for them! can somebody help me with this..? You could be a bit more specific on your problem, couldn't you? I guess you have borders defined on table rows. This feature has been removed in favor of better support for collapsing. Define your borders on table cells only. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Large Memory Footprints-FOP status
FOP appears to be hogging a large memory utilization. I'm creating a 20 page dynamic pdf with embedded SVG graphs on each page and it looks like FOP requires about 120M to produce the 793K pdf on our UNIX server. If I start getting a lot of hits I might have to consider offloading FOP processing to it's own server. I have implemented page-sequences for each page to try to optimize memory. I'm using the 5/20/2003 fop.jar. I read that the ALT DESIGN is attempting to address some of these issues but I need a solution pretty soon and don't know if/when this will come to fruition. Does anyone have any recommendations? Thanks! -mark -- The information in this e-mail and any attachments are for the sole use of the intended recipient and may contain privileged and confidential information. If you are not the intended recipient, any use, disclosure, copying or distribution of this message or attachment is strictly prohibited. If you believe that you have received this e-mail in error, please contact the sender immediately and delete the e-mail and all of its attachments. == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]