Re: SVG rendering in release 0.20.3

2002-04-15 Thread RAYMOND Romain

hello,
same problem for me, it is okay with a .gif file but svg dos not render
...
or gives up a strange picture wich seems to indicate something like 
file not found .

Matthew L. Avizinis a écrit :
 
 The rect renders fine.  It's actually the image that actually causes the
 problem.
 Here, I have used an svg that I knew worked previously.  I have tried an
 href URI that is relative and an absolute path, e.g. D:\pictures\test.svg.
 I have tried a URL, e.g. http://test.gleim.com/pictures/test.svg.  I have
 tried file:[EMAIL PROTECTED], file:/[EMAIL PROTECTED], file://[EMAIL 
 PROTECTED], and file:///[EMAIL PROTECTED]  I
 believe I have tried every option I have ever seen suggested in this list to
 no avail.
 
  -Original Message-
  From: J.Pietschmann [mailto:[EMAIL PROTECTED]
  Sent: Saturday, April 13, 2002 12:13 PM
  To: [EMAIL PROTECTED]
  Subject: Re: SVG rendering in release 0.20.3
 
 
  Matthew L. Avizinis wrote:
   It still doesn't work with the new batik.jar.
   Anything else to check?
 
  I was going to ask whether your SVG code renders ok
  in the SVG browser, unfortunately, the SVG browser
  packaged in the jar distributed with FOP 0.20.3 doesn't
  run.
  I got something similar to your code working in the
  SVG browser from Batik-1.1rc, with some foo values
  in place of the XPath expression from your XSL code
  snipped.
 
  J.Pietschmann


Re: SVG rendering in release 0.20.3

2002-04-15 Thread Keiron Liddle
The examples in the docs/examples/svg/ directory work fine, so how is 
yours different? Do these examples work for you?

I suspect the svg referenced in the image is invalid.
On 2002.04.13 18:51 Matthew L. Avizinis wrote:
The rect renders fine.  It's actually the image that actually causes
the
problem.
Here, I have used an svg that I knew worked previously.  I have tried an
href URI that is relative and an absolute path, e.g.
D:\pictures\test.svg.
I have tried a URL, e.g. http://test.gleim.com/pictures/test.svg.  I have
tried file:[EMAIL PROTECTED], file:/[EMAIL PROTECTED], file://[EMAIL 
PROTECTED], and file:///[EMAIL PROTECTED]  I
believe I have tried every option I have ever seen suggested in this list
to
no avail.


editable pdf forms

2002-04-15 Thread mangesh ralegankar
hello 
Pls Some one can help me how to create editable pdf forms using fo tags ;
or creation of such pdf forms are not possible using fo.
Then is there any other method.If some one is knowing the answer pls tell me with some samples.
Thank u very much in adv

Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax

keep-together

2002-04-15 Thread MARTIN Franck
Hi

Does anyone know of a way to prevent blocks or tables from being divided
when a page break occurs?
Is the property keep-together implemented in fop?

Thanx

Franck MARTIN




FOP printing using polish characters

2002-04-15 Thread Kristoffersen, Per
Title: FOP printing using polish characters





Dear all guru's.


I hope someone can help me on this one :
I am trying to use FOP to print in pdf-format. When doing so my polish characters prints as #'s.
I have been given the following statement, and I need to get it working...


fo:block text-align=start
 xsl:choose
  xsl:when test=ItemDescription[. = ' ']not specified/xsl:when
 xsl:otherwise
  xsl:value-of select=BaseItemDetail/ItemDescription/
 /xsl:otherwise
 /xsl:choose
/fo:block


My problem is when I have polish special characters in the above, it prints in the pdf-file as #'s.


What can I do to change this ?


Thank you very much for any help.
Best regards and have a nice day where ever you are in the world.
Per Kristoffersen





RE: FOP printing using polish characters

2002-04-15 Thread Michal Kwiatek
Title: FOP printing using polish characters



