Re: FOP embed font -- umlauts are not displayed

2007-03-12 Thread Jeremias Maerki
When I look at the metric file it says HelveticaCyr, not Helvetica, which might indicate an east-european variant of Helvetica in a different encoding. I assume FOP can't deal with that kind of font, yet, and handles it wrong. I think the best alternative for you would be to find out whether

Re: border-top-xxx and border-bottom-xxx causing wierd errors

2007-03-12 Thread nick humphrey
i get the same exact error messages. maybe its not reading/recognizing the endorsed folder? this is blowing my mind... 2007/3/9, Andreas L Delmelle [EMAIL PROTECTED]: On Mar 9, 2007, at 15:48, nick humphrey wrote: Hi, thanks for the reply chris =) Try to ensure you are using the xerces and

Re: border-top-xxx and border-bottom-xxx causing wierd errors

2007-03-12 Thread Jeremias Maerki
Can you please post a full FO file (no XSLT) that demonstrates the problem? On 09.03.2007 13:51:31 nick humphrey wrote: hi, i'm using ubuntu 6.10 edgy linux, jdk sun java version 1.5.0_08, and the latest fop-trunk from svn in my xslt i have the following line: ==code==

suggest a filename to a generated pdf

2007-03-12 Thread Zmitko, Jan
Hi, I try do suggest a filename to the generated pdf´s. However the PDF should be display automaticly this meand without some further action of the user. This HTTP Header Information works response.setHeader(Content-Disposition, attachment; filename= + fileName); and this does not works

Re: suggest a filename to a generated pdf

2007-03-12 Thread Adrian Cumiskey
Hi Jan, I think maybe you might need to quote the value of your filename parameter ... Try this :- response.setHeader(Content-Disposition, attachment; filename=\ + fileName + \); Adrian. Zmitko, Jan wrote: Hi, I try do suggest a filename to the generated pdf´s. However the PDF should

Re: Now: Path-problem

2007-03-12 Thread Adrian Cumiskey
Hi Tom, If all your FO files reside in the same place then place a font-base definition in your FOP configuration file. If your FO files are located in different locations make a call to userAgent.setBaseURL(baseURL) before processing the FO file to set the base url used for resolving.

AW: suggest a filename to a generated pdf

2007-03-12 Thread Zmitko, Jan
I´ve tried response.setHeader(Content-Disposition, inline; filename=\ + fileName + \); (not attachment for the undermentioned reasons) and the behavior is the same this means the filename is not set. In the case of attachment the filename is allways set (with and without escaping).

Re: AW: suggest a filename to a generated pdf

2007-03-12 Thread Adrian Cumiskey
Maybe this can help you... http://www.jguru.com/faq/view.jsp?EID=252010 Zmitko, Jan wrote: I´ve tried response.setHeader(Content-Disposition, inline; filename=\ + fileName + \); (not attachment for the undermentioned reasons) and the behavior is the same this means the filename is not

How could I change vertical alignment of list item bullet?

2007-03-12 Thread Andrejus Chaliapinas
Hi, I'm trying to use FOP 0.93 and while using similar to this syntax: fo:list-item-label end-indent=label-end() fo:block fo:inline font-family=Symbol #x2022; /fo:inline /fo:block /fo:list-item-label I get very low vertical alignment of that bullet symbol (actually it's almost below

Re: How could I change vertical alignment of list item bullet?

2007-03-12 Thread Manuel Mall
On Monday 12 March 2007 20:27, Andrejus Chaliapinas wrote: Hi, I'm trying to use FOP 0.93 and while using similar to this syntax: fo:list-item-label end-indent=label-end() fo:block fo:inline font-family=Symbol #x2022; /fo:inline /fo:block /fo:list-item-label I get very low

RE: How could I change vertical alignment of list item bullet?

2007-03-12 Thread Andrejus Chaliapinas
Hi, I'm trying to use FOP 0.93 and while using similar to this syntax: fo:list-item-label end-indent=label-end() fo:block fo:inline font-family=Symbol #x2022; /fo:inline /fo:block /fo:list-item-label I get very low vertical alignment of that bullet symbol (actually

Re: How could I change vertical alignment of list item bullet?

