RE: Logging
> -Original Message- > From: Roland Neilands [mailto:[EMAIL PROTECTED] > Sent: June 16, 2002 8:02 PM > To: [EMAIL PROTECTED] > Subject: RE: Logging > > > check the website/docs, there is a logging available, also there is an > > example > > Again, great for embedding, but would be useful to have from the command > line. Especially for debugging in Windows as anything more than ~20 lines > output is lost. Depends on your version of Windows, and maybe even not so much at that, unless you've got something ancient. On Win2K I either set my console to 500 or 1000 lines, and/or redirect with stuff like C:\>runsomecommand > logfile.txt 2>&1 On all versions of Windows going back to Win95, plus plain DOS, you've got the MODE command that you can set your columns and lines with. Check out http://www.computerhope.com/modehlp.htm. Just some thoughts. AHS
RE: Logging
> check the website/docs, there is a logging available, also there is an > example Again, great for embedding, but would be useful to have from the command line. Especially for debugging in Windows as anything more than ~20 lines output is lost. Regards, Roland
RE: error handling
> > It is. The problem is that FOP can't delete the output file > in case of a > > problem if it only gets an OutputStream. And for > optimization reasons > > FOP can't wait until the end to write the output to the > target stream. > > But does fop should delete output file? I don't think so, that's > responsibility of enclosing application, which has full control of > OutputStream and can easily do this being catching FOPException. All very well for embeddding, but the command prompt version still leaves the corrupt file there & no file at all would be preferable to a useless one. I hope the UNIX script sets the return code on errors (haven't tested yet). Regards, Roland
Re: render only page n
For anyone who is interested - a quick hackish approach (non-fop or iText) is available with acroreader viz. acroread -toPostScript -start 4 -end 4 /tmp/multi_page.pdf This will create a ps file of page 4 only: Of course you can convert the entire file to ps without those extra flags and then use psselect to print what you want, ciao According to Jeremias Maerki on Thu, Jun 13, 2002 at 08:49:39AM +0200: > No. Want to add support for this yourself? I can give you some pointers, > if you want. The other possibility is using iText or something similar > to delete the pages you don't want. > > > Is it possible to tell fop to render only page n? > > Without having to put explicit tags in the source of course. > > Cheers, > Jeremias Märki > > mailto:[EMAIL PROTECTED] > > OUTLINE AG > Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern > Tel. +41 41 317 2020 - Fax +41 41 317 2029 > Internet http://www.outline.ch -- Eric Smith
Re: error handling
Jeremias Maerki wrote: It is. The problem is that FOP can't delete the output file in case of a problem if it only gets an OutputStream. And for optimization reasons FOP can't wait until the end to write the output to the target stream. But does fop should delete output file? I don't think so, that's responsibility of enclosing application, which has full control of OutputStream and can easily do this being catching FOPException. -- Oleg Tkachenko Multiconn International Ltd
Re: Problems with nesting in ?
Jens Posingies wrote: We have a very, very strange problem: Our project DTD contains - and -tags which work absolutely fine, if the tags are called seperated - but when testet this combination (nesting in ): foo... bar... we lose the last line of the text beyond the graphic. Could this be a FOP problem with nesting in ? All the other elements don't have problem with being nesting in "". Could you provide example of such buggy fo document? -- Oleg Tkachenko Multiconn International Ltd
Re: Control of long words inside a table cell
Lance Frohman wrote: How would you handle "Catering for proportional fonts"? We are using substring(...) with a proportional font, and it looks bad. This is to be expected, because of the unequal character widths. The character widths (in millipoints) for the standard PDF fonts are available in the src/codegen directory of the FOP source distribution, so you can use them for proper string width calculations if you want. Writing a recursive template doing this is not all that hard. One of the more interesting problems is that the characters are reffered by name in the files, therefore you need also a table for mapping the characters onto the names. J.Pietschmann
Re: Is it possible to maintain kerning in FO?
Actually, in 0.20.4rc letter-spacing should work now, but only for the PDF and PS renderers. On 14.06.2002 21:13:09 Oleg Tkachenko wrote: > Max Dcosta wrote: > > > Is it possible to maintain kerning in FO? > In FO yes, it's possible by "letter-spacing" property: >letter-spacing="2mm">This is a text with 2mm letter-spacing > > But afaik letter-spacing is not implemented in fop yet, fop only able to > keep font built-in kerning. > > -- > Oleg Tkachenko > Multiconn International Ltd Cheers, Jeremias Maerki
Re: error handling
It is. The problem is that FOP can't delete the output file in case of a problem if it only gets an OutputStream. And for optimization reasons FOP can't wait until the end to write the output to the target stream. On 14.06.2002 21:21:48 Oleg Tkachenko wrote: > Ruane, Conleth wrote: > > I'm using the latest version of FOP to automatically generate pdf files > > from xml (what else) and I've noticed that when fop stops due to errors in > > the input file(s) a corrupt pdf file is generated. > > Is there any way I can prevent this or is there any way I can access a FOP > > exit code so that I know that something went wrong. > > Currently my only option is to grep the output for errors and react on that. > > > > Any suggestions welcome. > > Driver's render() and run() methods are declared to throw FOPException - > is it not a correct way to report errors? > > -- > Oleg Tkachenko > Multiconn International Ltd Cheers, Jeremias Maerki
RE: Control of long words inside a table cell
How would you handle "Catering for proportional fonts"? We are using substring(...) with a proportional font, and it looks bad. > -Original Message- > From: J.Pietschmann [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 16, 2002 8:11 AM > To: [EMAIL PROTECTED] > Subject: Re: Control of long words inside a table cell > > > Filippos Slavik wrote: > > Hello all, > > > > Actually I have the opposite problem. I'm too having some long > words inside a > > table cell, but since my table-columns have a fixed width I > would like to > > have the content of the cell to be truncated in the case of a > "long word". > > What I did was to use to > dissallow the > > cell's contents to be wrapped. But what FOP did was to "shrink" > enough the > > "gap" between each character so the "long word" could fit in > the block area > > within the cell. > > > > I was unable to locate any hint in the list's archives, > therefore I'm asking.. > > if it's possible to truncate the cell's contents to a specific > and fixed > > width size ? (ex: If the cell's content would be normaly > "Filippos Slavik", > > but the font-size and/or the cell width is not big enough to > hold the entire > > string, I would like a "Filippos Sla" string to appear in the > generated PDF > > instead). > > The XSLFO specification provides the wrap-option and the > overflow property to control this. Unfortunately, FOP > doesn't yet implement the overflow="hidden" setting. > You can try to clip long content at the XSLT level, > for example > > > > or whatever matches your problem. Catering for proportional > fonts will take a bit of work. > > J.Pietschmann >
Problems with nesting in ?
Hi folks, We have a very, very strange problem: Our project DTD contains - and -tags which work absolutely fine, if the tags are called seperated - but when testet this combination (nesting in ): foo... bar... we lose the last line of the text beyond the graphic. Could this be a FOP problem with nesting in ? All the other elements don't have problem with being nesting in "". These are the templates: : Jens Posingies, Lüneburg (Germany) ___ COMMODORE 64 BASIC V2 64K RAM SYSTEM 38911 BASIC BYTES FREE READY. _ ___
Re: Control of long words inside a table cell
On Sunday 16 June 2002 18:10, J.Pietschmann wrote: > Filippos Slavik wrote: > > Hello all, > The XSLFO specification provides the wrap-option and the > overflow property to control this. Unfortunately, FOP > doesn't yet implement the overflow="hidden" setting. > You can try to clip long content at the XSLT level, > for example > > > > or whatever matches your problem. Catering for proportional > fonts will take a bit of work. > Thanks for your reply. I'v tried to use the overflow="hidden" property before sending the e-mail to the list, with no luck. I was not sure if was doing something wrong, but thanks to you I now know that it is not supported by the current FOP implementation. The only solution is the string clipping at the XSLT level, which I'm already using. > J.Pietschmann Thanks for your time ;) Filippos Slavik -- Filippos Slavik FORTHnet R&D, Heraklion, Greece e-mail : [EMAIL PROTECTED] phone : (+3) 810 391230 "The software said 'runs on Win95 or better,' so I installed it on Linux..."
Re: Control of long words inside a table cell
Filippos Slavik wrote: Hello all, Actually I have the opposite problem. I'm too having some long words inside a table cell, but since my table-columns have a fixed width I would like to have the content of the cell to be truncated in the case of a "long word". What I did was to use to dissallow the cell's contents to be wrapped. But what FOP did was to "shrink" enough the "gap" between each character so the "long word" could fit in the block area within the cell. I was unable to locate any hint in the list's archives, therefore I'm asking.. if it's possible to truncate the cell's contents to a specific and fixed width size ? (ex: If the cell's content would be normaly "Filippos Slavik", but the font-size and/or the cell width is not big enough to hold the entire string, I would like a "Filippos Sla" string to appear in the generated PDF instead). The XSLFO specification provides the wrap-option and the overflow property to control this. Unfortunately, FOP doesn't yet implement the overflow="hidden" setting. You can try to clip long content at the XSLT level, for example or whatever matches your problem. Catering for proportional fonts will take a bit of work. J.Pietschmann
Re: Control of long words inside a table cell
Hello all, Actually I have the opposite problem. I'm too having some long words inside a table cell, but since my table-columns have a fixed width I would like to have the content of the cell to be truncated in the case of a "long word". What I did was to use to dissallow the cell's contents to be wrapped. But what FOP did was to "shrink" enough the "gap" between each character so the "long word" could fit in the block area within the cell. I was unable to locate any hint in the list's archives, therefore I'm asking.. if it's possible to truncate the cell's contents to a specific and fixed width size ? (ex: If the cell's content would be normaly "Filippos Slavik", but the font-size and/or the cell width is not big enough to hold the entire string, I would like a "Filippos Sla" string to appear in the generated PDF instead). Thanks Filippos Slavik >Use > >Chuck > >pkrishnaswami wrote: > >>We are using FOP to publish our documents in PDF. Some of the contents in >>the table cell contain long words; eg: full name of java classes where the >>length of the package is wider than the cell\column width; The contents of >>these long words spills beyond the table cell. Is there a way to wrap the >>word if it reaches the end of the table cell. >> >>Thanks. >>Prabhakar >> -- Filippos Slavik FORTHnet R&D, Heraklion, Greece e-mail : [EMAIL PROTECTED] phone : (+3) 810 391230 "The software said 'runs on Win95 or better,' so I installed it on Linux..."
Re: Using FOP on a ASP.NET server to convert FO to PDF
Hi, Did u able to install Tomcat with IIS.if so then integrating FOP with .NET server is easy. My suggestion is , 1.Try to install Tomcat and run some sample servlet examples. 2.Try to configure FOP with Tomcat so that u can run the FopServlet(a sample servlet which convert FO/XSL to pdf)from the browser. 3.Try to configure Tomcat with IIS 4.Then u can do the same with .NET server. Documentation/steps/guidelines are available from Tomcat,FOP packages. Just give another try.It will work. Rgds Balaji http://www.sold.com.au - SOLD.com.au - Find yourself a bargain!