RE: Landscape Layout

2002-06-07 Thread Torsten Erler
Simplest way: swap the values of the page-width and page-height Attributes in the Page Master reference of your xsl-template. greetings torsten fo:simple-page-master master-reference=A4 page-width=XXXpt page-height=YYYpt... -Original Message- From: Urban, Patrick [mailto:[EMAIL

RE: stykesheet attribute version

2002-06-11 Thread Torsten Erler
I think you should try this: ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; version=1.0 !-- optional -- xsl:output method=xml indent=yes encoding=ISO-8859-1/ note at the version attribute inside the xsl:stylesheet tag

[OT] ToastScript using

2002-06-14 Thread Torsten Erler
Hi all! Has anyone experience with ToastScript? I need a possibility to preview embedded postscript in pdf with AWTRenderer. Therefore I've downloaded ToastScript, but I cannot find any documentation (expect api-doc) how to use this. I don't need the gui viewer, because I have to render the

RE: How to Center a text in a table cell?

2002-06-28 Thread Torsten Erler
try: fo:table-cell display-align=center Greeting Torsten -Original Message- From: Stefano Barella [mailto:[EMAIL PROTECTED] Sent: Freitag, 28. Juni 2002 10:29 To: [EMAIL PROTECTED] Subject: How to Center a text in a table cell? Hi, I'm Stefano and I have a problem with xsl-fo

Fonts in PDF (embedded postscript)

2002-11-12 Thread Torsten Erler
correctbut the embedded postscript looks still poor on printing. I print the pdf via command line on Acrobat Reader 5.0. Has anyone an idea? ThanX Torsten Erler Junior Software DeveloperE-mail: mailto:[EMAIL PROTECTED] Telephone: (+49) 351-31875-0Direct: (+49) 351-31875-754net-linx Europe

RE: Fonts in PDF (embedded postscript)

2002-11-12 Thread Torsten Erler
Attached is a sample pdf file with one included postscsript-ad (Ad.ps). The PDF uses the same font like the original postscript file (BellCentennial). The postscript file is called in the generated fo-file as followed: fo:block text-align=center fo:external-graphic src=file:/c:/Ad.ps/

RE: PFM font embedding problems.

2002-11-13 Thread Torsten Erler
HI IIRC try to use *.pfb files in embed-file=... cu Torsten attachment: winmail.dat

Euro Sign Problem

2002-11-13 Thread Torsten Erler
StreamSource( reader );Result foResult = new StreamResult( out );Transformer transformer = getTransformer( xslFilePath );transformer.transform( xmlSource, foResult ); ThanX Torsten Erler Junior Software DeveloperE-mail: mailto:[EMAIL PROTECTED] Telephone: (+49) 351-31875-0Direct: (+49) 351-31875

foa extension

2002-11-28 Thread Torsten Erler
The screen rendering result and the produced PDF-file looks very good (except a few character encoding problems). Does anyone know how avoid the error ThanX Torsten Erler - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

accessing attributes in xml

2003-04-24 Thread Torsten Erler
Hi all, I've an xml like: ... defaultContactPerson type="PROOF"/defaultContactPerson type="BILL"/defaultContactPerson type="SALES"Hans Friedrich Mueller/defaultContactPersondefaultContactPerson type="MAIL"/defaultContactPerson type="KEY"/ Now I've to check inside the xsl this:

RE: accessing attributes in xml

2003-04-24 Thread Torsten Erler
Hope this helps Cheers Mirko -Ursprüngliche Nachricht-----Von: Torsten Erler [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 24. April 2003 15:03An: Fop-User (E-mail)Betreff: accessing attributes in xml Hi all,

table--row background

2003-04-24 Thread Torsten Erler
Hi all, I need help again with FOPing. I've a table with many rows. Each second row has a gray colored background. Now it appears that the gray backgound overlaps the table border (approximately for a half point) and between the column borders are breaks (also 1/2 point) on every top of a colored

RE: HTML render class available?

2003-04-25 Thread Torsten Erler
No I don't think that anyone has written this Renderer, because you've to translate the whole fo-reference back into html syntax, which would be like a shot from the back through the breast into the eye. You can try to write it, but before take a look at http://www.w3.org/TR/xsl/slice7.html Each

RE: testing support for various graphics formats

2003-05-12 Thread Torsten Erler
FYI ghostscript v8.00++ (and naturally ghostview) doesn't render postscript/eps inside pdf by default, unless you set -dDOPS flag on command line or ghostsview config. Reason for that is a security problem with postscript, which has file access to the client, who is interpreting the postscript

RE: external graphics and memory usage

2003-05-15 Thread Torsten Erler
Hi, I had the same Problem, org.apache.fop.image.FopImageFactory is caching the Images and will never release the Reference. I've commented out m_urlMap.put(href, imageInstance); @ line 223. You can also try to use WeakHashMap for m_urlMap or add a method which clears the Map on

RE: external graphics and memory usage

2003-05-15 Thread Torsten Erler
... Sorry I use 0.20.4. Just now I've downloaded 0.20.5rc2 and I'm enjoyed to see a method at the end of the class: FopImageFactory.resetCache() Simply call it ;) cu -Original Message- From: Torsten Erler [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 15. Mai 2003 09:43 To: [EMAIL

OT: XPath expression

2003-05-15 Thread Torsten Erler
Hi all, I know it's not the right List, but I think there are a lot of XSL-Experts here in this list. Does anyone know the XPath _expression_ for counting all Attributes and all childs (grandchilds...)of all preceding siblings of the selected node??? In Other words which row numberhas

RE: XPath expression

2003-05-15 Thread Torsten Erler
comments/proposals etc. are very welcome cu Torsten -Original Message- From: David Neary [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 15. Mai 2003 11:43 To: '[EMAIL PROTECTED]' Subject: RE: XPath expression De : Torsten Erler [mailto:[EMAIL PROTECTED] I know it's not the right

RE: XPath expression

2003-05-15 Thread Torsten Erler
ThanX alot -- your explanation reduces dramatically the size of my xsl and enlarges my xsl-understanding. All what I've written in many hours, is shrinked to a few lines of code ;(. But it works great ;))) cu Torsten -Original Message- From: David Neary [mailto:[EMAIL PROTECTED] Sent:

RE: PCL - Postscript Print

2003-05-20 Thread Torsten Erler
Hi there, has anyone got an example on how to implement PCL and/or Postcript printing directly to a printer in a servlet using FOP? Couldn´t find anything like it. Yepp OutputStream out = null; //IP-Stream Printing if( iPPrinting) { Socket s = new Socket( printerName, printerPort );

RE: transform pdf to xsl-fo

2003-05-21 Thread Torsten Erler
First option- save your word file as word 2000 html and try: http://wh2fo.sourceforge.net/ Second - I don't know ;( cu Torsten -Original Message-From: Olivier George [mailto:[EMAIL PROTECTED]Sent: Mittwoch, 21. Mai 2003 15:26To: [EMAIL PROTECTED]Subject: transform pdf

RE: Graphic Problem

2003-05-22 Thread Torsten Erler
The Problem is located at FOPImageFactory. The m_urlMap caches the url of the Image to the produced FopImage (it doesn't check for last modified or something else, so you get the same image for the url until the image reference is cleared). Solution: in FOP 0.20.5rc2 you can call

RE: can I use fo:table-header?

2003-06-05 Thread Torsten Erler
move table header out of the body: fo:table-header fo:table-row fo:table-cell/ fo:table-row /fo:table-header fo:table-body fo:table-row fo:table-cell/ fo:table-row /fo:table-body cu Torsten -Original Message- From: Francisco García [mailto:[EMAIL PROTECTED] Sent: Donnerstag,

RE: line break

2003-06-05 Thread Torsten Erler
Use fo:table-cell white-space-collapse=false xsl:value-of.. cu Torsten -Original Message- From: Francisco García [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 5. Juni 2003 12:44 To: [EMAIL PROTECTED] Subject: line break Hello. I have a xml: ... Name My name is

RE: FOP format is different between DPF and printed output

2003-06-16 Thread Torsten Erler
PrintRenderer uses the Result of AWTRenderer... see: http://xml.apache.org/fop/output.html#general citation start General Information Fonts Most FOP renderers use a FOP-specific system for font registration. However, the AWT and print renderers use the java awt package, which gets its font

RE: Pls help: Showing images of their own size

2003-06-16 Thread Torsten Erler
I don't understand the problem. AFAIK 'content-width'/'content-height' isn't imlemented but 'width'/'height' isn't required to show an image! FOP tries to render the image in its original size except it overflows your imageable area. In this case the image will be scaled down to fit at least one

multipage postscript files

2003-06-17 Thread Torsten Erler
Hi all, I've tried to insert a multipage postscript document into a pdf-document(via external-graphic) but the result looks not as expected (only one side was rendered and the different pages are overdrawing each to the other). I'm afraid that the feature isn't implemented now. Is it in

RE: multipage postscript files

2003-06-17 Thread Torsten Erler
to do some kind of PS2PDF/Distiller thing? Do you want to append a few pages from a PostScript file to a PDF you're generating with FOP? I may be able to give you a few hints. On 17.06.2003 13:00:27 Torsten Erler wrote: I've tried to insert a multipage postscript document into a pdf-document

RE: multipage postscript files

2003-06-17 Thread Torsten Erler
The last one sounds good... Any other Idea (don't know whether it works): I've tried to distill the postscript file by GhostScript and the result looks good. It creates a pdf site for each postcript page. Can I append/insert the created pdf into the original one, created by FOP? cu and ThanX

RE: multipage postscript files

2003-06-17 Thread Torsten Erler
Ok Thanx Jeremias, U'r suggestions were very helpful for me. cu Torsten -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Dienstag, 17. Juni 2003 13:54 To: [EMAIL PROTECTED] Subject: Re: multipage postscript files On 17.06.2003 13:47:58 Torsten Erler

RE: multipage postscript files

2003-06-17 Thread Torsten Erler
files Using Ghostscript you can merge 2 or more pdf files. - Original Message - From: Torsten Erler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 2:05 PM Subject: RE: multipage postscript files Ok Thanx Jeremias, U'r suggestions were very helpful for me

RE: Pls help: Showing images of their own size

2003-06-17 Thread Torsten Erler
Hi Zahidul ... I've adapted your xsl code snip with a few surrounding necessary tags to reproduce it and behold there are the images in both cases !!! I don't know exactly what's missing in your stylesheet, but it works without fixed image sizes (as a said yesterday) I swear ;) Find the working

RE: FOP locks output file under WinXP

2003-06-17 Thread Torsten Erler
Hi Nicolas hmm... you've forgot to flushing and closing the OutputStream! and you have to do it in a finally clause if you want it to be reliable. I've also to bleat ;) Remove 'Thread.sleep(2)', if your'e waiting for the execution do that: * //close the Stream before calling

RE: checkbox in pdf

2003-06-18 Thread Torsten Erler
Hi AFAIK neither Helvetica nor the other fonts youv'e tried out, contain this glyph so U've to use a font which has this character at this address. Unfortunality I cant help you which font has it but I think another solution would be to create a simple graphic (box.gif) which can be scaled

RE: checkbox in pdf

2003-06-18 Thread Torsten Erler
I thought do you need SOME checkboxes but afaik Zapf contains only the unchecked one (with different dropping shadow). To use external graphic shouldn't be a perfomance problem I think (the glyph must also been read from the font file!). For best quality you can use SVG to draw the boxes your'e

RE: line break at long string - overlap the following table cell

2003-06-25 Thread Torsten Erler
Turn on hyphanation in your stylesheet like below: fo:table table-layout=fixed inline-progression-dimension.optimum=100% hyphenate=true language=en hyphenation-push-character-count=2 hyphenation-remain-character-count=2 cu Torsten -Original Message- From: Zmitko, Jan [mailto:[EMAIL

RE: checkbox

2003-07-08 Thread Torsten Erler
Hi, either you use the (unchecked) checkbox from ZapfDingbats Font fo:inline font-family=ZapfDingbats font-size=10pt#x274F;/fo:inline or draw it by yourself (svg requires batik.jar) like that: !-- checked checkbox (50% scaled down) -- fo:instream-foreign-object width=11pt height=11pt svg:svg

RE: checkbox

2003-07-10 Thread Torsten Erler
it. Can you give more $ support, please? :-) $ thanx in advance!! $ $ suse $ $ -Ursprüngliche Nachricht- $ Von: Torsten Erler [mailto:[EMAIL PROTECTED] $ Gesendet: Tuesday, July 08, 2003 9:42 AM $ An: [EMAIL PROTECTED] $ Betreff: RE: checkbox $ $ Hi, $ $ either you use

RE: combine 2 or more PDF files

2003-07-14 Thread Torsten Erler
Hi A post-processor like iText / ghostscript can do this for you. see: http://xml.apache.org/fop/resources.html#products-pdf cu Torsten -Original Message- From: Yudhistira Ardhi Nugraha [mailto:[EMAIL PROTECTED] Sent: Montag, 14. Juli 2003 05:00 To: [EMAIL PROTECTED] Subject: combine 2

RE: [newbie] Page orientation in fop

2003-07-14 Thread Torsten Erler
Define a ???-page-master with the appropriate width * heigth e.g. for A4 Paper: fo:simple-page-master page-width=297mm page-height=210mm master-name=a4 fo:region-body/ /fo:simple-page-master cu Torsten -Original Message- From: Leonard Wolters [mailto:[EMAIL PROTECTED] Sent: Montag,

RE: Aligning table in center without indenting...

2003-07-15 Thread Torsten Erler
Hi... see: http://xml.apache.org/fop/fo.html#fo-center-table-horizon regards Torsten -Original Message- From: Kodandapani A. [mailto:[EMAIL PROTECTED] Sent: Dienstag, 15. Juli 2003 14:01 To: [EMAIL PROTECTED] Subject: Aligning table in center without indenting... Hi, I

RE: Croatian letters in pdf

2003-07-15 Thread Torsten Erler
hi see: http://xml.apache.org/fop/fo.html#xml-special-chars to add your own font see: http://xml.apache.org/fop/fonts.html#custom (ensure that the font has the needed glyphs (charachters) inside.) All characters (and their addresses) of the PDF Base14 Fonts you can see at:

Infinite loop on pagination

2003-07-30 Thread Torsten Erler
Hi all... I've a problem that fop runs in an infinite loop if a table cell spans over more than one page. F.e.: 1.Cell | 2.Cell A CELL | simply with a | some lot of | text bocks | inside | and| here | is the | page | break | end first page but the|