Ihad the same problem last week and it's very easy as long as you 
have Polish TTF or PFM fonts. All you have to do is make FOP use them and embed 
them in result PDF. Have a look at http://xml.apache.org/fop/fonts.html. It's all there. If you have TTFs, look at the "Adding additional TrueType" section. It's real 
easy.

Nice 
to hear someone out in the world uses Polish national characters. 


Micha 
Kwiatek---BiznesPartner.pl SAul. 
Mynarska 4801-171 Warszawatel. 5355560

  -Original Message-From: Kristoffersen, Per 
  [mailto:[EMAIL PROTECTED]Sent: Monday, April 15, 
  2002 2:06 PMTo: '[EMAIL PROTECTED]'; 
  'fop-dev@xml.apache.org'Subject: FOP printing using polish 
  characters
  Dear all guru's. 
  I hope someone can help me on this one 
  : I am trying to use FOP to print 
  in pdf-format. When doing so my polish characters prints as #'s. 
  I have been given the following statement, 
  and I need to get it working... 
  fo:block text-align="start" 
   xsl:choose 
   
   xsl:when test="ItemDescription[. = ' ']"not 
  specified/xsl:when 
   xsl:otherwise 
   
   xsl:value-of select="BaseItemDetail/ItemDescription"/ 
   /xsl:otherwise 
   /xsl:choose /fo:block 
  My problem is when I have polish special 
  characters in the above, it prints in the pdf-file as #'s. 
  What can I do to change this ? 
  Thank you very much for any help. 
  Best regards and have a nice day where 
  ever you are in the world. Per 
  Kristoffersen 


Future release and full compliancy

2002-04-15 Thread MARTIN Franck
Does anyone have an idea of when is to occur the next fop release and how
long is it going to take for fop to be full compliant w/ the W3
recommendation?

Franck MARTIN



RE: FOP printing using polish characters

2002-04-15 Thread Kristoffersen, Per
Hi Michael,
 
Thank you for your help.
I will have a look and try to get this working.
Per

-Original Message-
From: Michal Kwiatek [mailto:[EMAIL PROTECTED]
Sent: 15. april 2002 14:15
To: [EMAIL PROTECTED]
Subject: RE: FOP printing using polish characters


I had the same problem last week and it's very easy as long as you have
Polish TTF or PFM fonts. All you have to do is make FOP use them and embed
them in result PDF. Have a look at http://xml.apache.org/fop/fonts.html
http://xml.apache.org/fop/fonts.html . It's all there. If you have TTFs,
look at the Adding additional TrueType section. It's real easy.
 
Nice to hear someone out in the world uses Polish national characters.  
 
Michal Kwiatek

---
BiznesPartner.pl SA
ul. Mlynarska 48
01-171 Warszawa
tel. 5355560



-Original Message-
From: Kristoffersen, Per [mailto:[EMAIL PROTECTED]
Sent: Monday, April 15, 2002 2:06 PM
To: '[EMAIL PROTECTED]'; 'fop-dev@xml.apache.org'
Subject: FOP printing using polish characters



Dear all guru's. 

I hope someone can help me on this one : 
I am trying to use FOP to print in pdf-format. When doing so my polish
characters prints as #'s. 
I have been given the following statement, and I need to get it working... 

fo:block text-align=start 
xsl:choose 
xsl:when test=ItemDescription[. = ' ']not
specified/xsl:when 
xsl:otherwise 
xsl:value-of select=BaseItemDetail/ItemDescription/ 
/xsl:otherwise 
/xsl:choose 
/fo:block 

My problem is when I have polish special characters in the above, it prints
in the pdf-file as #'s. 

What can I do to change this ? 

Thank you very much for any help. 
Best regards and have a nice day where ever you are in the world. 
Per Kristoffersen 



RE: FOP printing using polish characters

2002-04-15 Thread Michal Kwiatek
If you have any problem, drop me a line. We'll see what can be done.

Michal Kwiatek

---
BiznesPartner.pl SA
ul. Mlynarska 48
01-171 Warszawa
tel. 5355560



 -Original Message-
 From: Kristoffersen, Per [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 15, 2002 2:37 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: FOP printing using polish characters


 Hi Michael,

 Thank you for your help.
 I will have a look and try to get this working.
 Per

 -Original Message-
 From: Michal Kwiatek [mailto:[EMAIL PROTECTED]
 Sent: 15. april 2002 14:15
 To: [EMAIL PROTECTED]
 Subject: RE: FOP printing using polish characters


 I had the same problem last week and it's very easy as long as you have
 Polish TTF or PFM fonts. All you have to do is make FOP use them and embed
 them in result PDF. Have a look at http://xml.apache.org/fop/fonts.html
 http://xml.apache.org/fop/fonts.html . It's all there. If you have TTFs,
 look at the Adding additional TrueType section. It's real easy.

 Nice to hear someone out in the world uses Polish national characters.

 Michal Kwiatek

 ---
 BiznesPartner.pl SA
 ul. Mlynarska 48
 01-171 Warszawa
 tel. 5355560



 -Original Message-
 From: Kristoffersen, Per [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 15, 2002 2:06 PM
 To: '[EMAIL PROTECTED]'; 'fop-dev@xml.apache.org'
 Subject: FOP printing using polish characters



 Dear all guru's.

 I hope someone can help me on this one :
 I am trying to use FOP to print in pdf-format. When doing so my polish
 characters prints as #'s.
 I have been given the following statement, and I need to get it
 working...

 fo:block text-align=start
 xsl:choose
 xsl:when test=ItemDescription[. = ' ']not
 specified/xsl:when
 xsl:otherwise
 xsl:value-of select=BaseItemDetail/ItemDescription/
 /xsl:otherwise
 /xsl:choose
 /fo:block

 My problem is when I have polish special characters in the above,
 it prints
 in the pdf-file as #'s.

 What can I do to change this ?

 Thank you very much for any help.
 Best regards and have a nice day where ever you are in the world.
 Per Kristoffersen




Re: newbie - Minimum Block Heights

2002-04-15 Thread Guillaume Patin



You're right !!

I've tried with the padding-bottom attribute, and 
it does work, but it may not fit your needs...

just try this :
fo:block padding-bottom="15cm" 
background-color="silver"

friendly,
Guillaume

  - Original Message - 
  From: 
  Andy Bowes 
  
  To: [EMAIL PROTECTED] 
  Sent: Monday, April 15, 2002 2:26 
PM
  Subject: Re: newbie - Minimum Block 
  Heights
  
  Hi Guillaume
  
  I have tried using just the height attribute in 
  the block e.g.
  
  
  ?xml version="1.0"?fo:root 
  xmlns:fo="http://www.w3.org/1999/XSL/Format"fo:layout-master-setfo:simple-page-master 
  master-name="A4" page-height="29.7cm" page-width="21cm" margin-top="1cm" 
  margin-bottom="1cm" margin-left="2cm" 
  margin-right="2cm"fo:region-body 
  margin-top="1.5cm" 
  margin-bottom="2cm"/fo:region-before 
  extent="1.5cm"/fo:region-after 
  extent="2cm"//fo:simple-page-master/fo:layout-master-setfo:page-sequence 
  master-name="A4" 
  initial-page-number="1"fo:static-content 
  flow-name="xsl-region-before"/fo:static-contentfo:static-content 
  flow-name="xsl-region-after"/fo:static-contentfo:flow 
  flow-name="xsl-region-body"fo:blockBefore 
  Block/fo:blockfo:block height="15cm" 
  background-color="silver"This is the block 
  contents/fo:blockfo:blockAfter 
  Block/fo:blockfo:block 
  id="end-of-doc"//fo:flow/fo:page-sequence/fo:root
  
  
  I would expect to see a pretty large middle block with a grey background 
  but this central block just fits around the enclosed text. (See attached 
  PDF file)
  
  I am sure that I must be doing something obvoiusly wrong but I can't see 
  it.
  
  p.s. I am using FOP 0.18.1
  
  Any pointers will be very useful.
  
  Thanks Andy
  
  
  
  
- Original Message - 
From: 
Guillaume 
Patin 
To: [EMAIL PROTECTED] 
Sent: Monday, April 15, 2002 11:26 
AM
Subject: Re: newbie - Minimum Block 
Heights

why don't you simply specify the 'height' 
attribute ? 

  - Original Message - 
  From: 
  Andy 
  Bowes 
  To: [EMAIL PROTECTED] 
  Sent: Monday, April 15, 2002 12:13 
  PM
  Subject: newbie - Minimum Block 
  Heights
  
  Hi
  
  I am new to FOP and have hit a stumbling 
  block pretty quickly. I need to be able to set the minimum heigh of 
  a block in the docuement and from the documentation though that this could 
  be acheived using the following entries in the FO file:
  
  block min-height="2cm"Block 
  Contents/block
  
  However I get the following warning when I 
  attempt to transform this into a PDF:
  
  "WARNING: property 'min-height' 
  ignored"
  
  What am I doing wrong here ?
  
  Thanks
  
  Andy


Re: newbie - Minimum Block Heights

2002-04-15 Thread Andy Bowes



Hi,

Thanks for confirming that I am not going mad. 
:)

Unfortunately the padding at the bottom will not 
really achieve the result I am after. I want to allow the block to grow 
with it's content but ensure that it is AT LEAST a certain size.

It look like I will have to use a table with a 
'hidden' block which uses the padding that you have specified. It's a bit 
of a nasty fix.

Surely someone else must have come across this 
before.

Andy



  - Original Message - 
  From: 
  Guillaume Patin 
  
  To: [EMAIL PROTECTED] 
  Sent: Monday, April 15, 2002 1:58 
PM
  Subject: Re: newbie - Minimum Block 
  Heights
  
  You're right !!
  
  I've tried with the padding-bottom attribute, and 
  it does work, but it may not fit your needs...
  
  just try this :
  fo:block padding-bottom="15cm" 
  background-color="silver"
  
  friendly,
  Guillaume
  
- Original Message - 
From: 
Andy Bowes 

To: [EMAIL PROTECTED] 
Sent: Monday, April 15, 2002 2:26 
PM
Subject: Re: newbie - Minimum Block 
Heights

Hi Guillaume

I have tried using just the height attribute in 
the block e.g.


?xml version="1.0"?fo:root 
xmlns:fo="http://www.w3.org/1999/XSL/Format"fo:layout-master-setfo:simple-page-master 
master-name="A4" page-height="29.7cm" page-width="21cm" margin-top="1cm" 
margin-bottom="1cm" margin-left="2cm" 
margin-right="2cm"fo:region-body 
margin-top="1.5cm" 
margin-bottom="2cm"/fo:region-before 
extent="1.5cm"/fo:region-after 
extent="2cm"//fo:simple-page-master/fo:layout-master-setfo:page-sequence 
master-name="A4" 
initial-page-number="1"fo:static-content 
flow-name="xsl-region-before"/fo:static-contentfo:static-content 
flow-name="xsl-region-after"/fo:static-contentfo:flow 
flow-name="xsl-region-body"fo:blockBefore 
Block/fo:blockfo:block height="15cm" 
background-color="silver"This is the block 
contents/fo:blockfo:blockAfter 
Block/fo:blockfo:block 
id="end-of-doc"//fo:flow/fo:page-sequence/fo:root


I would expect to see a pretty large middle block with a grey 
background but this central block just fits around the enclosed text. 
(See attached PDF file)

I am sure that I must be doing something obvoiusly wrong but I can't 
see it.

p.s. I am using FOP 0.18.1

Any pointers will be very useful.

Thanks Andy




  - Original Message - 
  From: 
  Guillaume 
  Patin 
  To: [EMAIL PROTECTED] 
  Sent: Monday, April 15, 2002 11:26 
  AM
  Subject: Re: newbie - Minimum Block 
  Heights
  
  why don't you simply specify the 'height' 
  attribute ? 
  
- Original Message - 
From: 
Andy 
Bowes 
To: [EMAIL PROTECTED] 
Sent: Monday, April 15, 2002 12:13 
PM
Subject: newbie - Minimum Block 
Heights

Hi

I am new to FOP and have hit a stumbling 
block pretty quickly. I need to be able to set the minimum heigh 
of a block in the docuement and from the documentation though that this 
could be acheived using the following entries in the FO 
file:

block min-height="2cm"Block 
Contents/block

However I get the following warning when I 
attempt to transform this into a PDF:

"WARNING: property 'min-height' 
ignored"

What am I doing wrong here ?

Thanks

Andy


Re: newbie - Minimum Block Heights

2002-04-15 Thread Andy Bowes



Yeah,

The height attribute works on an fo:table 
but not on a block. Is that a bug ?

Andy


  - Original Message - 
  From: 
  Guillaume Patin 
  
  To: [EMAIL PROTECTED] 
  Sent: Monday, April 15, 2002 2:26 
PM
  Subject: Re: newbie - Minimum Block 
  Heights
  
  did you try to create a table with the specified 
  height ?
  
- Original Message - 
From: 
Andy Bowes 

To: [EMAIL PROTECTED] 
Sent: Monday, April 15, 2002 3:14 
PM
Subject: Re: newbie - Minimum Block 
Heights

Hi,

Thanks for confirming that I am not going mad. 
:)

Unfortunately the padding at the bottom will 
not really achieve the result I am after. I want to allow the block to 
grow with it's content but ensure that it is AT LEAST a certain 
size.

It look like I will have to use a table with a 
'hidden' block which uses the padding that you have specified. It's a 
bit of a nasty fix.

Surely someone else must have come across this 
before.

Andy



  - Original Message - 
  From: 
  Guillaume 
  Patin 
  To: [EMAIL PROTECTED] 
  Sent: Monday, April 15, 2002 1:58 
  PM
  Subject: Re: newbie - Minimum Block 
  Heights
  
  You're right !!
  
  I've tried with the padding-bottom attribute, 
  and it does work, but it may not fit your needs...
  
  just try this :
  fo:block padding-bottom="15cm" 
  background-color="silver"
  
  friendly,
  Guillaume
  
- Original Message - 
From: 
Andy 
Bowes 
To: [EMAIL PROTECTED] 
Sent: Monday, April 15, 2002 2:26 
PM
Subject: Re: newbie - Minimum Block 
Heights

Hi Guillaume

I have tried using just the height 
attribute in the block e.g.


?xml version="1.0"?fo:root 
xmlns:fo="http://www.w3.org/1999/XSL/Format"fo:layout-master-setfo:simple-page-master 
master-name="A4" page-height="29.7cm" page-width="21cm" margin-top="1cm" 
margin-bottom="1cm" margin-left="2cm" 
margin-right="2cm"fo:region-body 
margin-top="1.5cm" 
margin-bottom="2cm"/fo:region-before 
extent="1.5cm"/fo:region-after 
extent="2cm"//fo:simple-page-master/fo:layout-master-setfo:page-sequence 
master-name="A4" 
initial-page-number="1"fo:static-content 
flow-name="xsl-region-before"/fo:static-contentfo:static-content 
flow-name="xsl-region-after"/fo:static-contentfo:flow 
flow-name="xsl-region-body"fo:blockBefore 
Block/fo:blockfo:block height="15cm" 
background-color="silver"This is the block 
contents/fo:blockfo:blockAfter 
Block/fo:blockfo:block 
id="end-of-doc"//fo:flow/fo:page-sequence/fo:root


I would expect to see a pretty large middle block with a grey 
background but this central block just fits around the enclosed 
text. (See attached PDF file)

I am sure that I must be doing something obvoiusly wrong but I 
can't see it.

p.s. I am using FOP 0.18.1

Any pointers will be very useful.

Thanks Andy




  - Original Message - 
  From: 
  Guillaume 
  Patin 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, April 15, 2002 
  11:26 AM
  Subject: Re: newbie - Minimum 
  Block Heights
  
  why don't you simply specify the 'height' 
  attribute ? 
  
- Original Message - 
From: 
Andy 
Bowes 
To: [EMAIL PROTECTED] 

Sent: Monday, April 15, 2002 
12:13 PM
Subject: newbie - Minimum Block 
Heights

Hi

I am new to FOP and have hit a 
stumbling block pretty quickly. I need to be able to set the 
minimum heigh of a block in the docuement and from the documentation 
though that this could be acheived using the following entries in 
the FO file:

block min-height="2cm"Block 
Contents/block

However I get the following warning 
when I attempt to transform this into a PDF:

"WARNING: property 'min-height' 
ignored"

What am I doing wrong here 
?

Thanks

Andy


Re: newbie - Minimum Block Heights

2002-04-15 Thread Guillaume Patin



I've found your solution :

try the line-height attribute :

fo:block line-height="15cm" 
background-color="silver"This is the block 
contents/fo:block

it does work on fop 0.20.3

you can find a reference of the fo specification at 

http://www.zvon.org/xxl/xslfoReference/Output/index.html


- Original Message - 

  From: 
  Andy Bowes 
  
  To: [EMAIL PROTECTED] 
  Sent: Monday, April 15, 2002 3:24 
PM
  Subject: Re: newbie - Minimum Block 
  Heights
  
  Yeah,
  
  The height attribute works on an fo:table 
  but not on a block. Is that a bug ?
  
  Andy
  
  
- Original Message - 
From: 
Guillaume 
Patin 
To: [EMAIL PROTECTED] 
Sent: Monday, April 15, 2002 2:26 
PM
Subject: Re: newbie - Minimum Block 
Heights

did you try to create a table with the 
specified height ?

  - Original Message - 
  From: 
  Andy 
  Bowes 
  To: [EMAIL PROTECTED] 
  Sent: Monday, April 15, 2002 3:14 
  PM
  Subject: Re: newbie - Minimum Block 
  Heights
  
  Hi,
  
  Thanks for confirming that I am not going 
  mad. :)
  
  Unfortunately the padding at the bottom will 
  not really achieve the result I am after. I want to allow the block 
  to grow with it's content but ensure that it is AT LEAST a certain 
  size.
  
  It look like I will have to use a table with 
  a 'hidden' block which uses the padding that you have specified. 
  It's a bit of a nasty fix.
  
  Surely someone else must have come across 
  this before.
  
  Andy
  
  
  
- Original Message - 
From: 
Guillaume 
Patin 
To: [EMAIL PROTECTED] 
Sent: Monday, April 15, 2002 1:58 
PM
Subject: Re: newbie - Minimum Block 
Heights

You're right !!

I've tried with the padding-bottom 
attribute, and it does work, but it may not fit your 
needs...

just try this :
fo:block padding-bottom="15cm" 
background-color="silver"

friendly,
Guillaume

  - Original Message - 
  From: 
  Andy 
  Bowes 
  To: [EMAIL PROTECTED] 
  Sent: Monday, April 15, 2002 2:26 
  PM
  Subject: Re: newbie - Minimum 
  Block Heights
  
  Hi Guillaume
  
  I have tried using just the height 
  attribute in the block e.g.
  
  
  ?xml 
  version="1.0"?fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"fo:layout-master-setfo:simple-page-master 
  master-name="A4" page-height="29.7cm" page-width="21cm" 
  margin-top="1cm" margin-bottom="1cm" margin-left="2cm" 
  margin-right="2cm"fo:region-body 
  margin-top="1.5cm" 
  margin-bottom="2cm"/fo:region-before 
  extent="1.5cm"/fo:region-after 
  extent="2cm"//fo:simple-page-master/fo:layout-master-setfo:page-sequence 
  master-name="A4" 
  initial-page-number="1"fo:static-content 
  flow-name="xsl-region-before"/fo:static-contentfo:static-content 
  flow-name="xsl-region-after"/fo:static-contentfo:flow 
  flow-name="xsl-region-body"fo:blockBefore 
  Block/fo:blockfo:block height="15cm" 
  background-color="silver"This is the block 
  contents/fo:blockfo:blockAfter 
  Block/fo:blockfo:block 
  id="end-of-doc"//fo:flow/fo:page-sequence/fo:root
  
  
  I would expect to see a pretty large middle block with a grey 
  background but this central block just fits around the enclosed 
  text. (See attached PDF file)
  
  I am sure that I must be doing something obvoiusly wrong but I 
  can't see it.
  
  p.s. I am using FOP 0.18.1
  
  Any pointers will be very useful.
  
  Thanks Andy
  
  
  
  
- Original Message - 
From: 
Guillaume 
Patin 
To: [EMAIL PROTECTED] 
Sent: Monday, April 15, 2002 
11:26 AM
Subject: Re: newbie - Minimum 
Block Heights

why don't you simply specify the 
'height' attribute ? 

  - Original Message - 
  From: 
  Andy 
  Bowes 
  To: [EMAIL PROTECTED] 
  Sent: Monday, April 15, 2002 
  12:13 PM
  Subject: newbie - Minimum 
  Block Heights
  
  Hi
  
  I am new to FOP and have hit a 
  stumbling block pretty quickly. I need to be able to set the 
  minimum heigh of a block in 

PDF include

2002-04-15 Thread Stefan Arn
Hi!

Is it possible to include a external PDF File into the fo File?
Like 'include' in PHP or other Languages?

thanks




Re: PDF include

2002-04-15 Thread Jeremias Maerki
No, but you can use some PDF touch-up tool like iText or PJ to merge in
selected pages from a seprate PDF into your generated PDF. Quite a few
people do this.

 Is it possible to include a external PDF File into the fo File?
 Like 'include' in PHP or other Languages?


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



FOP and SAX

2002-04-15 Thread Brian O'Kelley
I'm trying to take an XML document, combine it with an XSL stylesheet,
and spit it to PDF using SAX events, and I'm having trouble finding an
example that works.

Here's my code (using Fop 0.20.3):

TransformerHandler tHandler = XSLTranslateFactory.
getHandler(FopInput.xsl) ; // gets TransformerHandler
from this file
Driver fopDriver = new Driver() ;
fopDriver.setRenderer(Driver.RENDER_PDF) ;
fopDriver.setOutputStream(out) ;
ContentHandler cHandler = driver.getContentHandler() ;

XMLReader reader = XMLReaderFactory.createXMLReader() ;
reader.setContentHandler(tHandler) ;
 
reader.setProperty(http://xml.org/sax/properties/lexical-handler;,
tHandler) ;
tHandler.setResult(new SAXResult(cHandler)) ;
reader.parse(source) ;

Any ideas?

Thanks,
Brian



spna=all didn't work for fo:cell

2002-04-15 Thread Argyn Kuketayev
I had to put 
number-columns-spanned=100 
instead of 
span=all
in fo:column element, because the latter didn't work. is it a bug?

thanks, 
Argyn


RE: spna=all didn't work for fo:cell

2002-04-15 Thread Argyn Kuketayev
correction: I meant fo:cell when wrote fo:column


 -Original Message-
 From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 15, 2002 5:29 PM
 To: '[EMAIL PROTECTED]'
 Subject: spna=all didn't work for fo:cell
 
 
 I had to put 
 number-columns-spanned=100 
 instead of 
 span=all
 in fo:column element, because the latter didn't work. is it a bug?
 
 thanks, 
 Argyn
 


[Fwd: ZapfDingbats]

2002-04-15 Thread Patrick Andries




lt;fo:block text-align="center" font="ZapfDingbats"gt; amp;#x2766;
lt;/fo:blockgt;

Why doesn't this print me a vignet ?

  

Isn't ZapfDingbats one of the 14 standard fonts ?

P. Andries







Omitting content length

2002-04-15 Thread Brian O'Kelley
Ignore the question below - it works (if anyone needs SAX example, this
is decent).

It looks like what is happening is that I was writing this directly to a
servlet's outputstream, so I never set the content length header. This
made IE puke, although Lynx caught it ok. I've read through the threads
about how IE handles content length header and requests the document
twice.

Is there any alternative to writing to a byte array to calculate the
length before rewriting to the servlet's output stream? I'd like to
avoid the memory consequences.

Thanks,
Brian



-Original Message-
From: Brian O'Kelley [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 15, 2002 5:28 PM
To: [EMAIL PROTECTED]
Subject: FOP and SAX


I'm trying to take an XML document, combine it with an XSL stylesheet,
and spit it to PDF using SAX events, and I'm having trouble finding an
example that works.

Here's my code (using Fop 0.20.3):

TransformerHandler tHandler = XSLTranslateFactory.
getHandler(FopInput.xsl) ; // gets TransformerHandler
from this file
Driver fopDriver = new Driver() ;
fopDriver.setRenderer(Driver.RENDER_PDF) ;
fopDriver.setOutputStream(out) ;
ContentHandler cHandler = driver.getContentHandler() ;

XMLReader reader = XMLReaderFactory.createXMLReader() ;
reader.setContentHandler(tHandler) ;
 
reader.setProperty(http://xml.org/sax/properties/lexical-handler;,
tHandler) ;
tHandler.setResult(new SAXResult(cHandler)) ;
reader.parse(source) ;

Any ideas?

Thanks,
Brian




Re: spna=all didn't work for fo:cell

2002-04-15 Thread J.Pietschmann
Argyn Kuketayev wrote:
I had to put 
number-columns-spanned=100 
instead of 
span=all
in fo:column element, because the latter didn't work. is it a bug?
From the spec at http://www.w3.org/TR/xsl/slice7.html#span
span=all: Specifies if a block-level object should be
placed in the current column or should span all columns
of a multi-column region.
This property is not intended to be used on table cells.
J.Pietschmann


RE: spna=all didn't work for fo:cell

2002-04-15 Thread Argyn Kuketayev
this didn't work either :(

  fo:table-row
fo:table-cell fo:block span=all margin-left=2cmfo:inline
font-weight=boldCOMMENTS: /fo:inlinexsl:value-of
select=COMPONENT_ID//fo:block/fo:table-cell
  /fo:table-row

 -Original Message-
 From: J.Pietschmann [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 15, 2002 6:47 PM
 To: [EMAIL PROTECTED]
 Subject: Re: spna=all didn't work for fo:cell
 
 
 Argyn Kuketayev wrote:
 
 I had to put 
 number-columns-spanned=100 
 instead of 
 span=all
 in fo:column element, because the latter didn't work. is it a bug?
 
  From the spec at http://www.w3.org/TR/xsl/slice7.html#span
 span=all: Specifies if a block-level object should be
 placed in the current column or should span all columns
 of a multi-column region.
 This property is not intended to be used on table cells.
 
 J.Pietschmann
 


Re: [Fwd: ZapfDingbats]

2002-04-15 Thread J.Pietschmann
Patrick Andries wrote:
lt;fo:block text-align=center font=ZapfDingbatsgt; amp;#x2766; 
lt;/fo:blockgt;
Why doesn't this print me a vignet ?
The Unicode character Reference at
  http://www.unicode.org/charts/charindex.html
says U+2766 is aldus leaf, whatever this is. It
seems to print correctly with FOP 0.20.3.
1. does you FO file look exactly as above, with all
the escaped stuff?
2. Try font-family=ZapfDingbats, the font property
not yet implemented.
Isn't ZapfDingbats one of the 14 standard fonts ?
It is.
J.Pietschmann