2007-03-12 Thread Manuel Mall
On Monday 12 March 2007 22:50, Andrejus Chaliapinas wrote: Hmm, can you post a short sample fo exhibiting the issue? Manuel Could you take a look at first page of \examples\fo\basic\list.fo file from trunk and at generated pdf (list text items with text here is text in the list item

RE: How could I change vertical alignment of list item bullet?

2007-03-12 Thread Andrejus Chaliapinas
Andrejus, you are correct in that this looks certainly wrong. Wonder in which release this problem was introduced. Any way, this needs some checking / debugging. Thanks for reporting the issue. Any chance of raising a BugZilla for this so we can track it? I'm not sure when - but I

Re: How could I change vertical alignment of list item bullet?

2007-03-12 Thread Jeremias Maerki
On 12.03.2007 15:29:29 Manuel Mall wrote: On Monday 12 March 2007 22:50, Andrejus Chaliapinas wrote: Hmm, can you post a short sample fo exhibiting the issue? Manuel Could you take a look at first page of \examples\fo\basic\list.fo file from trunk and at generated pdf (list

Performance issue XSL:FO

2007-03-12 Thread Thomas Yip
Hi, I'm generating a PDF on the fly from my servlet. I use transformer to do XSL:FO translation: 1 StringReader xmlStream = new StringReader(xmlWriter.toString()); 2 Source src = new StreamSource(xmlStream); 3 Result res = new SAXResult(fop.getDefaultHandler()); 4 transformer.transform(src,

Re: Performance issue XSL:FO

2007-03-12 Thread Abel Braaksma
Thomas Yip wrote: 4 transformer.transform(src, res); However line#4 seems to be taking a lot of time to execute (around 40 seconds). Thomas, good to see you here. But it would be much easier for us to help you if you at least answered my questions that I raised in the original thread on the

Problem with table margin-left property

2007-03-12 Thread Miroslav Pukhalsky
Hi there, I have next code: fo:table table-layout=fixed width=100% margin-left=10mm But in PDF I got 20mm left margin instead 10mm! May be it something wrong? I use FOP 0.93. Regards, Miroslav. - To unsubscribe, e-mail:

Re: Problem with table margin-left property

2007-03-12 Thread Andreas L Delmelle
On Mar 12, 2007, at 17:40, Miroslav Pukhalsky wrote: I have next code: fo:table table-layout=fixed width=100% margin-left=10mm Check the margin or indent on the parent (or ancestor) block. Big chance that the problem is described here: http://wiki.apache.org/xmlgraphics-fop/IndentInheritance

Re: Performance issue XSL:FO

2007-03-12 Thread Andreas L Delmelle
On Mar 12, 2007, at 16:52, Thomas Yip wrote: 1 StringReader xmlStream = new StringReader(xmlWriter.toString()); 2 Source src = new StreamSource(xmlStream); 3 Result res = new SAXResult(fop.getDefaultHandler()); 4 transformer.transform(src, res); However line#4 seems to be taking a lot of time

Re: Problem with table margin-left property

2007-03-12 Thread Miroslav Pukhalsky
Hi Andreas, Andreas L Delmelle wrote: Check the margin or indent on the parent (or ancestor) block. Parent (or ancestor) block has no any indents. But I tried resolve my in the another way: xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;

RE: Performance issue XSL:FO

2007-03-12 Thread Thomas Yip
Hi Abel, Thank you for your reply. Sorry, I copied/pasted my last email sent to the other mailing list and forgot to be more specific. Yes, I did log the time as follow: long time1 = System.currentTimeMillis(); transformer.transform(src, res); long time2 = System.currentTimeMillis(); And

Re: Problem with table margin-left property

2007-03-12 Thread Andreas L Delmelle
On Mar 12, 2007, at 18:25, Miroslav Pukhalsky wrote: Hi Miroslav, Andreas L Delmelle wrote: Check the margin or indent on the parent (or ancestor) block. Parent (or ancestor) block has no any indents. But I tried resolve my in the another way: snip / fo:block

Re: Performance issue XSL:FO

2007-03-12 Thread Andreas L Delmelle
On Mar 12, 2007, at 18:43, Thomas Yip wrote: Hi again, Yes, I did log the time as follow: long time1 = System.currentTimeMillis(); transformer.transform(src, res); long time2 = System.currentTimeMillis(); And the difference between time2 and time1 is really about 40 seconds. In command

Re: Now: Path-problem

2007-03-12 Thread Thomas Zastrow
Adrian Cumiskey schrieb: Hi Tom, If all your FO files reside in the same place then place a font-base definition in your FOP configuration file. If your FO files are located in different locations make a call to userAgent.setBaseURL(baseURL) before processing the FO file to set the base

Re: Performance issue XSL:FO

2007-03-12 Thread Abel Braaksma
Thomas Yip wrote: [...] xsl:include href=../template1.xsl / xsl:include href=template2.xsl/ xsl:include href=template3.xsl / xsl:include href=template4.xsl / xsl:include href=template5.xsl / [...] !-- Body -- fo:flow flow-name=xsl-region-body fo:block xsl:call-template name=template1 /

Re: border-top-xxx and border-bottom-xxx causing wierd errors

2007-03-12 Thread nick humphrey
see attached file... i echo the java_home variable in the fop script and it is using the correct java version, to where i also made the endorsed directory ($JAVA_HOME/lib), but like i said, still the same errors. when i run fop with just the fo and pdf statements: ./fop XXX.fo XXX.pdf then some

Re: Typo in AbstractRenderer :: renderBlockViewPort

2007-03-12 Thread Andreas L Delmelle
On Mar 9, 2007, at 16:29, Paul Vinkenoog wrote: Hi Paul, Just a little FYI: I (finally) got around to committing your suggested correction to the trunk. Ultimately, the quality of FOP depends greatly upon users like yourself, who are not afraid to take a stroll through the code, The

A minor question

2007-03-12 Thread Thomas Zastrow
Hello, my Java-program works fine in the meantime :-) When I transform something with FOP, on the commandline there are warnings and so on like this: 12.03.2007 21:39:56 org.apache.fop.apps.FOUserAgent setTargetResolution INFO: target-resolution set to: 72.0dpi (px2mm=0.3528) 12.03.2007

Re: Performance issue XSL:FO

2007-03-12 Thread Jeremias Maerki
On 12.03.2007 19:59:26 Abel Braaksma wrote: Thomas Yip wrote: [...] xsl:include href=../template1.xsl / xsl:include href=template2.xsl/ xsl:include href=template3.xsl / xsl:include href=template4.xsl / xsl:include href=template5.xsl / [...] !-- Body -- fo:flow

root must be root element

2007-03-12 Thread Pardha Paruchuri
All, we are getting below error message while trying to run FOP 0.20.5 servlet. javax.xml.transform.TransformerException: org.apache.fop.apps.FOPException: root must be root element at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:725) at

