Strange problem, when generating PDF via Servlet

2005-05-19 Thread Matthias Wessendorf
Hi all, I have a Servlet that uses some Velocity templates and XSL-FO as *Markup* language. Velocity calculates a String (that is XSL-FO with *special/custom* content) The string I'd like to use to generate a PDF file inside of my custom servlet like (response is HttpServletResponse) string

Re: page border

2005-05-19 Thread JBryant
Hi, Chris, You can get a line down the right side by putting all the rest of the content in a single-cell table and specifying the height and border-right properties of the cell, thus: http://www.w3.org/1999/XSL/Format";>

page border

2005-05-19 Thread Chris Faulkner
Hello I need a vertical line to appear a certain distance from the right hand edge of my page. I have experimented with region-end but Ican't get anything to appear and none of the examples appear to use it. Is this implemented and how can I use it to draw a vertical line from the top to the bott

Re: Calculate text width

2005-05-19 Thread J.Pietschmann
[EMAIL PROTECTED] wrote: But it seems so that the calculatet width from fontmetrics.stringWidth ist not the width that i can see in the generatet PDF FOP doesn't take kerning into account, while Acrobat Reader does. Have someone a better Idea to calculate the width ? Use a fixed width font :-) J.Pi

Re: Calculate text width

2005-05-19 Thread Louis . Masters
JK: I also ran into similar issues when trying to cut off the overflow in a cell. I eventually abandoned the idea and put in hyphenation to get around our issue. However, below is an overflow workaround I was toying with that was never implemented, but may be of some use: 1. Find the largest

AW: Strange problem, when generating PDF via Servlet

2005-05-19 Thread Matthias Wessendorf
sorry, I made a mistake driver.run(); breaks my code. thanks again. > -Ursprüngliche Nachricht- > Von: Matthias Wessendorf > Gesendet: Donnerstag, 19. Mai 2005 14:59 > An: fop-users@xmlgraphics.apache.org > Betreff: Strange problem, when generating PDF via Servlet > > > Hi all, >

Graeme J Wilson/IS/SLC/StandardLifeGroup is out of the office.

2005-05-19 Thread graeme_j_wilson
I will be out of the office starting 19/05/2005 and will not return until 23/05/2005. contact Brian Monahan if urgent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Calculate text width

2005-05-19 Thread Joern . Karthaus
I want to avoid a line break in a table cell. So my Idea is to calculate the String width of a cell and cut the String even if its longer. so it works for my like this : PDFGraphics2D pdfgrafics2d = new PDFGraphics2D(false); fontmetrics = pdfgrafics2d.getFontMetrics(new Font(FOPTelefon