RE: Error areas pending text probably lost
Below is the FO that comes out when I run my xml and xsl through xalan. Right now I use a xml and xsl to gene rate the PDF. I can see that the first letter is there in the FO but it is lost when rendering through FOP. Also this line appears at the end of a page and the word 'Condition' appears on the next page but the letter 'C' is missing from it. Is there any thing I can do for this not to happen. I am not able to run with the -d option coz I am not sure if I can use two options at a time as I use a userconfiguration file to embeed one font and hence need to use -c option. Let me know how I can use both options and I will give it a try. Thanks, Abhi FO SNIPPET fo:block line-height=1.2em space-before=5pt color=black start-indent=from-parent(start-indent) + 12pt fo:inline font-weight=bold font-style=italic font-size=10pt font-family=Helvetica text-align=left color=blackSome Title/fo:inline fo:inline color=black space-before.conditionality=discard This applies in all the cases except when fo:inline font-family=Helvetica font-weight=bold font-variant=small-caps font-size=12ptCondition 4/fo:inline of terms and conditions is true /fo:inline /fo:block __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
version number Re: Error areas pending text probably lost
Sorry I forgot to mention that. But i am using fop-0.20.5 version __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error areas pending text probably lost
Can't you remove font-variant=small-caps from your XSL? -Original Message- From: Abhijit Junnare [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 10:53 AM To: [EMAIL PROTECTED] Subject: RE: Error areas pending text probably lost Below is the FO that comes out when I run my xml and xsl through xalan. Right now I use a xml and xsl to gene rate the PDF. I can see that the first letter is there in the FO but it is lost when rendering through FOP. Also this line appears at the end of a page and the word 'Condition' appears on the next page but the letter 'C' is missing from it. Is there any thing I can do for this not to happen. I am not able to run with the -d option coz I am not sure if I can use two options at a time as I use a userconfiguration file to embeed one font and hence need to use -c option. Let me know how I can use both options and I will give it a try. Thanks, Abhi FO SNIPPET fo:block line-height=1.2em space-before=5pt color=black start-indent=from-parent(start-indent) + 12pt fo:inline font-weight=bold font-style=italic font-size=10pt font-family=Helvetica text-align=left color=blackSome Title/fo:inline fo:inline color=black space-before.conditionality=discard This applies in all the cases except when fo:inline font-family=Helvetica font-weight=bold font-variant=small-caps font-size=12ptCondition 4/fo:inline of terms and conditions is true /fo:inline /fo:block __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ This message contains information that may be privileged or confidential and is the property of the Cap Gemini/Ernst Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ___ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error areas pending text probably lost
No I cannot. We have a strict formatting specification and so I cannoot remove the small-caps formatting style. Any other suggestions? --- Forget, Pascal [EMAIL PROTECTED] wrote: Can't you remove font-variant=small-caps from your XSL? __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error areas pending text probably lost
-Original Message- From: Abhijit Junnare [mailto:[EMAIL PROTECTED] snip / fo:inline color=black space-before.conditionality=discard This applies in all the cases except when fo:inline font-family=Helvetica font-weight=bold font-variant=small-caps font-size=12ptCondition 4/fo:inline of terms and conditions is true /fo:inline /fo:block Nested inlines... My guess is: there's the bugger! Can you try rendering again, but replacing the inner fo:inline in the above snippet with an fo:wrapper, like: fo:inline color=black ... This applies in all the cases except when fo:wrapper font-family=Helvetica ... Condition 4/fo:wrapper of terms and conditions is true/fo:inline /fo:block And let us know if that removes the error? Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error areas pending text probably lost
I tried replacing the inner fo:inline with fo:wrapper but the result is the same. The text is still lost. any more ideas? --- Andreas L. Delmelle [EMAIL PROTECTED] wrote: -Original Message- From: Abhijit Junnare [mailto:[EMAIL PROTECTED] snip / fo:inline color=black space-before.conditionality=discard This applies in all the cases except when fo:inline font-family=Helvetica font-weight=bold font-variant=small-caps font-size=12ptCondition 4/fo:inline of terms and conditions is true /fo:inline /fo:block Nested inlines... My guess is: there's the bugger! Can you try rendering again, but replacing the inner fo:inline in the above snippet with an fo:wrapper, like: fo:inline color=black ... This applies in all the cases except when fo:wrapper font-family=Helvetica ... Condition 4/fo:wrapper of terms and conditions is true/fo:inline /fo:block And let us know if that removes the error? Cheers, Andreas __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error areas pending text probably lost
-Original Message- From: Forget, Pascal [mailto:[EMAIL PROTECTED] Can't you remove font-variant=small-caps from your XSL? Silly question maybe, but what exactly would that achieve? Hmm. Could indeed be just that... AFAIK 0.20.5 uses simulated small-caps (regular caps at 80% the font-size), so probably it's got something to do with the role of this in the calculations. (The first character wouldn't be subject to the scaling, which could explain its mystical status --disappearing as it does ;) ) Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error areas pending text probably lost
So??? But I need to use small-caps so I cant give up on that. --- Andreas L. Delmelle [EMAIL PROTECTED] wrote: Can't you remove font-variant=small-caps from your XSL? Silly question maybe, but what exactly would that achieve? Hmm. Could indeed be just that... AFAIK 0.20.5 uses simulated small-caps (regular caps at 80% the font-size), so probably it's got something to do with the role of this in the calculations. (The first character wouldn't be subject to the scaling, which could explain its mystical status --disappearing as it does ;) ) Cheers, Andreas __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error areas pending text probably lost
Andreas L. Delmelle wrote: Nested inlines... My guess is: there's the bugger! Correct. Can you try rendering again, but replacing the inner fo:inline in the above snippet with an fo:wrapper, Won't work. The problem is as follows: The line layout is called with a bunch of characters. It is scanned for possible line breaks, more or less whitespace (which is incomplete in itself). If the character sequence is exhausted before a break possibility is encountered but there's still space left in the line, the text snippet processed so far is stored in the pending area list, because it might be wrapped to the next line. Upon the next call, scanning proceeds, and if the line is full without finding a break possiblity, processing is unwound unto the block, which generates a new line. This new line grabs the pending area list from the previous line and adds it to itself, because it's word content which had been wrapped. The problem occurs if the overflowed line is at the end of the page, because the block layout code which would otherwise generate a new line returns up to the page layout loop. New block areas are created, the link to the line with the non-empty pending area list is lost, and the new line starts without the wrapped text. The error message is generated in the renderer which simply looks at the pending area list of the line, which should have been emptied. The problem occurs rarely because it only happens if a word is fragmented so that the pending area list is filled. Because some code accumulates the SAX character events, only inline FOs which mark parts of a word may cause this. The only way around the bug is to eliminate the inline FOs, or fine tune display space in order to avoid having the content in question falling at the edge of a page. A similar, but code-wise unrelated bug occurs when an inline graphic is added which is too high to fit the available space on the page: the text already in the line is lost. Fortunately, FOP can't cope with dynamic line height anyway, so people rarely do this. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error areas pending text probably lost
-Original Message- From: Abhijit Junnare [mailto:[EMAIL PROTECTED] I tried replacing the inner fo:inline with fo:wrapper but the result is the same. The text is still lost. any more ideas? I can't seem to reproduce this at first glance... Can you provide us with a bit more context? FYI: appending your supplied block snippet to the simple.fo example file that comes with FOP gave no problems at all with 0.20.5. (1.0-dev still had problems with the small-caps and seems to swallow some text after a linebreak...) Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error areas pending text probably lost
-Original Message- From: Abhijit Junnare [mailto:[EMAIL PROTECTED] So??? But I need to use small-caps so I cant give up on that. Sorry, this one was meant more as an explanation of what could be the source of the behaviour (--for future reference :) ) Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error areas pending text probably lost
-Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] snip / Won't work. The problem is as follows: snip .. with kind permission ;) / Yes siree! He 'dze' man :) Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error areas pending text probably lost
Andreas L. Delmelle wrote: I can't seem to reproduce this at first glance... Can you provide us with a bit more context? See Bug #13464 J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error = id already exists
Hi, Thanks for the replies. I've now found a way of removing the problem from the template concerned and that is to remove any fo:wrapper tags. These are the source of the problem and their removal does not seem to have any impact on the outputted pdf. Thanks again, Mark - Original Message - From: J.Pietschmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 9:31 PM Subject: Re: error = id already exists Mark Williams wrote: Hi, I've searched the mailing lists for info on the above error, but couldn't find anything much on the subject. Basically, we have a largeish xslt stylesheet (produces roughly a 12 page document), which contains a table with rows that repeat for however many times a particular node appears in the XML file. If it appears more than once, so that the table row has to be repeated, we keep getting the above FOP exception, ie that the id exists. The id is the id assigned by FOP to the fo:wrapper property for each row. There is an error statement for each fo-wrapper for each row I have checked the xslt stylesheet and there is no duplication. FOP does not assign IDs. You are actually using a two stage process: 1st stage: transforming the XML into XSLFO using the style sheet 2nd stage: rendering the XSLFO into the output format. It's quite possible that the same id is used multiple times even if it is only once in the style sheet. Run the transformation standalone http://xml.apache.org/fop/running.html#check-input and examine the output. There's also a slight chance you got the still not completely fixed duplicate id bug, which may bite you in a few somewhat exotic situations. If your FO file doesn't have dupliacted ids, send in the FO snippet surrounding the place where the objectionable id occurs. 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: error = id already exists
Hi everybody, J.Pietschmann wrote: There's also a slight chance you got the still not completely fixed duplicate id bug, which may bite you in a few somewhat exotic situations. If your FO file doesn't have dupliacted ids, send in the FO snippet surrounding the place where the objectionable id occurs. I do have exactly this problem. I generate fo from Docbook-XML with docbook-xslt-stylesheets version 1.64.0 and I get the error null:640:1159 The id d0e1379 already exists in this document from Fop 0.20.5 when generating PDF. Please note that the id from the error-message is in fact unique in the complete FO-document. Please see below the fo-snippet containing the id. Thanks for any help, Peer. fo:block id=d0e1373 fo:block fo:block fo:block keep-together=always margin-left=0cm font-family=Helvetica,Arial,sans-serif,Symbol,ZapfDingbats fo:block keep-with-next.within-column=always fo:block font-family=Helvetica,Arial,sans-serif font-weight=bold keep-with-next.within-column=always space-before.minimum=0.8em space-before.optimum=1.0em space-before.maximum=1.2em fo:marker marker-class-name=section.head.marker4. FAQ - Frequently asked Questions (and answers) /fo:marker fo:block font-size=24.8832pt4. FAQ - Frequently asked Questions (and answers)/fo:block /fo:block /fo:block /fo:block /fo:block fo:block/ /fo:block fo:block id=d0e1376 fo:list-block space-before.optimum=0em space-before.minimum=0em space-before.maximum=0em space-after.optimum=1em space-after.minimum=0.8em space-after.maximum=1.2em provisional-label-separation=0.2em provisional-distance-between-starts=2.5em fo:list-item space-before.optimum=0.8em space-before.minimum=0.5em space-before.maximum=1.0em id=d0e1378 fo:list-item-label id=d0e1379 end-indent=label-end() fo:block4.1. /fo:block /fo:list-item-label fo:list-item-body start-indent=body-start() fo:block space-before.optimum=1em space-before.minimum=0.8em space-before.maximum=1.2emWhich editor program should I use?/fo:block /fo:list-item-body /fo:list-item fo:list-item space-before.optimum=0.8em space-before.minimum=0.5em space-before.maximum=1.0em fo:list-item-label id=d0e1382 end-indent=label-end() fo:block/ /fo:list-item-label fo:list-item-body start-indent=body-start() fo:block space-before.optimum=1em space-before.minimum=0.8em space-before.maximum=1.2emUse whatever you like - your favourite text/XML editor./fo:block /fo:list-item-body /fo:list-item /fo:list-block /fo:block /fo:block - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error = id already exists
You can get passed this problem by applying the patch that Nancy Deschenes wrote.. I got her patch, recompiled that class and updated the jar and all was good again.. Here is the link to the bug report and patch: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3497 -Original Message- From: Peer Brink [mailto:[EMAIL PROTECTED] Sent: Thursday, 5 February 2004 3:50 PM To: [EMAIL PROTECTED] Subject: Re: error = id already exists Hi everybody, J.Pietschmann wrote: There's also a slight chance you got the still not completely fixed duplicate id bug, which may bite you in a few somewhat exotic situations. If your FO file doesn't have dupliacted ids, send in the FO snippet surrounding the place where the objectionable id occurs. I do have exactly this problem. I generate fo from Docbook-XML with docbook-xslt-stylesheets version 1.64.0 and I get the error null:640:1159 The id d0e1379 already exists in this document from Fop 0.20.5 when generating PDF. Please note that the id from the error-message is in fact unique in the complete FO-document. Please see below the fo-snippet containing the id. Thanks for any help, Peer. fo:block id=d0e1373 fo:block fo:block fo:block keep-together=always margin-left=0cm font-family=Helvetica,Arial,sans-serif,Symbol,ZapfDingbats fo:block keep-with-next.within-column=always fo:block font-family=Helvetica,Arial,sans-serif font-weight=bold keep-with-next.within-column=always space-before.minimum=0.8em space-before.optimum=1.0em space-before.maximum=1.2em fo:marker marker-class-name=section.head.marker4. FAQ - Frequently asked Questions (and answers) /fo:marker fo:block font-size=24.8832pt4. FAQ - Frequently asked Questions (and answers)/fo:block /fo:block /fo:block /fo:block /fo:block fo:block/ /fo:block fo:block id=d0e1376 fo:list-block space-before.optimum=0em space-before.minimum=0em space-before.maximum=0em space-after.optimum=1em space-after.minimum=0.8em space-after.maximum=1.2em provisional-label-separation=0.2em provisional-distance-between-starts=2.5em fo:list-item space-before.optimum=0.8em space-before.minimum=0.5em space-before.maximum=1.0em id=d0e1378 fo:list-item-label id=d0e1379 end-indent=label-end() fo:block4.1. /fo:block /fo:list-item-label fo:list-item-body start-indent=body-start() fo:block space-before.optimum=1em space-before.minimum=0.8em space-before.maximum=1.2emWhich editor program should I use?/fo:block /fo:list-item-body /fo:list-item fo:list-item space-before.optimum=0.8em space-before.minimum=0.5em space-before.maximum=1.0em fo:list-item-label id=d0e1382 end-indent=label-end() fo:block/ /fo:list-item-label fo:list-item-body start-indent=body-start() fo:block space-before.optimum=1em space-before.minimum=0.8em space-before.maximum=1.2emUse whatever you like - your favourite text/XML editor./fo:block /fo:list-item-body /fo:list-item /fo:list-block /fo:block /fo:block - 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: error = id already exists
Adrian Sobotta wrote: You can get passed this problem by applying the patch that Nancy Deschenes wrote.. I got her patch, recompiled that class and updated the jar and all was good again.. Here is the link to the bug report and patch: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3497 This patch is already in the code. There are still FOs which don't unregister the id in case of undoing some layout, IIRC the cases left require some more thinking in order to get it right. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error = id already exists
Hi, I've searched the mailing lists for info on the above error, but couldn't find anything much on the subject. Basically, we have a largeish xslt stylesheet (produces roughly a 12 page document), which contains a table with rows that repeat for however many times a particular node appears in the XML file. If it appears more than once, so that the table row has to be repeated, we keep getting the above FOP exception, ie that the id exists. The id is the id assigned by FOP to the fo:wrapper property for each row. There is an error statement for each fo-wrapper for each row I have checked the xslt stylesheet and there is no duplication. Although I could find one or two threads on the subject, I could not actually find a resolution and the problems seemed to be related to manually assigned ids not FOP assigned ids as in this case. Unless it's something that I'm doing wrong, I'm surprised that this problem has not cropped up more often. Does anyone please know of a solution to this problem. Yours gratefully, Mark Williams - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error = id already exists
You probably have to id=value with the same value. Remember, id values must be unique across the whole document, not just the element they are used on. (*Chris*) - Original Message - From: Mark Williams [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 11:32 am Subject: error = id already exists Hi, I've searched the mailing lists for info on the above error, but couldn't find anything much on the subject. Basically, we have a largeish xslt stylesheet (produces roughly a 12 page document), which contains a table with rows that repeat for however many times a particular node appears in the XML file. If it appears more than once, so that the table row has to be repeated, we keep getting the above FOP exception, ie that the id exists. The id is the id assigned by FOP to the fo:wrapper property for each row. There is an error statement for each fo-wrapper for each row I have checked the xslt stylesheet and there is no duplication. Although I could find one or two threads on the subject, I could not actually find a resolution and the problems seemed to be related to manually assigned ids not FOP assigned ids as in this case. Unless it's something that I'm doing wrong, I'm surprised that this problem has not cropped up more often. Does anyone please know of a solution to this problem. Yours gratefully, Mark Williams - 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: error = id already exists
Mark Williams wrote: Hi, I've searched the mailing lists for info on the above error, but couldn't find anything much on the subject. Basically, we have a largeish xslt stylesheet (produces roughly a 12 page document), which contains a table with rows that repeat for however many times a particular node appears in the XML file. If it appears more than once, so that the table row has to be repeated, we keep getting the above FOP exception, ie that the id exists. The id is the id assigned by FOP to the fo:wrapper property for each row. There is an error statement for each fo-wrapper for each row I have checked the xslt stylesheet and there is no duplication. FOP does not assign IDs. You are actually using a two stage process: 1st stage: transforming the XML into XSLFO using the style sheet 2nd stage: rendering the XSLFO into the output format. It's quite possible that the same id is used multiple times even if it is only once in the style sheet. Run the transformation standalone http://xml.apache.org/fop/running.html#check-input and examine the output. There's also a slight chance you got the still not completely fixed duplicate id bug, which may bite you in a few somewhat exotic situations. If your FO file doesn't have dupliacted ids, send in the FO snippet surrounding the place where the objectionable id occurs. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fo to pdf conversion error
Hi, I am getting the following error when I try to convert the fo (generated using xhtml +xsl) to pdf. Please help! Thanks, [ERROR] null org.apache.fop.apps.FOPException at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:11 1) at org.apache.fop.apps.Fop.main(Fop.java:62) - java.lang.ArrayIndexOutOfBoundsException at org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.ja va:130) at org.apache.fop.fo.flow.TableRow.initCellArray(TableRow.java:505) at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:271) at org.apache.fop.fo.flow.AbstractTableBody.layout(AbstractTableBody.jav a:236) at org.apache.fop.fo.flow.Table.layout(Table.java:302) at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154) at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110) at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java: 400) at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:33 8) at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source ) at org.apache.xerces.impl.dtd.XMLNSDTDValidator.endNamespaceScope(Unknow n Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S ource) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow n Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known 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(Driver.java:498) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:10 6) at org.apache.fop.apps.Fop.main(Fop.java:62) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: fo to pdf conversion error
did u try to use colspan as a table attribute or go over the num table cols declared, that seems to be what the message is stating, can u send the url of the xhtml - fo you are using I am looking for one also -Original Message- From: Saigeetha Govindarajan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 1:15 PM To: [EMAIL PROTECTED] Subject: fo to pdf conversion error Hi, I am getting the following error when I try to convert the fo (generated using xhtml +xsl) to pdf. Please help! Thanks, [ERROR] null org.apache.fop.apps.FOPException at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:11 1) at org.apache.fop.apps.Fop.main(Fop.java:62) - java.lang.ArrayIndexOutOfBoundsException at org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.ja va:130) at org.apache.fop.fo.flow.TableRow.initCellArray(TableRow.java:505) at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:271) at org.apache.fop.fo.flow.AbstractTableBody.layout(AbstractTableBody.jav a:236) at org.apache.fop.fo.flow.Table.layout(Table.java:302) at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154) at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110) at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java: 400) at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:33 8) at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source ) at org.apache.xerces.impl.dtd.XMLNSDTDValidator.endNamespaceScope(Unknow n Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S ource) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow n Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known 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(Driver.java:498) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:10 6) at org.apache.fop.apps.Fop.main(Fop.java:62) - 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: fo to pdf conversion error
i am not usre about this lib for converting xhtml to fo, but the one on the web I found is at http://www.xml.com/pub/a/2001/01/24/xsl-fo/index.html?page=1 and it states it does not handle colspan i ended up using apache for .20.5 i use xsl to convert xml into xsl-fo, which can then be run through apache.org.Fop to get pdf Thanks for the response. Yes I am using colspan... I am very new to xsl/fo, we are trying to convert html pages to pdf, let me know if you have any thoughts on doing it. I used the xsl from ibm, http://www-106.ibm.com/developerworks/xml/library/x-xslfo2app/ -Original Message- From: Saigeetha Govindarajan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 1:15 PM To: [EMAIL PROTECTED] Subject: fo to pdf conversion error Hi, I am getting the following error when I try to convert the fo (generated using xhtml +xsl) to pdf. Please help! Thanks, [ERROR] null org.apache.fop.apps.FOPException at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:11 1) at org.apache.fop.apps.Fop.main(Fop.java:62) - java.lang.ArrayIndexOutOfBoundsException at org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.ja va:130) at org.apache.fop.fo.flow.TableRow.initCellArray(TableRow.java:505) at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:271) at org.apache.fop.fo.flow.AbstractTableBody.layout(AbstractTableBody.jav a:236) at org.apache.fop.fo.flow.Table.layout(Table.java:302) at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154) at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110) at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java: 400) at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:33 8) at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source ) at org.apache.xerces.impl.dtd.XMLNSDTDValidator.endNamespaceScope(Unknow n Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S ource) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow n Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known 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(Driver.java:498) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:10 6) at org.apache.fop.apps.Fop.main(Fop.java:62) - 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: fo to pdf conversion error
How are you doing the FOP step ? Are you aware that the Command line for Fop can format the XSL-FO file ? It can also execute the XSLT transformation producing a SAX event stream that will be processed by Fop. It depends on whether you run: java org.apache.fop.apps.Fop -fo file.fo or java org.apache.fop.apps.Fop -xsl x.xsl -xml x.xml All is described on: http://xml.apache.org/fop/running.html -- John Austin [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error on AIX box with no X-Windows
Manjush G. Menon wrote: The java code exits; without throwing an Exception at the line where new Driver() instance is created. Does this have any relation with X-Windows? That's hard to say without taking a look at the actual exception message. However, FOP has indeed problems on headless servers, check the FAQ: http://xml.apache.org/fop/faq.html#svg-headless J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help: Error while loading a GIF from a URL.
Hi, It seems that the sun.net.www.http.KeepAliveStream class that FOP needs is version J2SE1.4.x complaint. We had J2SE 1.3.x version running on the AIX box. I had to change the URL references of the images to the system file path. Anyother workaround suggested to make FOP working in J2SE1.3.x with its own KeepAliveSream? Thanks -- Manjush G Menon - Original Message - From: John Austin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 15, 2004 5:23 AM Subject: Re: Need help: Error while loading a GIF from a URL. On Wed, 2004-01-14 at 18:45, J.Pietschmann wrote: Manjush G. Menon wrote: Iam running the FOP for PDF generateion on an AIX server, which threw the following error while attempting to load an image (GIF) from a URL. java.lang.ClassCastException - sun.net.www.http.KeepAliveStream It will work with the http://localhost:port/Web/wam/etc/Ue.gif I suppose..(will it?) Is it anything related to FOP build? I don't think so. It rather looks like you have problems with the JRE or a mixup of various JRE versions. Looks network-related. Is it repeatable ? -- John Austin [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]
Antwort: Re: Need help: Error while loading a GIF from a URL.
Hi! We had the same problem and we tried a lot of things - but sorry no other workaround at all :-( regards Manfred [EMAIL PROTECTED] am 19.01.2004 11:38:10 Bitte antworten an [EMAIL PROTECTED]@inet An: [EMAIL PROTECTED] Kopie: Thema: Re: Need help: Error while loading a GIF from a URL. Hi, It seems that the sun.net.www.http.KeepAliveStream class that FOP needs is version J2SE1.4.x complaint. We had J2SE 1.3.x version running on the AIX box. I had to change the URL references of the images to the system file path. Anyother workaround suggested to make FOP working in J2SE1.3.x with its own KeepAliveSream? Thanks -- Manjush G Menon - Original Message - From: John Austin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 15, 2004 5:23 AM Subject: Re: Need help: Error while loading a GIF from a URL. On Wed, 2004-01-14 at 18:45, J.Pietschmann wrote: Manjush G. Menon wrote: Iam running the FOP for PDF generateion on an AIX server, which threw the following error while attempting to load an image (GIF) from a URL. java.lang.ClassCastException - sun.net.www.http.KeepAliveStream It will work with the http://localhost:port/Web/wam/etc/Ue.gif I suppose..(will it?) Is it anything related to FOP build? I don't think so. It rather looks like you have problems with the JRE or a mixup of various JRE versions. Looks network-related. Is it repeatable ? -- John Austin [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] This message and any attachment (the Message) are confidential. If you have received the Message in error, please notify the sender immediately and delete the Message from your system , any use of the Message is forbidden. Correspondence via e-mail is primarily for information purposes. RZB neither makes nor accepts legally binding statements unless otherwise agreed to the contrary. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help: Error while loading a GIF from a URL.
Manjush G. Menon wrote: It seems that the sun.net.www.http.KeepAliveStream class that FOP needs is version J2SE1.4.x complaint. There is no reference from any FOP source to sun.net.www.http.KeepAliveStream. FOP uses an AWT class for handling GIFs. We had J2SE 1.3.x version running on the AIX box. I believe you have JDK 1.4 components on the classpath. Check your setup, or ask IBM for help. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help: Error while loading a GIF from a URL.
Hi all, Iam running the FOP for PDF generateion on an AIX server, which threw the following error while attempting to load an image (GIF) from a URL. java.lang.ClassCastException - sun.net.www.http.KeepAliveStream It will work with the http://localhost:port/Web/wam/etc/Ue.gif I suppose..(will it?) Is it anything related to FOP build? Find below the exact error stream output: [1/13/04 6:19:56:290 PST] 110e2773 SystemOut U [INFO] [1/13/04 6:19:56:290 PST] 110e2773 SystemOut U building formatting object tree [1/13/04 6:19:56:290 PST] 110e2773 SystemOut U [INFO] [1/13/04 6:19:56:290 PST] 110e2773 SystemOut U setting up fonts [1/13/04 6:19:56:306 PST] 110e2773 SystemOut U [INFO] [1/13/04 6:19:56:306 PST] 110e2773 SystemOut U [1] [1/13/04 6:19:56:440 PST] 110e2773 SystemOut U [ERROR] [1/13/04 6:19:56:440 PST] 110e2773 SystemOut U Error in XObject : Error while loading image http://10.xxx.xx.xx:/Web/wam/lo/Ue.gif : class java.lang.ClassCastException - sun.net.www.http.KeepAliveStream [1/13/04 6:19:56:440 PST] 110e2773 SystemOut U [INFO] [1/13/04 6:19:56:440 PST] 110e2773 SystemOut U Parsing of document complete, stopping renderer any help is will be highly appreciated Thanks -- Manjush G Menon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help: Error while loading a GIF from a URL.
Manjush G. Menon wrote: Iam running the FOP for PDF generateion on an AIX server, which threw the following error while attempting to load an image (GIF) from a URL. java.lang.ClassCastException - sun.net.www.http.KeepAliveStream It will work with the http://localhost:port/Web/wam/etc/Ue.gif I suppose..(will it?) Is it anything related to FOP build? I don't think so. It rather looks like you have problems with the JRE or a mixup of various JRE versions. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help: Error while loading a GIF from a URL.
On Wed, 2004-01-14 at 18:45, J.Pietschmann wrote: Manjush G. Menon wrote: Iam running the FOP for PDF generateion on an AIX server, which threw the following error while attempting to load an image (GIF) from a URL. java.lang.ClassCastException - sun.net.www.http.KeepAliveStream It will work with the http://localhost:port/Web/wam/etc/Ue.gif I suppose..(will it?) Is it anything related to FOP build? I don't think so. It rather looks like you have problems with the JRE or a mixup of various JRE versions. Looks network-related. Is it repeatable ? -- John Austin [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Need assistance in diagnosing error message.
This problem was corrected by simply placing the XML tag on line 1 column 1. It was indented a couple of spaces. From: Clay Leeds [EMAIL PROTECTED] Date: 2004/01/09 Fri PM 12:10:22 EST To: [EMAIL PROTECTED] Subject: Re: Need assistance in diagnosing error message. Glad to hear the problem is resolved! If it's not too much trouble, please report back the error to the list, so that the thread will be complete. Someone else with the same or similar problem, may follow the list, but not have a resolution to the problem. Web Maestro Clay On Jan 9, 2004, at 8:47 AM, [EMAIL PROTECTED] wrote: Ok found my error. Thanks for the replys. From: [EMAIL PROTECTED] Date: 2004/01/09 Fri AM 11:31:48 EST To: [EMAIL PROTECTED] Subject: RE: Need assistance in diagnosing error message. javax.servlet.ServletException: The processing instruction target matching [xX][mM][lL] is not allowed I don't exactly remember, I think it comes from an org.xml.sax.SAXParseException. Check your FO tree (or XSL or XML source), post it if you can't find your error. Mathieu. - 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: Need assistance in diagnosing error message.
-Original Message- From: Clay Leeds [mailto:[EMAIL PROTECTED] Glad to hear the problem is resolved! If it's not too much trouble, please report back the error to the list, so that the thread will be complete. Someone else with the same or similar problem, may follow the list, but not have a resolution to the problem. Clay, If my gut-feeling is not deceiving me, the error and resolution are both hidden in Clovis' post: From: Clovis Wichoski [mailto:[EMAIL PROTECTED] This mean that ?xml Some Stuff ? or ?XML Some Stuff ? is not allowed, maybe your XSL have the XML declaration on the middle ^ of XSL the XML declaration must be the first line of XSL. Too bad he wasn't too sure of himself ( and too bad the OP just didn't feel like adding how silly his mistake was... ;) making it look like the other reply had helped him. ) Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need assistance in diagnosing error message.
I am lost here, can someone tell me what this means? Thanks!! Alain javax.servlet.ServletException: The processing instruction target matching [xX][mM][lL] is not allowed. FopServlet.renderFO(Unknown Source) FopServlet.doGet(Unknown Source) javax.servlet.http.HttpServlet.service(HttpServlet.java:743) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need assistance in diagnosing error message.
javax.servlet.ServletException: The processing instruction target matching [xX][mM][lL] is not allowed I don't exactly remember, I think it comes from an org.xml.sax.SAXParseException. Check your FO tree (or XSL or XML source), post it if you can't find your error. Mathieu. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need assistance in diagnosing error message.
This mean that ?xml Some Stuff ? or ?XML Some Stuff ? is not allowed, maybe your XSL have the XML declaration on the middle of XSL the XML declaration must be the first line of XSL. I hope that this help Clovis [EMAIL PROTECTED] wrote: I am lost here, can someone tell me what this means? Thanks!! Alain javax.servlet.ServletException: The processing instruction target matching [xX][mM][lL] is not allowed. FopServlet.renderFO(Unknown Source) FopServlet.doGet(Unknown Source) javax.servlet.http.HttpServlet.service(HttpServlet.java:743) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) - 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: RE: Need assistance in diagnosing error message.
Ok found my error. Thanks for the replys. From: [EMAIL PROTECTED] Date: 2004/01/09 Fri AM 11:31:48 EST To: [EMAIL PROTECTED] Subject: RE: Need assistance in diagnosing error message. javax.servlet.ServletException: The processing instruction target matching [xX][mM][lL] is not allowed I don't exactly remember, I think it comes from an org.xml.sax.SAXParseException. Check your FO tree (or XSL or XML source), post it if you can't find your error. Mathieu. - 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]
print error
hi dear list, I can print on my printer in a shell like this : lp toto.xml But I can't print on my printer wiht fop my command is like this : fop -xml toto.xml -xsl toto.xsl -print and I have a printing error : [ERROR] java.io.IOException: Unable to print: java.awt.print.PrinterException: No print service found. someone know what append ?? thk for your help Tien Hai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
print error
hi dear list, I can print on my printer in a shell like this : lp toto.xml But I can't print on my printer wiht fop my command is like this : fop -xml toto.xml -xsl toto.xsl -print and I have a printing error : [ERROR] java.io.IOException: Unable to print: java.awt.print.PrinterException: No print service found. someone know what append ?? thk for your help Tien Hai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: print error
-Original Message- From: tien hai nguyen [mailto:[EMAIL PROTECTED] I can print on my printer in a shell like this : lp toto.xml But I can't print on my printer wiht fop my command is like this : fop -xml toto.xml -xsl toto.xsl -print and I have a printing error : [ERROR] java.io.IOException: Unable to print: java.awt.print.PrinterException: No print service found. Hi, Are there other java programs you can test to see whether the problem is with FOP? Can you try sending PostScript or PCL output directly to the printer, using code like here : http://xml.apache.org/fop/output.html#general-direct-output Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting error line number
On Thu, 04 Dec 2003 20:45:15 +0100, J.Pietschmann [EMAIL PROTECTED] wrote: Stan Pinte wrote: [ERROR] Invalid byte 1 of 1-byte UTF-8 sequence. org.apache.fop.apps.FOPException: Invalid byte 1 of 1-byte UTF-8 sequence. at org.apache.fop.apps.Driver.render(Driver.java:507) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106) at org.apache.fop.apps.Fop.main(Fop.java:62) how can I get the line number of my input file, to find the error? Unfortunately, the parser people have more or less standardized on the notation that line endings are characters, and encoding problems are detected at the stage before, so that line count is not available. You might want to feed your file into an identity trasformation run through Saxon, the XML parser bundled with Saxon reports the byte offset. thanks a lot for the tip. Stan. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stan Pinte. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getting error line number
hello, when having this: [INFO] setting up fonts [ERROR] Invalid byte 1 of 1-byte UTF-8 sequence. org.apache.fop.apps.FOPException: Invalid byte 1 of 1-byte UTF-8 sequence. at org.apache.fop.apps.Driver.render(Driver.java:507) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106) at org.apache.fop.apps.Fop.main(Fop.java:62) how can I get the line number of my input file, to find the error? thanks a lot, Stan. -- Stan Pinte. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting error line number
Stan Pinte wrote: hello, when having this: [INFO] setting up fonts [ERROR] Invalid byte 1 of 1-byte UTF-8 sequence. org.apache.fop.apps.FOPException: Invalid byte 1 of 1-byte UTF-8 sequence. at org.apache.fop.apps.Driver.render(Driver.java:507) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106) at org.apache.fop.apps.Fop.main(Fop.java:62) how can I get the line number of my input file, to find the error? Sorry, but you cant. However, in your case you arent looking for a particular part of the file as I suspect your whole file has the wrong encoding. This is a FAQ. http://xml.apache.org/fop/faq.html#xml-illegal-chars Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting error line number
Stan Pinte wrote: [ERROR] Invalid byte 1 of 1-byte UTF-8 sequence. org.apache.fop.apps.FOPException: Invalid byte 1 of 1-byte UTF-8 sequence. at org.apache.fop.apps.Driver.render(Driver.java:507) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106) at org.apache.fop.apps.Fop.main(Fop.java:62) how can I get the line number of my input file, to find the error? Unfortunately, the parser people have more or less standardized on the notation that line endings are characters, and encoding problems are detected at the stage before, so that line count is not available. You might want to feed your file into an identity trasformation run through Saxon, the XML parser bundled with Saxon reports the byte offset. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ERROR: Renderer has not been set!
When trying to convert an xml and xsl into a pdf by running the command: fop.sh -xsl filename.xsl -xml filename.xml -pdf filename.pdf on a solaris platform I receive the following output. This has worked on other boxes, I am not sure why it is not working on this one: FOP 0.20.1 using SAX parser org.apache.xerces.parsers.SAXParser ERROR: Renderer has not been set! Dave N Chan The information contained in this e-mail is intended only for the individual or entity to whom it is addressed. Its contents (including any attachments) are confidential and may contain privileged information. If you are not an intended recipient you must not use, disclose, disseminate, copy or print its contents. If you receive this e-mail in error, please notify the sender by reply e-mail and delete and destroy the message.
Re: ERROR: Renderer has not been set!
Dave Chan wrote: FOP 0.20.1 ... ERROR: Renderer has not been set! This might be an old bug. Get the latest release (0.20.5) and check whether the problem persists. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unkown font error driving me crazy
Hello, if you have build font metrics correctly and are in the same directory as your userconfig and fo files then there are at least 2 more possibilities things can go wrong: Wrong userconfig.xml or/and wrong .fo file. Here you have an example of font entries in userconfig file. font metrics-file=cour.xml kerning=yes embed-file=C:\WINDOWS\Fonts\COUR.TTF> font-triplet name=CourierNew style=normal weight=normal/> /font> font metrics-file=cour_bold.xml kerning=yes embed-file=C:\WINDOWS\Fonts\COURBD.TTF> font-triplet name=CourierNew style=normal weight=bold/> /font> font metrics-file=cour_italic.xml kerning=yes embed-file=C:\WINDOWS\Fonts\COURI.TTF> font-triplet name=CourierNew style=italic weight=normal/> /font> font metrics-file=cour_bold_italic.xml kerning=yes embed-file=C:\WINDOWS\Fonts\COURBI.TTF> font-triplet name=CourierNew style=italic weight=bold/> /font> As you can see, all 4 versions of Courier font are here. Notice that the name is the same for all of them, just style and weight attributes are different. By the way, I don't believe there is weight='italic' as you wrote bellow in your example. Here are first two lines from cour_bold.xml metrics. Notice the font name. ?xml version=1.0 encoding=UTF-8?> font-metrics type=TYPE0>font-name>CourierNew,Bold/font-name> And from cour_bold_italic.xml: ?xml version=1.0 encoding=UTF-8?> font-metrics type=TYPE0>font-name>CourierNew,BoldItalic/font-name> The second thing is that you don't have all four combinations for a given font and then in the fo file you are trying to do something like this: !-- BODY --> fo:flow flow-name=xsl-region-body font-family=CourierNew> which selects normal CourierNew, but then later on hidden somewhere there is a font-weight=bold statement, which will produce font not found error, if you don't have metrics file for bold CourierNew font. Hope it helps, bob metrics-file kerning embed-file> name=Free 3 of 9 style weight/> > metrics-file kerning embed-file> name=Free 3 of 9 style weight/> > metrics-file kerning embed-file> name=Free 3 of 9 style weight/> > but everytime i run the xsl:fo I get an error that the font is unkown, so it appears that this userconfig file is not being called and I don't understand what I need to do to call it. I found this link, http://xml.apache.org/fop/embedding.html#config-external But I don't know where that information goes. Thanks
Re: Unkown font error driving me crazy
Jerry, 1. the userconfig file must be in your command line: C:\FOPfop -c conf\userconfig.xml -fo myfo.fo -pdf mypdf.pdf 2. The Myfont.xml file must be in the same folder as your fop.bat file. 3. The Myfont.xml file must be created using the jar. I usually copy the font into the same folder as the fop.bat then I run the command line to transform it into the myfont.xml file. Here is the command line (you will have to edit the file names to match the ones you are currently running in your batch file): java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar; lib\xercesImpl.jar;lib\xalan.jar org.apache.fop.fonts.apps.TTFReader [options] cmr10.ttf ttfcm.xml p.s. I don't use apache fop anymore. __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unkown font error driving me crazy
Mike Ferrando wrote: Jerry, 1. the userconfig file must be in your command line: C:\FOPfop -c conf\userconfig.xml -fo myfo.fo -pdf mypdf.pdf 2. The Myfont.xml file must be in the same folder as your fop.bat file. Actually, there is now a fontBaseDir config option. See: http://xml.apache.org/fop/configuration.html#summary-key-value 3. The Myfont.xml file must be created using the jar. I usually copy the font into the same folder as the fop.bat then I run the command line to transform it into the myfont.xml file. Here is the command line (you will have to edit the file names to match the ones you are currently running in your batch file): java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar; lib\xercesImpl.jar;lib\xalan.jar org.apache.fop.fonts.apps.TTFReader [options] cmr10.ttf ttfcm.xml See also: http://xml.apache.org/fop/fonts.html#truetype-metrics Victor Mote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unkown font error driving me crazy
Hi Everyone, I have searched in vain, but found the search difficult. I have a third party appplication that I'm using that calls this batch file, @ECHO OFF rem %~dp0 is the expanded pathname of the current script under NTset LOCAL_FOP_HOME=if "%OS%"=="Windows_NT" set LOCAL_FOP_HOME=%~dp0 set LIBDIR=%LOCAL_FOP_HOME%libset LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jarset LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis.jarset LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.2.1.jarset LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.4.1.jarset LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik.jarset LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\avalon-framework-cvs-20020806.jarset LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jarset LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jarset LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jarjava -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 %7 %8 I have added several new fonts to my system and I'm attempting to use the userconfig.xml file as shown below: !--!DOCTYPE configuration SYSTEM "config.dtd"-- !-- this file contains templates which allow an user easy configuration of Fop. Actually normally you don't need this configuration file, but if you need to change configuration, you should always use this file and *not* config.xml. Usage: java org.apache.fop.apps.Fop -c userconfig.xml -fo fo-file -pdf pdf-file -- configuration !-- baseDir: normally the base directory is the directory where the fo file is located. if you want to specify your own, uncomment this entry. This value can also be a URL. Actually, the value is converted to a URL. -- !-- entry keybaseDir/key value/value /entry -- !-- fontBaseDir: Similar to baseDir, except that this value is used for fonts. If it isn't specified, the value from baseDir is used. -- !-- entry keyfontBaseDir/key value/value /entry -- !-- HYPHENATION -- !-- hyphenation directory if you want to specify your own directory with hyphenation pattern then uncomment the next entry and add the directory name -- !-- entry keyhyphenation-dir/key value/java/xml-fop/hyph/value /entry -- !-- Add fonts here -- fonts !-- example -- !-- font metrics-file="arial.xml" kerning="yes" embed-file="arial.ttf" font-triplet name="Arial" style="normal" weight="normal"/ font-triplet name="ArialMT" style="normal" weight="normal"/ /font font metrics-file="arialb.xml" kerning="yes" embed-file="arialb.ttf" font-triplet name="Arial" style="normal" weight="bold"/ font-triplet name="ArialMT" style="normal" weight="bold"/ /font font metrics-file="ariali.xml" kerning="yes" embed-file="ariali.ttf" font-triplet name="Arial" style="italic" weight="normal"/ font-triplet name="ArialMT" style="italic" weight="normal"/ /font font metrics-file="arialbi.xml" kerning="yes" embed-file="arialbi.ttf" font-triplet name="Arial" style="italic" weight="bold"/ font-triplet name="ArialMT" style="italic" weight="bold"/ /font -- !-- Example Japanese fonts font metrics-file="msgothic.xml" embed-file="D:\winnt\font\msgothic.ttc" kerning="yes" font-triplet name="Gothic" style="normal" weight="normal"/ font-triplet name="Gothic" style="normal" weight="bold"/ font-triplet name="Gothic" style="italic" weight="normal"/ font-triplet name="Gothic" style="italic" weight="bold"/ /font font metrics-file="msmincho.xml" embed-file="Cyberbit.ttf" kerning="yes" font-triplet name="Mincho" style="normal" weight="normal"/ font-triplet name="Mincho" style="normal" weight="bold"/ font-triplet name="Mincho" style="italic" weight="normal"/ font-triplet name="Mincho" style="italic" weight="bold"/ /font -- font metrics-file="free3of9.xml" kerning="yes" embed-file="C:\WINDOWS\Fonts\free3of9.ttf" font-triplet name="Free 3 of 9" style="normal" weight="normal"/ /font font metrics-file="free3of9.xml" kerning="yes" embed-file="C:\WINDOWS\Fonts\free3of9.ttf" font-triplet name="Free 3 of 9" style="bold" weight="italic"/ /font font metrics-file="free3of9.xml" kerning="yes" embed-file="C:\WINDOWS\Fonts\free3of9.ttf" font-triplet name="Free 3 of 9" style="bold" weight="bold"/ /font /fonts /configuration but everytime i run the xsl:fo I get an error that the font is unkown, so it appears that this userconfig file is not being called and I don't understand what I need to do to call it. I found this link, http://xml.apache.org/fop/embedding.html#config-external But I don't know where that information goes. Thanks Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
Re: Unkown font error driving me crazy
Jerry Sheehan wrote: but everytime i run the xsl:fo I get an error that the font is unkown, so it appears that this userconfig file is not being called and I don't understand what I need to do to call it. I found this link, http://xml.apache.org/fop/embedding.html#config-external Close. See http://xml.apache.org/fop/configuration.html#general-available And please, please, *please* don't use this obnoxious web mailer for your next post, or at least keep it short. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ERROR] leader sizes wrong error message ???
hi all, when I generate my pdf using FOP 0.20.5rc2, I always have this error message even though my pdf is generated correctly. What is going on with my code and how to avoid this error message. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ERROR] leader sizes wrong error message ???
From: Dang Minh Phuong [EMAIL PROTECTED] hi all, when I generate my pdf using FOP 0.20.5rc2, I always have this error message even though my pdf is generated correctly. What is going on with my code and how to avoid this error message. FOP 0.20.5rc2 had a few bugs which were fixed in the released version 0.20.5. The changes include some tinkering with leader behaviour. I recommend you upgrade to 0.20.5, and if the problem persists please post a small self contained example of your XSL-FO to this list. Chris _ Stay in touch with absent friends - get MSN Messenger http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Entity error question
I'm suddenly getting this error on a fop process that has been running for several months without problems: [ERROR] The reference to entity F must end with the ';' delimiter. Can someone tell how I identify entity F. This is fop 0.20.4 Thanks Tom Plassman Worthington Schools Confidentiality Notice: This e-mail message, from Worthington Schools, Worthington, Ohio, including any attachments,is for the sole use of the intended recipient(s) and may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient or authorized to receive information for the recipient, you are hereby notified that any review, use, disclosure, distribution, copying, printing, or action taken in reliance on the contents of this e-mail is strictly prohibited. If you have received this communication in error, please immediately contact the sender and destroy the material in its entirety. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Entity error question
Tom Plassman wrote: I'm suddenly getting this error on a fop process that has been running for several months without problems: [ERROR] The reference to entity F must end with the ';' delimiter. I suspect you generate the FO source using string concatenation, and an unescaped ampersand slipped in. Dump the FO source, and search for the string F followed by a non-letter-or-digit. Track down how it came there. Ensure data read from DB or elsewhere is XML-escaped before concatenating it in. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error with Block-container
Hi, I am having problem with fo:block-container. When I run FOP I am getting an error [ERROR] java.lang.ClassCastException: org.apache.fop.layout.BlockArea Did anyone come accross something like this? Abhi __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error with Block-container
From: Abhijit Junnare [EMAIL PROTECTED] Hi, I am having problem with fo:block-container. When I run FOP I am getting an error [ERROR] java.lang.ClassCastException: org.apache.fop.layout.BlockArea Did anyone come accross something like this? Abhi FOP has only limited support for fo:block-container. It cannot be placed as a child of a fo:block, and should be a direct descedent of fo:flow. This is becoming a VFAQ Chris _ 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: Error with Block-container
Got it thanks. Abhi --- Chris Bowditch [EMAIL PROTECTED] wrote: From: Abhijit Junnare [EMAIL PROTECTED] Hi, I am having problem with fo:block-container. When I run FOP I am getting an error [ERROR] java.lang.ClassCastException: org.apache.fop.layout.BlockArea Did anyone come accross something like this? Abhi FOP has only limited support for fo:block-container. It cannot be placed as a child of a fo:block, and should be a direct descedent of fo:flow. This is becoming a VFAQ Chris _ 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] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help on error message: Error in color property value ''
This is my first go at FOP, although I have a good deal of experience with XML/XSLT. I am weak on Java. I have prepared an XSL-FO document that I'm trying to process with FOP. When I do that, I get this error message: [ERROR] Error in color property value '': org.apache.fop.fo.expr.PropertyExcepti on: No conversion defined In fact, I get it 45 times. I used the color and background-color attributes 123 times in this document, so I have trouble connecting those with this error message based on the count, although I can't see any association to other elements or attributes. Here is a typical opening element tag with a color attribute: fo:inline color=#EE7744 Can anyone give me guidance on interpreting the error message and eliminating the offending markup? Thanks. -- Charles Knell [EMAIL PROTECTED] - email - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help on error message: Error in color property value ''
Never mind. I found the problem. Sorry to trouble you all. -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: [EMAIL PROTECTED] Sent: Mon, 15 Sep 2003 16:24:49 -0400 To: [EMAIL PROTECTED] Subject: Help on error message: Error in color property value '' This is my first go at FOP, although I have a good deal of experience with XML/XSLT. I am weak on Java. I have prepared an XSL-FO document that I'm trying to process with FOP. When I do that, I get this error message: [ERROR] Error in color property value '': org.apache.fop.fo.expr.PropertyExcepti on: No conversion defined In fact, I get it 45 times. I used the color and background-color attributes 123 times in this document, so I have trouble connecting those with this error message based on the count, although I can't see any association to other elements or attributes. Here is a typical opening element tag with a color attribute: fo:inline color=#EE7744 Can anyone give me guidance on interpreting the error message and eliminating the offending markup? Thanks. -- Charles Knell [EMAIL PROTECTED] - email - 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]
Error with FOP about IPD on table
When I run FOP i get the following error. [ERROR] At least one of minimum, optimum, or maximum IPD must be specified on table. I know thats its the problem with specifying IPD for the table in the stylesheet. But I dont really understand what I am missing and where should I specify Inline-progression-dimension I mean on what object? Thanks, Abhi __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error with FOP about IPD on table
Abhijit Junnare wrote: When I run FOP i get the following error. [ERROR] At least one of minimum, optimum, or maximum IPD must be specified on table. I know thats its the problem with specifying IPD for the table in the stylesheet. But I dont really understand what I am missing and where should I specify Inline-progression-dimension I mean on what object? FOP tries to calculate the table width from the column width, which must be specified for FOP to work. If all columns have an absolute width, this is easy. However, if you use the proportional-column-width() function, or if you specify a width which FOP doesn't understand for table columns (like percentages), you'll get the error message above unless you also specify the with of the table itself (which is exaclty the wording of the message). Your options: specify all column widths in absolute units, or specify the table width. The table width can be given as percentage (contrary to column widths), so you can have a table spanning the whold page width by specifying width=100%. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error when placing svg into xsl with fo:external-graphic
Hello ! I'm trying to put a svg-file into my xsl-file and then let it run through FOP. The svg is a barcode example from krysalis barcode homepage. I used the fo:external-graphic command: fo:block fo:external-graphic src=example-code39.svg/ /fo:block I also included the svg namespace at the begining in xsl-stylesheet: xmlns:svg=http://www.w3.org/2000/svg; But each time i run FOP with my xsl i get the following error: [ERROR] Could not load external SVG: null [ERROR] Error while creating area : No ImageReader for this type of image (file: example-code39.svg) [INFO] Parsing of document complete, stopping renderer The error does not depend on the output file. I'm new to this stuff, so thank you in advance for helping me out. Greets, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error when placing svg into xsl with fo:external-graphic
Benjamin Wischek wrote: I'm trying to put a svg-file into my xsl-file and then let it run through FOP. The svg is a barcode example from krysalis barcode homepage. I used the fo:external-graphic command: fo:block fo:external-graphic src=example-code39.svg/ /fo:block I'm not sure whether this is your problem or not, but make sure that FOP can actually find the file. See: http://xml.apache.org/fop/fo.html#external-resources for documentationa about specifying the external resource as a URI, including the instructions about setting a base URI. If that doesn't solve the problem, open the file and make sure it actually has some SVG code in it, and that there is no obvious namespace problem. Beyond that, we'll need to get someone with more Batik expertise to answer. Victor Mote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error when placing svg into xsl with fo:external-graphic
Ok, I'm so sorry... I tried the whole thing at home now, and everything works fine. Seems like I have some old JDK on my system at work. Thought it is 1.3.1 which should be sufficient. Looks like I have to reinstall it or upgrade to a newer one. Sorry again for my mistake. Greets, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error when placing svg into xsl with fo:external-graphic
Benjamin Wischek wrote: Seems like I have some old JDK on my system at work. Thought it is 1.3.1 which should be sufficient. Looks like I have to reinstall it or upgrade to a newer one. 1.3.1 is ok. Perhaps a firewall blocks the parser from retrieving the SVG DTD (you might want to set up a catalog to use a local copy). J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: [ERROR]: resulting in Exception in thread main java.lang.OutOfMemoryError no stack trace avalable
Hello, When I try to convert a a complex xml-file (steerfile which refers to other xml-files) to a pdf-file the first step works : the conversion to a fo-file. But in the second step, the conversion from a fo-file to a pdf-file I get several errors [ERROR]: . When I limit the number of pages to 60 I get a well-formed pdf-file but the actual pdf-file I have to produce is almost 1000 pages. On a Linux-workstation this works but my goal is to do it on a windows-pc or server and there lies the problem. After about 100 pages I get the following error after which the program stops : Exception in thread main java.lang.OutOfMemoryError no stack available Does anyone know how to solve this problem? greetz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ERROR]: resulting in Exception in thread main java.l ang.OutOfMemoryError no stack trace avalable
Title: RE: [ERROR]: resulting in Exception in thread main java.lang.OutOfMemoryError no stack trace avalable You are able to produce the 1000 page PDF on the Linux box ? If so, double check the HEAP settings on your Linux machine make sure the Linux, and Windows box match. Also there is a really good FAQ on the FOP site: http://xml.apache.org/fop/running.html#memory Rob -Original Message- From: Kenny Vandenbroucke [mailto:[EMAIL PROTECTED]] Sent: Friday, July 11, 2003 7:50 AM To: [EMAIL PROTECTED] Subject: FW: [ERROR]: resulting in Exception in thread main java.lang.OutOfMemoryError no stack trace avalable Hello, When I try to convert a a complex xml-file (steerfile which refers to other xml-files) to a pdf-file the first step works : the conversion to a fo-file. But in the second step, the conversion from a fo-file to a pdf-file I get several errors [ERROR]: . When I limit the number of pages to 60 I get a well-formed pdf-file but the actual pdf-file I have to produce is almost 1000 pages. On a Linux-workstation this works but my goal is to do it on a windows-pc or server and there lies the problem. After about 100 pages I get the following error after which the program stops : Exception in thread main java.lang.OutOfMemoryError no stack available Does anyone know how to solve this problem? greetz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: IPD error
Now I've localized my problem. Maybe in this point anybody could give support. I have to set values in a dom-tree. But the specification of dom-api says it's not possible to set a nodevalue of an element_node. How do you set nodevalues for these nodes? This is not really the right place for those questions, but I hope somebody could help... Million thanx! suse -Ursprüngliche Nachricht- Von: Todtenhaupt, Susann Gesendet: Wednesday, July 02, 2003 10:37 AM An: '[EMAIL PROTECTED]' Betreff: IPD error Hello @ all! While transforming with fop I always get the error-message: At least one of minimum, optimum, or maximum IPD must be specified on table. Furthermore I'm trying to get a value from a node in my xml-file by using xsl:value-of select=foo. The foo-value represents a hard path pointing to the relative node (like /root/node1/node2). So far so good, but no value gets returned... But I don't know where to localize my problem. Thanx suse! - 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: IPD error
Todtenhaupt, Susann wrote: While transforming with fop I always get the error-message: At least one of minimum, optimum, or maximum IPD must be specified on table. The table width is usually calculated as the sum of the column widths. If you missed supplying a width for some columns, or if you used proportional-column-width(), the total width can't be computed and you get the message above. In this case, set a width for the table, for example fo:table width=100% ... or fo:table width=10cm ... Furthermore I'm trying to get a value from a node in my xml-file by using xsl:value-of select=foo. The foo-value represents a hard path pointing to the relative node (like /root/node1/node2). So far so good, but no value gets returned... This is an XSLT question which is best asked on the XSL list (I think you got this told already). Take some time to reformulate it, terms like hard path or relative node are not commonly used and not part of the standard notation. If your problem is like the following: xsl:variable name=path select='/root/node1/node2'/ xsl:variable name=foo select=$path/ and you wonder why $foo evaluates to '/root/node1/node2' rather than the value of the /root/node1/node2 element, see for example http://www.biglist.com/lists/xsl-list/archives/200305/msg00988.html and related messages for comments. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: IPD error
Todtenhaupt, Susann wrote: Now I've localized my problem. Maybe in this point anybody could give support. I have to set values in a dom-tree. But the specification of dom-api says it's not possible to set a nodevalue of an element_node. How do you set nodevalues for these nodes? Elements don't have values. They have children, among other things. Therefore, looking at addChild(Node) and insertBefore(Node,Node) could yield somethiing fruitful. In any case I'd say you should look for professional help or at least training. Would you trust a larger bridge whose blueprints were made by a freshman who has to ask on a mailing list for advice on how to compute beam profiles and other details? This is not really the right place for those questions, but I hope somebody could help... Check the ressources on xml.org for better suited places. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error Using FOP In Servlet And Its Fix
I'm running FOP 0.20.5rc3a with Tomcat 4.1.24 on Windows 2000 and JDK 1.4.1. I'm written a servlet modeled on the code from http://xml.apache.org/fop.servlets.html. I don't want to get XML or XSL from the server file system. My real app will have XML generated on the fly, so I'm using StringReader as my data source. I wrote a simple XML and XSL streams with which to test the servlet. Both of them produce a valid PDF using the command line tool, so I knew they were okay. When I POSTed the two streams to the servlet using an HTML page I get this root cause to an exception: java.lang.VerifyError: (class: org/apache/xerces/parsers/IntegratedParserConfiguration, method: configurePipeline signature: ()V) Incompatible type for getting or setting field I knew that there can be problems with different versions of parsers and such. I had Xalan and Xerces JARs from FOP in my WEB-INF/lib. I also saw xalan and xercesImpl JARs in TOMCAT_HOME/common/lib. When I removed all Xalan and Xerces JARs from my WEB-INF/lib, everything worked perfectly. It was a conflict with Tomcat's JARs. I thought I'd send this just in case anybody else had the same problem. Why wait for a question when you can share the answer? - MOD __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please Explain This Table Error
Thank you VERY much, that did the trick. - MOD --- J.Pietschmann [EMAIL PROTECTED] wrote: Michael Duffy wrote: When I run it through FOP, I get this error: [ERROR] At least one of minimum, optimum, or maximum IPD must be specified on table. What causes this error, and what must I fix? Thanks - Usually FOP calculates the table width from the column widths. However, you use proportional-column-width(), therefore you have to specify a width for the table explicitely. Add width=100% or whatever suits your needs to the fo:table element. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What Does [ERROR] -2 Mean
I just ran FOP with an FO stylesheet that gave me [ERROR] -2 for output and no PDF. What does it mean? I could go back through my stylesheet and remove changes until the thing works again, but I'd love a clue for figuring out what to fix. Thanks - MOD __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What Does [ERROR] -2 Mean
No idea. Try the -d option on the command line to get a more meaningful error message (a stacktrace I hope). Maybe that helps. On 20.06.2003 20:25:38 Michael Duffy wrote: I just ran FOP with an FO stylesheet that gave me [ERROR] -2 for output and no PDF. What does it mean? I could go back through my stylesheet and remove changes until the thing works again, but I'd love a clue for figuring out what to fix. Thanks - MOD Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What Does [ERROR] -2 Mean
I just did that five minutes before reading your note, Jeremias. (Great minds thinking alike.) There's more info now: java.lang.ArrayIndexOutOfBoundsException: -2 at org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.java:130) Not much help - I don't know where an array index like this would come from. --- Jeremias Maerki [EMAIL PROTECTED] wrote: No idea. Try the -d option on the command line to get a more meaningful error message (a stacktrace I hope). Maybe that helps. On 20.06.2003 20:25:38 Michael Duffy wrote: I just ran FOP with an FO stylesheet that gave me [ERROR] -2 for output and no PDF. What does it mean? I could go back through my stylesheet and remove changes until the thing works again, but I'd love a clue for figuring out what to fix. Thanks - MOD Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What Does [ERROR] -2 Mean
Found it - foolish user error. I had cut pasted some table cells and forgot to remove unnecessary number-columns-spanned attributes. My apologies. - MOD --- Michael Duffy [EMAIL PROTECTED] wrote: I just did that five minutes before reading your note, Jeremias. (Great minds thinking alike.) There's more info now: java.lang.ArrayIndexOutOfBoundsException: -2 at org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.java:130) Not much help - I don't know where an array index like this would come from. --- Jeremias Maerki [EMAIL PROTECTED] wrote: No idea. Try the -d option on the command line to get a more meaningful error message (a stacktrace I hope). Maybe that helps. On 20.06.2003 20:25:38 Michael Duffy wrote: I just ran FOP with an FO stylesheet that gave me [ERROR] -2 for output and no PDF. What does it mean? I could go back through my stylesheet and remove changes until the thing works again, but I'd love a clue for figuring out what to fix. Thanks - MOD Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What Does [ERROR] -2 Mean
Looking at the code I think it could be some problem with cell spanning, a negative number where it should be positive, for example. If that doesn't help comment out portions of your FO or stylesheet to circle in the problem location. Check the numbers of columns defined and used in your tables. On 20.06.2003 21:04:31 Michael Duffy wrote: I just did that five minutes before reading your note, Jeremias. (Great minds thinking alike.) There's more info now: java.lang.ArrayIndexOutOfBoundsException: -2 at org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.java:130) Not much help - I don't know where an array index like this would come from. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What Does [ERROR] -2 Mean
You are exactly right, Jeremias. I had a spanning problem that went away when I took those out. Good eye - you know this well. It's impressive to be able to spot an error with so little info. Thanks - MOD --- Jeremias Maerki [EMAIL PROTECTED] wrote: Looking at the code I think it could be some problem with cell spanning, a negative number where it should be positive, for example. If that doesn't help comment out portions of your FO or stylesheet to circle in the problem location. Check the numbers of columns defined and used in your tables. On 20.06.2003 21:04:31 Michael Duffy wrote: I just did that five minutes before reading your note, Jeremias. (Great minds thinking alike.) There's more info now: java.lang.ArrayIndexOutOfBoundsException: -2 at org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.java:130) Not much help - I don't know where an array index like this would come from. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Please Explain This Table Error
This is my second day with FOP, so be gentle. ;) I have an FO file with a table in it - 3 rows, 6 columns fixed. A snippet follows: fo:table table-layout=fixed fo:table-column column-width=1.0in/ fo:table-column column-width=proportional-column-width(1)/ fo:table-column column-width=1.0in/ fo:table-column column-width=proportional-column-width(1)/ fo:table-column column-width=1.0in/ fo:table-column column-width=proportional-column-width(1)/ fo:table-body !-- One of 3 rows total -- fo:table-row fo:table-cellOne of six in this row/fo:table-cell /fo:table-row /fo:table-body /fo:table When I run it through FOP, I get this error: [ERROR] At least one of minimum, optimum, or maximum IPD must be specified on table. What causes this error, and what must I fix? Thanks - MOD __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please Explain This Table Error
Michael Duffy wrote: When I run it through FOP, I get this error: [ERROR] At least one of minimum, optimum, or maximum IPD must be specified on table. What causes this error, and what must I fix? Thanks - Usually FOP calculates the table width from the column widths. However, you use proportional-column-width(), therefore you have to specify a width for the table explicitely. Add width=100% or whatever suits your needs to the fo:table element. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 'AREA CONTENTS OVERFLOWS...' ERROR (FIXED)
Thank you for your advice; the problem is fixed. In response to your question, one two three came not from the code but was just an (albeit poor) attempt to indicate that the desired output should have been all on one line, instead of separated by carriage returns. Thanks again. --Clyde [EMAIL PROTECTED] wrote: [INFO] area contents overflows area in line Data1: [INFO] area contents overflows area in line Data2: This is the relevant xsl: ... - fo:list-block font-size=12pt font-weight=bold line-height=16pt margin-left=8pt margin-right=8pt margin-bottom=8pt You didn't specify provisional-distance-between-starts and provisional-label-separation, which means they are set to the default. This means the available width for content of the list item label is 18pt (or something of this order). The error messages in turn indicate that Data1: already overflows the line, further text is placed into the next line: - fo:block text-align=left Data1: xsl:value-of select=Data1 / fo:block / Data2: xsl:value-of select=Data2 / /fo:block What is happening in the pdf output is that carriage returns are being inserted where they shouldn't be. I.e., instead of one two three, I'm getting Where does the one two three come from? This worked fine in fop-0.20.4. If anybody has any ideas on how to fix this, I'd appreciate it. 0.20.4 had a bug in the label-end() calculation, it was always set to 0. Fix the list specific properties mentioned above to get the proper width for your label column, or use a table. 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]
AREA CONTENTS OVERFLOWS... ERROR
I'm getting the following messages using fop-0.20.5rc3a: [INFO] area contents overflows area in line Data1: [INFO] area contents overflows area in line Data2: This is the relevant xsl: header: ?xml version=1.0 encoding=UTF-8 ? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xsl:template match=report fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; Code which is generating the error messages: - fo:list-block font-size=12pt font-weight=bold line-height=16pt margin-left=8pt margin-right=8pt margin-bottom=8pt - fo:list-item - fo:list-item-label end-indent=label-end() - fo:block text-align=left Data1: xsl:value-of select=Data1 / fo:block / Data2: xsl:value-of select=Data2 / /fo:block /fo:list-item-label - fo:list-item-body start-indent=body-start() - fo:block text-align=right Data3 xsl:value-of select=Data3 / fo:block / Data 4 xsl:value-of select=Data4 / /fo:block /fo:list-item-body /fo:list-item /fo:list-block What is happening in the pdf output is that carriage returns are being inserted where they shouldn't be. I.e., instead of one two three, I'm getting one two three This worked fine in fop-0.20.4. If anybody has any ideas on how to fix this, I'd appreciate it. Thanks, Clyde - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error
hello any one knows what this error means the same application is working fine on win32 machine but when porting the application to unix i get the following An invalid XML character (Unicode: 0x92) was found in the element content of the document.
AW: error
that error always occured when i had characters in the document thatare no supported by the encoding: ?xml version="1.0" encoding="ISO-8859-1"? try to changeit to something else Alex -Ursprüngliche Nachricht-Von: amar [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 12. Juni 2003 19:31An: [EMAIL PROTECTED]Betreff: error hello any one knows what this error means the same application is working fine on win32 machine but when porting the application to unix i get the following An invalid XML character (Unicode: 0x92) was found in the element content of the document.
Re: AREA CONTENTS OVERFLOWS... ERROR
[EMAIL PROTECTED] wrote: [INFO] area contents overflows area in line Data1: [INFO] area contents overflows area in line Data2: This is the relevant xsl: ... - fo:list-block font-size=12pt font-weight=bold line-height=16pt margin-left=8pt margin-right=8pt margin-bottom=8pt You didn't specify provisional-distance-between-starts and provisional-label-separation, which means they are set to the default. This means the available width for content of the list item label is 18pt (or something of this order). The error messages in turn indicate that Data1: already overflows the line, further text is placed into the next line: - fo:block text-align=left Data1: xsl:value-of select=Data1 / fo:block / Data2: xsl:value-of select=Data2 / /fo:block What is happening in the pdf output is that carriage returns are being inserted where they shouldn't be. I.e., instead of one two three, I'm getting Where does the one two three come from? This worked fine in fop-0.20.4. If anybody has any ideas on how to fix this, I'd appreciate it. 0.20.4 had a bug in the label-end() calculation, it was always set to 0. Fix the list specific properties mentioned above to get the proper width for your label column, or use a table. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error
amar wrote: hello any one knows what this error means the same application is working fine on win32 machine but when porting the application to unix i get the following An invalid XML character (Unicode: 0x92) was found in the element content of the document. You probably set the encoding to ISO-8859-1. Unfortunately, the byte 0x92 in ISO-8859-1 encoding does not represent a valid XML character, check the spec at http://www.w3.org/TR/REC-xml Windows uses the bytes 0x80...0x9F in its own extension of 8859-1 (and other encodings), which is usually called Windows codepage 1252 (and similar). Check whether your XML parser on the target platform can understand this encoding, and how it denotes it (CP-1252 or something, although there is no standard). If the parser can't deal with the Windows character encoding, your only way out is to replace the offending characters with character references for their Unicode counterparts before feeding it into the XML application. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TTFReader error
That's not the FreeSerifBold font from the freefont package (http://savannah.nongnu.org/projects/freefont), is it? Because that one converts fine with TTFReader. How you might correct this? By fixing the get_ttf_funit() method in TTFFile. Alternatively, you can file a bug report in Bugzilla (http://xml.apache.org/fop/bugs.html). You will need to attach the font so the person who will fix the problem can test. But only attach the font that if there are no copyright problems. If there are, we would have to find another way. On 10.06.2003 21:39:55 John Dunning wrote: Hi, I'm trying to embed a custom font I created with Pfaedit (http://pfaedit.sourceforge.net) as described in http://xml.apache.org/fop/fonts.html, but I keep getting the following error with the TTFReader: Exception in thread main java.lang.ArithmeticException: / by zero at org.apache.fop.fonts.TTFFile.get_ttf_funit(Unknown Source) I understand the nature of the error (div by 0), but how might I correct this? The other 3 fonts I've created have generated the metrics files without error. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error message
Hello all foppers, i got following error message: [ERROR] Areas pending, text probably lost in lineaus der Modellregion Ostthüringen sagt: Die zeitlichen Kapazitäten der Mediziner reichen derzeit nicht aus, sich mit dem Projekt auseinander zu setzen. (Arno Schütze, But the text was printed out correctly. It was the last line on a page, the rest ) / (anw/c't) was printed on the next page. My first question is, what should this error message say to me ?? Second question: Due orphans and widows are not implemented yet, how can i do such text formatting issues on my own ??? I know the hint on table-rows and the attributes keep-with-next, ... but putting text in table rows isn't very useful. greetings from a very warm and hot office, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error message
Mark Baier wrote: i got following error message: [ERROR] Areas pending, text probably lost in line... But the text was printed out correctly. You were lucky: you probably lost only whitespace. My first question is, what should this error message say to me ?? Text may get lost under certain circumstances if it was processed with the last line on a page but should go to the first line of the next page. Second question: Due orphans and widows are not implemented yet, how can i do such text formatting issues on my own ??? Improve FOP! J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eps image error : For input string:
(David sent me an EPS file to test.) The problem seems to be that the EPS handling code in FOP does not support the (atend) syntax in your EPS file (See %BoundingBox at the beginning and the end of your EPS file). The code for that is in org.apache.fop.image.analyser.EPSReader.readBBox() in case you'd like to try fixing it yourself. It shouldn't be hard. Otherwise, please open a bug report in bugzilla (http://xml.apache.org/fop/bugs.html). Please include my analysis when writing the report. On 05.06.2003 07:56:04 Jeremias Maerki wrote: There's probably something strange with your EPS file. If you run again with the -d option on the command line you get a full stacktrace which should give us more information what exactly is wrong because I can't find the For input string error message anywhere in the code. You can also send me (off-list) your EPS and I'll have a look at it. On 04.06.2003 22:42:28 David Mann wrote: Using fop-0.20.5rc3a (j2sdk1.4.1_02/windows 2000), I am getting the following error message processing to pdf: [fop] [ERROR] Error while creating area : Error while recovering Image Informations (file:/E:/test/images/SystemContext.eps) : For input string: Using alternative formats works fine, and the eps file renders correctly in GSView. Any hints (ie. For string: ) greatly appreciated. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TTFReader error
Hi, I'm trying to embed a custom font I created with Pfaedit (http://pfaedit.sourceforge.net) as described in http://xml.apache.org/fop/fonts.html, but I keep getting the following error with the TTFReader: TTF Reader v1.1.1 Reading fonts\FreeSerifBold.ttf... Number of glyphs in font: 10838 Creating xml font file... Exception in thread main java.lang.ArithmeticException: / by zero at org.apache.fop.fonts.TTFFile.get_ttf_funit(Unknown Source) at org.apache.fop.fonts.TTFFile.getFontBBox(Unknown Source) at org.apache.fop.fonts.apps.TTFReader.constructFontXML(Unkno at org.apache.fop.fonts.apps.TTFReader.main(Unknown Source) I understand the nature of the error (div by 0), but how might I correct this? The other 3 fonts I've created have generated the metrics files without error. TIA, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eps image error : For input string:
There's probably something strange with your EPS file. If you run again with the -d option on the command line you get a full stacktrace which should give us more information what exactly is wrong because I can't find the For input string error message anywhere in the code. You can also send me (off-list) your EPS and I'll have a look at it. On 04.06.2003 22:42:28 David Mann wrote: Using fop-0.20.5rc3a (j2sdk1.4.1_02/windows 2000), I am getting the following error message processing to pdf: [fop] [ERROR] Error while creating area : Error while recovering Image Informations (file:/E:/test/images/SystemContext.eps) : For input string: Using alternative formats works fine, and the eps file renders correctly in GSView. Any hints (ie. For string: ) greatly appreciated. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Eps image error : For input string:
Using fop-0.20.5rc3a (j2sdk1.4.1_02/windows 2000), I am getting the following error message processing to pdf: [fop] [ERROR] Error while creating area : Error while recovering Image Informations (file:/E:/test/images/SystemContext.eps) : For input string: Using alternative formats works fine, and the eps file renders correctly in GSView. Any hints (ie. For string: ) greatly appreciated. David Mann Invera Inc. This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tif image error
Title: RE: Tif image error Hello: I'm not sure, if you are on a windows box or not, but I have found that most windows imaging software can not handle the fax compression correctly and it inverts the colors. Try d-loading this browser plug-in to view your tiffs: http://www.alternatiff.com/ Hope this helps Rob -Original Message- From: Görz, Johannes [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 22, 2003 9:02 AM To: [EMAIL PROTECTED] Subject: Tif image error Hello, Im generating documents out of xml with FOP 0.20.5rc3. For images i installed JIMI and JAI like explained on the fop-website. The documents contain lots of images as .png and .tif. PNG works well, but i've got a problem with the TIFs. All of them appear in the generated PDF, but some of them are displayed with inverted colors. I compared the different image-files, but i found no common porperties which could be responsible for this strange behaviour. Neither the compression, the color-depth nor the resolution seem to have influence on that. The only difference i found was an error-message from fop, which occures every time a tif is processed: [INFO] Reverting to TIFF image handling through JAI: Error while loading image file:/C:/Projekte/xsl-fo/userproduction/nisu-38/input/28637964.tif : class org.apache.fop.image.TiffImage - unsupported samples per pixel value 3 [INFO] Reverting to TIFF image handling through JAI: Error while loading image file:/C:/Projekte/xsl-fo/userproduction/nisu-38/input/28638732.tif : class org.apache.fop.image.TiffImage - unsupported samples per pixel value 4 When the message occures with unsupported samples per pixel value 3 the image is displayed in the right way. With unsupported samples per pixel value 4 the result is inverted in the PDF file. Could anyone explain what this message exactly means? Did anyone have the same problems? Does anyone know how to solve this? Thanks for help... /johannes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error when piping XSL-FO to FOP driver using SAXResult
I am basically using the ExampleXML2PDF code to test my xsl file. I get an error message saying only table-row are allowed inside table-body. The xsl is generating table-row tags which I verified by dumping the output to a file. Also, if I saved the generated xsl-fo file into a temporary file, and then run the fop by reading the temporary file, it generates the correct output. So I am assuiming that the act of piping the xsl-fo output through the SAXResult is somehow affecting the interpretation of the generated code (the ContentHandler is getting confused becuase of the CDATA code that the xsl generates). I would appreciate it if somebody can suggest a solution. Basically , what I am trying to do here is take the following xml and layout the data into 3 column tabular layout. Alternate methods of doing this will be appreciated as well. customers customer firstnamexxx/firstname lastnameyyy/lastname /customer ... customer repeats /customers Snippet from ExampleXML2PDF.java === //Resulting SAX events (the generated FO) must be piped through to FOP Result res = new SAXResult(driver.getContentHandler()); //Start XSLT transformation and FOP processing transformer.transform(src, res); Here is a snippet of the code from the XSL === fo:table-body xsl:text disable-output-escaping=yes![CDATA[fo:table-row]]/xsl:text xsl:for-each select=customerPF xsl:if test=position()!=1 xsl:if test=(position()-1) mod 3 = 0 xsl:text disable-output-escaping=yes![CDATA[/fo:table-row]]/xsl:text xsl:text disable-output-escaping=yes![CDATA[fo:table-row]]/xsl:text /xsl:if /xsl:if fo:table-cellfo:blockxsl:value-of select=position()//fo:block/fo:table-cell /xsl:for-each xsl:text disable-output-escaping=yes![CDATA[/fo:table-row]]/xsl:text /fo:table-body Thanks for any help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Error when piping XSL-FO to FOP driver using SAXResult
Thanks for the response. Yes, its definitely a hack because I could not put a /fo:table-row inside the xsl:if tag. I get an error message saying The element type xsl:if must be terminated by the matching end-tag /xsl:if Is there a better way to accomplish what I need to do...i.e. ouputting portions of table-row tags depending on certain conditions? Thanks. == You MUSTN'T enclose XML tags to be written to the output in CDATA sections. In SAX that will result in calls to characters() instead of startElement/endElement and therefore your closing fo:table-row tags don't get recognized as tags. What you did here is a hack. Try to reformulate that snippet. On 14.05.2003 07:23:17 Om Narayan wrote: Here is a snippet of the code from the XSL === fo:table-body xsl:text disable-output-escaping=yes![CDATA[fo:table-row]]/xsl:text xsl:for-each select=customerPF xsl:if test=position()!=1 xsl:if test=(position()-1) mod 3 = 0 xsl:text disable-output-escaping=yes![CDATA[/fo:table-row]]/xsl:text xsl:text disable-output-escaping=yes![CDATA[fo:table-row]]/xsl:text /xsl:if /xsl:if fo:table-cellfo:blockxsl:value-of select=position()//fo:block/fo:table-cell /xsl:for-each xsl:text disable-output-escaping=yes![CDATA[/fo:table-row]]/xsl:text /fo:table-body Jeremias Maerki - 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: Re: Error when piping XSL-FO to FOP driver using SAXResult
Look at http://www.dpawson.co.uk/xsl/sect2/N4486.html#d4085e94 From the [EMAIL PROTECTED] [Grouping] HTH Fernando López Carballeda -Original Message- Sent: miércoles, 14 de mayo de 2003 20:02 Subject: Re: Re: Error when piping XSL-FO to FOP driver using SAXResult Thanks for the response. Yes, its definitely a hack because I could not put a /fo:table-row inside the xsl:if tag. I get an error message saying The element type xsl:if must be terminated by the matching end-tag /xsl:if Is there a better way to accomplish what I need to do...i.e. ouputting portions of table-row tags depending on certain conditions? Thanks. == You MUSTN'T enclose XML tags to be written to the output in CDATA sections. In SAX that will result in calls to characters() instead of startElement/endElement and therefore your closing fo:table-row tags don't get recognized as tags. What you did here is a hack. Try to reformulate that snippet. On 14.05.2003 07:23:17 Om Narayan wrote: Here is a snippet of the code from the XSL === fo:table-body xsl:text disable-output-escaping=yes![CDATA[fo:table-row]]/xsl:text xsl:for-each select=customerPF xsl:if test=position()!=1 xsl:if test=(position()-1) mod 3 = 0 xsl:text disable-output-escaping=yes![CDATA[/fo:table-row]]/xsl:text xsl:text disable-output-escaping=yes![CDATA[fo:table-row]]/xsl:text /xsl:if /xsl:if fo:table-cellfo:blockxsl:value-of select=position()//fo:block/fo:table-cell /xsl:for-each xsl:text disable-output-escaping=yes![CDATA[/fo:table-row]]/xsl:text /fo:table-body Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: Error when piping XSL-FO to FOP driver using SAXResult
Below is something we use as part of a much more involved stylesheet. Although looking at it now it's not the most efficient piece of code as it loops through the same nodes several times. (We use it to break output into groups of five columns and know we'll never have more than 3 or 4 groups, so we didn't need to worry about running through the same nodes a few extra times.) I think for efficiency and straighforwardness, the Steve Tinney example from the link in the previous post is probably the best way to go. (http://www.dpawson.co.uk/xsl/sect2/N4486.html#d4085e94) -matt [...] fo:table-body xsl:for-each select=customerPF xsl:if test=(position()-1) mod 3 = 0 xsl:call-template name=new-row xsl:with-param name=row-num select=position() - 1 / /xsl:call-template /xsl:if fo:table-cellfo:blockxsl:value-of select=position()//fo:block/fo:table-cell /xsl:for-each /fo:table-body [...] xsl:template name=new-row xsl:param name=row-num/ fo:table-row xsl:for-each select=../customerPF xsl:if test=$row-num lt; position() xsl:if test=$row-num+4 gt; position() fo:table-cellfo:blockxsl:value-of select=position()//fo:block/fo:table-cell /xsl:if /xsl:if /xsl:for-each /fo:table-row xsl:template Thanks for the response. Yes, its definitely a hack because I could not put a /fo:table-row inside the xsl:if tag. I get an error message saying The element type xsl:if must be terminated by the matching end-tag /xsl:if Is there a better way to accomplish what I need to do...i.e. ouputting portions of table-row tags depending on certain conditions? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: Error when piping XSL-FO to FOP driver using SAXResult
Woops, that first fo:table-cell... tag below should have been removed. Actually if you use this: xsl:for-each select=../customerPF[$row-num lt; position() and $row-num+4 gt; position()] instead of the xsl:for-each followed by 2 xsl:if-s below, our code might be somewhat efficient after all. I just tested and it seems ok on first pass. Apparently we were still learning our XSLT back then. Now comes the age-old question of whether or not to rewrite code that works fine just because we know it can be done better. I think that question usually comes down on the do-not-rewrite side. -Original Message- From: Savino, Matt C Sent: Wednesday, May 14, 2003 11:47 AM To: [EMAIL PROTECTED] Subject: RE: Re: Error when piping XSL-FO to FOP driver using SAXResult Below is something we use as part of a much more involved stylesheet. Although looking at it now it's not the most efficient piece of code as it loops through the same nodes several times. (We use it to break output into groups of five columns and know we'll never have more than 3 or 4 groups, so we didn't need to worry about running through the same nodes a few extra times.) I think for efficiency and straighforwardness, the Steve Tinney example from the link in the previous post is probably the best way to go. (http://www.dpawson.co.uk/xsl/sect2/N4486.html#d4085e94) -matt [...] fo:table-body xsl:for-each select=customerPF xsl:if test=(position()-1) mod 3 = 0 xsl:call-template name=new-row xsl:with-param name=row-num select=position() - 1 / /xsl:call-template /xsl:if fo:table-cellfo:blockxsl:value-of select=position()//fo:block/fo:table-cell /xsl:for-each /fo:table-body [...] xsl:template name=new-row xsl:param name=row-num/ fo:table-row xsl:for-each select=../customerPF xsl:if test=$row-num lt; position() xsl:if test=$row-num+4 gt; position() fo:table-cellfo:blockxsl:value-of select=position()//fo:block/fo:table-cell /xsl:if /xsl:if /xsl:for-each /fo:table-row xsl:template Thanks for the response. Yes, its definitely a hack because I could not put a /fo:table-row inside the xsl:if tag. I get an error message saying The element type xsl:if must be terminated by the matching end-tag /xsl:if Is there a better way to accomplish what I need to do...i.e. ouputting portions of table-row tags depending on certain conditions? 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]