RE: root must be root element

2007-03-12 Thread Jennifer Fletcher
Hi Pardha, You may have a memory issue. Can you give more memory to FOP servlet? Also, is there plenty of disk space in the write directory? If stopping/restarting the servlet with more memory doesn't work, I suggest we open a SR with Oracle. +Jennifer -Original Message- From:

R: A minor question

2007-03-12 Thread Jeff Vannest
Is it possible to put this messages into a variable, so that I can access them from my Java-program? Search for redirect standard out java in Google. For example: http://www.jcreator.com/forums/index.php?showtopic=773 Jeff

Re: border-top-xxx and border-bottom-xxx causing wierd errors

2007-03-12 Thread Jeremias Maerki
Thanks for the test file. I was able to reproduce and fix the bug. It is fixed in FOP Trunk: http://svn.apache.org/viewvc?view=revrev=517415 If you can't use FOP Trunk you can work around the problem by explicitely setting the height or block-progression-dimension property on the block-container.

out.flush()

2007-03-12 Thread Jeff Vannest
Will someone add out.flush() to the embedding example on the FOP website...for example, at http://xmlgraphics.apache.org/fop/0.93/embedding.html? It seems a shame that everyone embedding FOP learns to flush() by trial and error. Thanks! Jeff

Re: Problem with table margin-left property

2007-03-12 Thread Jeremias Maerki
On 12.03.2007 18:50:32 Andreas L Delmelle wrote: On Mar 12, 2007, at 18:25, Miroslav Pukhalsky wrote: Hi Miroslav, Andreas L Delmelle wrote: Check the margin or indent on the parent (or ancestor) block. Parent (or ancestor) block has no any indents. But I tried resolve my in the

Re: FOP 0.93: NullPointerException

2007-03-12 Thread Jeremias Maerki
You seem to be using custom fonts, so it is difficult for me to reproduce the problem. In my own tests, everything worked fine. I suspect you are using a font which has a special encoding that is not handled properly by FOP. Are you using Type 1 fonts or TrueType fonts? Given that the error

Re: A minor question

2007-03-12 Thread Jeremias Maerki
On 12.03.2007 21:46:24 Thomas Zastrow wrote: Hello, my Java-program works fine in the meantime :-) When I transform something with FOP, on the commandline there are warnings and so on like this: 12.03.2007 21:39:56 org.apache.fop.apps.FOUserAgent setTargetResolution INFO:

RE: root must be root element

2007-03-12 Thread Pardha Paruchuri
Jennifer, I just tried restarting the servlet and that solved the issue. It may not be a memory issue as it is a small document. I will keep looking into log files and let you know if I find anything specific. Thanks, Pardha Jennifer Fletcher [EMAIL PROTECTED] wrote:

Re: out.flush()

2007-03-12 Thread Jeremias Maerki
That's the first time I head someone mention that. Why do you think this is necessary? The example uses a try..finally calling out.close() in the finally section. This normally causes an implicit flush() (at least for all implementations of OutputStream I know and which do actually implement

Re: root must be root element

2007-03-12 Thread Jeremias Maerki
Did you miss the namespace declaration for the FO namespace? Or are you using a non-namespace-aware XML parser? On 12.03.2007 22:27:44 Pardha Paruchuri wrote: All, we are getting below error message while trying to run FOP 0.20.5 servlet.

Re: border-top-xxx and border-bottom-xxx causing wierd errors

2007-03-12 Thread nick humphrey
thanks a bigillion Jeremias! i'll download the trunk tomorrow and test it out... i'm so happy that it was a bug and that i wasn't crazy =) 2007/3/12, Jeremias Maerki [EMAIL PROTECTED]: Thanks for the test file. I was able to reproduce and fix the bug. It is fixed in FOP Trunk:

Re: root must be root element

2007-03-12 Thread Pardha Paruchuri
Thanks for the reply. Restarting the servlet solved the issue. Dont know what caused the issue, I could not find any other error in the log file. Jeremias Maerki [EMAIL PROTECTED] wrote: Did you miss the namespace declaration for the FO namespace? Or are you using a non-namespace-aware

Re: FOP 0.93: NullPointerException

2007-03-12 Thread Abel Braaksma
Jeff Powanda wrote: I’m using xsltproc.exe and FOP 0.93 to try to convert DocBook 4 (version 1.72) to PDF output. I keep getting this NullPointerException. From other messages posted here, I assumed it had to do with an older version of Xalan included with JRE 1.5, but I’ve placed the FOP

Re: out.flush()

2007-03-12 Thread Jeff Vannest
Closing the buffered out without flushing causes the PDF file to be closed before all data is written to it. Originally when I started working with the embedded FOP I had this problem...adding the flush got rid of the problem completely. Another user had the same problem and reported it on 3/6/07

font-weight: bolder

2007-03-12 Thread Daniel Noll
Hi all. Is there a particular reason why when I have a font-weight=bolder, it doesn't actually make the text any bolder? font-weight=bold works as one would expect. Daniel Noll Nuix Pty Ltd Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +61 2 9280 0699 Web: http://nuix.com/

RE: How could I change vertical alignment of list item bullet?

2007-03-12 Thread Andrejus Chaliapinas
Hi Jeremias, I've just checked since I was curious. It's already in 0.90. Seems to have to do with font metrics. Take a look at the Area Tree XML. The label has a BPD of 18936 while the body has 14400. Symbol has an ascender of 1010 while Helvetica has 718. Smells like a need for

Re: FOP 0.93: NullPointerException

2007-03-12 Thread Jeremias Maerki
Alright, that's easy: Just don't register your own Symbol font and just use the implicit Symbol font that's in the Base 14 font set and everything should work. On 13.03.2007 00:40:25 Jeff Powanda wrote: Yes, I'm using Type 1 fonts. I've attached a ZIP file containing the AFM, PFM, and XML files