Re: table-header with (Con't)

2001-10-29 Thread Keiron Liddle

Hi Matt,

This is something that could be handled quite easily with an extension.
No doubt you want to use fop 0.20.2 or earlier.
You could try looking at the extension in org.apache.fop.extensions for an
example of how an extension works. Then you will want to make it actually
add an some inline text (ie. Continued) to the line area if the area is
being layed out more than once.



On 2001.10.26 18:06 Matt Savino wrote:
 So how hard do you think it would be for a realtive FOP-newbie to write
 some kind of extension?
 
 I'm thinking of a few possible hacks:
 
 1) Somehow implement the inverse of table-omit-header-at-break. Then I
 could specify the 'xxx Continued' piece as the header and simply print
 xxx as the first row of the table.
 
 2) Add some facility for specifying a different header for every
 occurrence after the first. I'd be happy with hard-coding the word
 Continued if it was the only easy way.
 
 Any other clever ideas? How hard is it to just stick something like this
 in? It seems to me that with all the page-aware capabilites of FOP
 (header, static content, keep-together, page-number, widows, orphans
 etc.) there ought to be a sneaky way to piggy back this functionality
 onto one of them.
 
 Just to be clear, here's what I'm talking about:
 
 My Page Header
 
 -- other stuff --
 
 My Table Header
 row1
 row2
 row3
 
 -- new page --
 
 My Page Header
 
 My Table Header (Continued)
 row4
 row5
 row6
 
 
 The block in question doesn't necessarily have to be a table, but it
 can't be part of static content. It's nested inside two tables already,
 one has a header of varying length (so it can't be part of the static
 content).
 
 Like I said, I have no idea how hard it is to go poking around in FOP. I
 know enough about PDF to know that I want to stay at the highest level
 possible (that's I think somehow suppressing the table header on the
 first occurrence may be the best way for me to go). Thanks in advance
 for any ideas.
 
 -Matt

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: XML Area Tree and Logic Tree renderer for FOP

2001-10-29 Thread Keiron Liddle

Hi Fabio,

With recent changes the area tree and the way that renderers handle the
area tree has changed quite a bit.
In the current cvs I am working on the area tree and the xml rendering
output. The output is written in such a way that the xml can be read back
and an area tree constructed. It is then possible to render the new area
tree to any of the renders. This will help with testing renders and the
area tree.

I appreciate your effort, I think it would be helpful to get the current
cvs (note: nothing else works) and help us work from there. The idea is to
create a set of xml files that describe various area trees and properties
and then write all the renders to work with the area trees.



Keiron.

On 2001.10.25 10:51 Giannetti, Fabio wrote:
 Hi,
   I have developed a new XML Renderer that produces a precise
 reproduction of the area tree. Each element has all the information
 related
 to absoulte position inside the page, dimensions, font status, color and
 so
 on 
 I use this new output to create a consistent preview in FOA. The new XML
 renderer generates also a logic tree that provides a representation of
 the
 FOs responsible for the generation of the rendered areas.
 I'd like to see it commit and I will take care to make any modification
 due
 to the area-tree modification process. I will made also FOA opens-source
 very soon, so I hope that the relationships between FOA and FOP will
 became
 closer.
 In the attached file there are all the modified classes from FOP 0.20.1
 with
 a difference file.
 
   Thank you in
 advance
   
 Fabio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: XML Area Tree and Logic Tree renderer for FOP

2001-10-29 Thread Giannetti, Fabio

Hi Keiron,
I know of this changes ... BTW the stuff that I'd like to see
maintained into the new area tree is a reference to the FO that generate the
area (generatedBy methond) and the same for the page-sequences and pages.
I guess that at the moment will be better for FOA to distribute a
customized version of FOP and then, when the new area tree is ready I will
write the new XMLPrintRenderer.

Fabio

 -Original Message-
 From: Keiron Liddle [mailto:[EMAIL PROTECTED]]
 Sent: 29 October 2001 09:30
 To: [EMAIL PROTECTED]
 Cc: Giannetti, Fabio
 Subject: Re: XML Area Tree and Logic Tree renderer for FOP
 
 
 Hi Fabio,
 
 With recent changes the area tree and the way that renderers 
 handle the
 area tree has changed quite a bit.
 In the current cvs I am working on the area tree and the xml rendering
 output. The output is written in such a way that the xml can 
 be read back
 and an area tree constructed. It is then possible to render 
 the new area
 tree to any of the renders. This will help with testing 
 renders and the
 area tree.
 
 I appreciate your effort, I think it would be helpful to get 
 the current
 cvs (note: nothing else works) and help us work from there. 
 The idea is to
 create a set of xml files that describe various area trees 
 and properties
 and then write all the renders to work with the area trees.
 
 
 
 Keiron.
 
 On 2001.10.25 10:51 Giannetti, Fabio wrote:
  Hi,
  I have developed a new XML Renderer that produces a precise
  reproduction of the area tree. Each element has all the information
  related
  to absoulte position inside the page, dimensions, font 
 status, color and
  so
  on 
  I use this new output to create a consistent preview in 
 FOA. The new XML
  renderer generates also a logic tree that provides a 
 representation of
  the
  FOs responsible for the generation of the rendered areas.
  I'd like to see it commit and I will take care to make any 
 modification
  due
  to the area-tree modification process. I will made also FOA 
 opens-source
  very soon, so I hope that the relationships between FOA and FOP will
  became
  closer.
  In the attached file there are all the modified classes 
 from FOP 0.20.1
  with
  a difference file.
  
  
 Thank you in
  advance
  
  Fabio
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: XML Area Tree and Logic Tree renderer for FOP

2001-10-29 Thread Keiron Liddle

On 2001.10.29 10:40 Giannetti, Fabio wrote:
 Hi Keiron,
   I know of this changes ... BTW the stuff that I'd like to see
 maintained into the new area tree is a reference to the FO that generate
 the
 area (generatedBy methond) and the same for the page-sequences and pages.

I am trying to avoid this since it will increase memory usage.
Maybe the user agent could be used for this.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: updating jars

2001-10-29 Thread Jarno . Elovirta

 - do we still need xalan 1.x
 I remember there was a reason for supporting this a while 
 back, is this
 still the case or can we just use xalan 2.x which has trax.

Xalan-J 1 has been removed from CVS, I think, so support for Xalan-J 2 i.e.
JAXP enabled XSLT engines should be favoured.

 - does anyone still need xt support
 since this doesn't actually work anymore (and possibly 
 doesn't compile) it
 would seem to me that no one is using it and therefore no one needs it
 supported.

XT doesn't even support the complete XSLT spec and there are XSLT engines in
Java that are as fast/faster, so I suppose if someone desperately wants to
keep using XT with FOP, they can do the integration themselves

Jarno


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




[GUMP] Build Failure - Fop

2001-10-29 Thread Sam Ruby


This email is autogenerated from the output from:
http://jakarta.apache.org/builds/gump/2001-10-29/xml-fop.html


Buildfile: build.xml

init-avail:

init-filters-xalan1:

init-filters-xalan2:
 [copy] Copying 1 file to /home/rubys/jakarta/xml-fop/build/src/codegen

init:
 [echo] --- Fop 0.20.1 [1999-2001] 

prepare:
 [echo] Preparing the build directories
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/src/org/apache/fop/svg
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/conf
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/hyph
 [copy] Copying 3 files to /home/rubys/jakarta/xml-fop/build/classes/conf

codegen:
 [echo] Resetting codegen directory
 [copy] Copying 35 files to /home/rubys/jakarta/xml-fop/build/src/codegen
 [echo] Generating the java files from xml resources
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/allprops.xml
 [xslt] style: ./build/src/codegen/genconst.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/Constants.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/foproperties.xml
 [xslt] style: ./build/src/codegen/properties.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/fo_ignore_this.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/foproperties.xml
 [xslt] style: ./build/src/codegen/propmap.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/FOPropertyMapping.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/foproperties.xml
 [xslt] style: ./build/src/codegen/enumgen.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/extproperties.xml
 [xslt] style: ./build/src/codegen/properties.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/ext_ignore_this.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/extproperties.xml
 [xslt] style: ./build/src/codegen/propmap.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/ExtensionPropertyMapping.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/extproperties.xml
 [xslt] style: ./build/src/codegen/enumgen.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/extenums_ignore_this.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/charlist.xml
 [xslt] style: ./build/src/codegen/code-point-mapping.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/CodePointMapping.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/Courier.xml
 [xslt] style: ./build/src/codegen/font-file.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/Courier.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/Courier-Oblique.xml
 [xslt] style: ./build/src/codegen/font-file.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/CourierOblique.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/Courier-Bold.xml
 [xslt] style: ./build/src/codegen/font-file.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/CourierBold.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/Courier-BoldOblique.xml
 [xslt] style: ./build/src/codegen/font-file.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/CourierBoldOblique.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/Helvetica.xml
 [xslt] style: ./build/src/codegen/font-file.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/Helvetica.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: 

Re: using fop

2001-10-29 Thread Bruno Polder

Hello,

thanks for your answer Keiron. I'm trying using batik but i get the
following error message:


E:\xml-batikbuild svgrasterizer -d e:/test -m application/pdf e:/boxes.svg
Buildfile: build.xml

init-args:

init:

compile:

svgrasterizer:
 [java] Getting class ...
 [java] Getting class done...
 [java] Converting file:/e:/boxes.svg to e:\test\boxes.pdf
 [java] transcode ...
 [java] java.lang.AbstractMethodError
 [java] at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
 [java] at
org.apache.fop.svg.PDFTranscoder.transcode(PDFTranscoder.java:192)
 [java] at
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)
 [java] at org.apache.batik.apps.rasterizer.Main.writeImage(Unknown
Source)
 [java] at org.apache.batik.apps.rasterizer.Main.main(Unknown
Source)


Does anyone know what could cause this error? Converting into png or other
formats works.


thanks in advance
bruno


- Original Message -
From: Keiron Liddle [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 29, 2001 9:02 AM
Subject: Re: using fop


 On 2001.10.27 18:36 Bruno Polder wrote:
  hi to all
 
  i have a question in order to use fop to generate pdf files of my svg's:
  can anyone tell me how to generate the 'fo-objects-svg-file' from my
  normal svg-file?
  it seems that fop can't handel normal svgs but only fo-svgs (is that
  right?)

 Fop is used to format and render xsl fo into an output, eg. pdf.
 Batik is used to rasterize an svg document into and output, eg. png, jpg
of
 pdf.

 If you have an svg file that you want to convert into a pdf document then
 you use the batik rasterizer to render to the mime type for pdf
 application/pdf. Since the rasterizing is actually done by code in fop
 you will need fop in your class path.

 You should visit the batik web site if you need any information about how
 to use the batik rasterizer.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: updating jars

2001-10-29 Thread Arved Sandstrom

At 08:51 AM 10/29/01 +0100, you wrote:
I am going to update all the jars in fop to the latest version. I think
they are a bit faster and better and we should keep up to date with what
people are likely to be using.

I have two questions:

- do we still need xalan 1.x
I remember there was a reason for supporting this a while back, is this
still the case or can we just use xalan 2.x which has trax.

- does anyone still need xt support
since this doesn't actually work anymore (and possibly doesn't compile) it
would seem to me that no one is using it and therefore no one needs it
supported.

Our ultimate goal should be no direct dependence on any implementations. 
Given that JAXP and TrAX and so forth have been out for a while and have 
support, let's support _those_; that puts the burden where it should be, on 
the implementations. No vestiges of special-purpose code for Xalan 1.x or XT 
should remain.

The same would apply for fo:instream-foreign-object. We expose an API; if 
the foreign XML is in namespace 'A', then as long as there is a handler 
written that understands that namespace, and conforms to our API 
(essentially, it can generate areas), then all is well.

Regards,
Arved Sandstrom



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: using fop

2001-10-29 Thread Keiron Liddle

You are having version compatibale problems.
Your best bet is to use the batik library that comes with the version of
fop you are using.

On 2001.10.29 13:35 Bruno Polder wrote:
 Hello,
 
 thanks for your answer Keiron. I'm trying using batik but i get the
 following error message:
 
 
 E:\xml-batikbuild svgrasterizer -d e:/test -m application/pdf
 e:/boxes.svg
 Buildfile: build.xml
 
 init-args:
 
 init:
 
 compile:
 
 svgrasterizer:
  [java] Getting class ...
  [java] Getting class done...
  [java] Converting file:/e:/boxes.svg to e:\test\boxes.pdf
  [java] transcode ...
  [java] java.lang.AbstractMethodError
  [java] at org.apache.batik.bridge.GVTBuilder.build(Unknown
 Source)
  [java] at
 org.apache.fop.svg.PDFTranscoder.transcode(PDFTranscoder.java:192)
  [java] at
 org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown
 Source)
  [java] at org.apache.batik.apps.rasterizer.Main.writeImage(Unknown
 Source)
  [java] at org.apache.batik.apps.rasterizer.Main.main(Unknown
 Source)
 
 
 Does anyone know what could cause this error? Converting into png or
 other
 formats works.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




DPI of images...

2001-10-29 Thread Beer, Christian

Hi!

If I insert images in PDFs, what DPI is used? Is that defined?
Are the DPI used, that can be stored in JPG?

Thanks in advance
Christian



DIRON Wirtschaftsinformatik GmbH  Co. KG
Christian Beer  ([EMAIL PROTECTED])
Daimlerweg 39-41Tel. : +49(251)979-200
48163 Muenster  Fax  : +49(251)979-2020
Germany Email: [EMAIL PROTECTED]  

BESUCHEN SIE UNS AUF DER INTERNET WORLD IN NEW YORK 
VISIT US AT THE INTERNET WORLD IN NEW YORK

10.-14. Dezember 2001   -   December 10th-14th 2001

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Attribute text-align not working in fo:inline/ ?

2001-10-29 Thread Levent Guendogdu

Hi everyone,

is the text-align attribute for fo:inline tags implemented? I try to
create a footer that displays some information on the left, center and
right of the page. This is taken from the example:

fo:static-content flow-name=xsl-region-after
fo:block font-weight=bold font-size=10pt
font-family=Arial, Helvetica, sans
fo:inline font-style=italic text-align=start
The XML Bible
 /fo:inline
fo:inline text-align=centered
Page fo:page-number/
/fo:inline
fo:inline text-align=right
Chapter 18: XSL Formatting Objects
/fo:inline
/fo:block
/fo:static-content


The text-align attributes seems to be ignored so that everything just
sits on the left side. I also tried using start and end as values
for text-align to no avail. 

Could anyone help me with that? 

Thanx a lot.

Bye,
 Levo.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Table Column-Headers

2001-10-29 Thread Shkuro, Yuri

Chris,
 
  I am using fo:table-caption successfully.  Not sure what kind of feedback
you are looking for.
BTW, I don't know what you mean by fo:table-caption can host a table - it
should contain row
definitions, just as fo:table-body, with the same number of columns (the
columns widths will be
defined prior to that, as usual for fo:table-body).  The only difference
between caption and body
is that the latter will be repated if the table spans multiple pages.
 
Yuri.

-Original Message-
From: West, Chris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 7:50 PM
To: '[EMAIL PROTECTED]'
Subject: Table Column-Headers



I'm dynamically generating a table that can have a variable number of rows.
In the situation where the table spans multiple pages, I would like to have
the first row contain the column labels.  I've been able to do this using a
style sheet, but it requires that the height of each row be fixed (which I
would like to avoid).  From the documentation, fo:table-caption can host a
table, which could be set up to be a one-row table that contains the column
headers.  From what I've read, this caption can be made to repeat after
crossing a page boundary.  Before trying this, I'd like to get some feed
back from those more experienced with FOP regarding this approach.  I'm
using the latest version, 20.2.

Thanks in advance, 

Chris W. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Attribute text-align not working in fo:inline/ ?

2001-10-29 Thread PATEL, DINESH


I do something similar but I implement it as a table.  I find it easier to
control alignement with tables.  I had problems using fo:inline.

fo:static-content  flow-name=xsl-region-after
!-- fo:table is used to position and align the advisor's name and page
number --
fo:block font-family=sans-serif   font-size=10pt
fo:table
fo:table-column column-width=55mm /
fo:table-column column-width=55mm /
fo:table-columncolumn-width=55mm /
fo:table-body
fo:table-row
fo:table-cell
fo:blockPage fo:page-number / of
fo:page-number-citation ref-id=endofdoc1//fo:block
/fo:table-cell
fo:table-cell
   fo:blockxsl:value-of select=$Advisor-Name
//fo:block
/fo:table-cell
fo:table-cell
fo:blockxsl:value-of select=$Agency-Code
//fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
   /fo:block
/fo:static-content

--
Dinesh Patel
Britannic Assurance.


 -Original Message-
 From: Levent Guendogdu [SMTP:[EMAIL PROTECTED]]
 Sent: 29 October 2001 13:53
 To:   FOP Dev Mailing List
 Subject:  Attribute text-align not working in fo:inline/ ?
 
 Hi everyone,
 
 is the text-align attribute for fo:inline tags implemented? I try to
 create a footer that displays some information on the left, center and
 right of the page. This is taken from the example:
 
 fo:static-content flow-name=xsl-region-after
 fo:block font-weight=bold font-size=10pt
 font-family=Arial, Helvetica, sans
 fo:inline font-style=italic text-align=start
 The XML Bible
  /fo:inline
 fo:inline text-align=centered
 Page fo:page-number/
 /fo:inline
 fo:inline text-align=right
 Chapter 18: XSL Formatting Objects
 /fo:inline
 /fo:block
 /fo:static-content
 
 
 The text-align attributes seems to be ignored so that everything just
 sits on the left side. I also tried using start and end as values
 for text-align to no avail. 
 
 Could anyone help me with that? 
 
 Thanx a lot.
 
 Bye,
  Levo.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


This email and any accompanying documents are intended only for the named recipient, 
are confidential and may be  privileged.If you are not the intended recipient 
please notify us immediately by email to [EMAIL PROTECTED] and you must not copy, 
disclose or otherwise use this message. Unauthorised use is strictly prohibited and 
may be unlawful. The content of this e-mail represents the view of the individual and 
not the company.   The company reserves the right to monitor the content of all 
e-mails in accordance with lawful business practice. 

Whilst attachments are virus checked before transmission, Britannic Assurance plc does 
not accept any liability in respect of any virus which is not detected.

Britannic Assurance plc, No. 3002 is registered in England and maintains its 
registered office at 1 Wythall Green Way, Wythall, Birmingham B47 6WG.  
Telephone 01564 82 88 88  Fax: 01564 82 88 22 
Website: www.britannicassurance.com

Britannic Assurance plc, Britannic Unit Linked Assurance Limited and Britannic ISA 
Managers Limited are regulated by the Personal Investment Authority.  Britannic Unit 
Trust Managers Limited is regulated by IMRO. Each of these companies is a member of 
the Britannic marketing group which only advises on and sells its own life assurance, 
pensions, unit trust and ISA products.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Table Column-Headers

2001-10-29 Thread Shkuro, Yuri

Sorry, what I said applies to f:table-header, which I am using. 
Don't know about table-caption.

-Original Message-
From: Shkuro, Yuri 
Sent: Monday, October 29, 2001 9:42 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Table Column-Headers


Chris,
 
  I am using fo:table-caption successfully.  Not sure what kind of feedback
you are looking for.
BTW, I don't know what you mean by fo:table-caption can host a table - it
should contain row
definitions, just as fo:table-body, with the same number of columns (the
columns widths will be
defined prior to that, as usual for fo:table-body).  The only difference
between caption and body
is that the latter will be repated if the table spans multiple pages.
 
Yuri.

-Original Message-
From: West, Chris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 7:50 PM
To: '[EMAIL PROTECTED]'
Subject: Table Column-Headers



I'm dynamically generating a table that can have a variable number of rows.
In the situation where the table spans multiple pages, I would like to have
the first row contain the column labels.  I've been able to do this using a
style sheet, but it requires that the height of each row be fixed (which I
would like to avoid).  From the documentation, fo:table-caption can host a
table, which could be set up to be a one-row table that contains the column
headers.  From what I've read, this caption can be made to repeat after
crossing a page boundary.  Before trying this, I'd like to get some feed
back from those more experienced with FOP regarding this approach.  I'm
using the latest version, 20.2.

Thanks in advance, 

Chris W. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




xml + xsl = fo --- pdf

2001-10-29 Thread Gerard van Wijk

Hello,


I want to transform xml file + xsl file = to a pdf file...

simple??? no


xml file is a DOMxsl file is just a file.

first i have to render a DOM output

see below

org.apache.fop.tools.xslt.XSLTransform 

transform(org.w3c.dom.Document xmlSource, java.io.InputStream xsl,
org.w3c.dom.Document outputDoc) 
but this don't work???


then 

Driver(org.w3c.dom.Document document) 







Gerard.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Embedded SVG with Embedded FOP

2001-10-29 Thread cquirk

Hello,
When I try to use embedded SVG in my FO document while using the procedure
for embedding FOP in an APP, FOP Hangs. I have tried this with both the
Fop-0.20.1 and Fop-0.20.2 releases. When I run the FO document through FOP
from the commandline it processes just fine. The error that I am getting
when using the embedded code is Malformed URL Exception and Null Pointer
for the SVG part of my document. There might be something that I am doing
incorrectly when embedding FOP. I will post my code and if anyone can
comment I will appreciate it thanks.

here's the code...

//Imported FOP Classes
import org.apache.fop.apps.*;

//Imported Sax Classes
import org.xml.sax.*;

// Imported TraX classes
import javax.xml.transform.*;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.stream.StreamSource;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerConfigurationException;

// Imported java classes
import java.io.*;
import java.io.FileOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class FopDxlTest {
/**
   * creates a SAX parser, using the value of org.xml.sax.parser
   * defaulting to org.apache.xerces.parsers.SAXParser
   *
   * @return the created SAX parser
   */
static XMLReader createParser()
{
 XMLReader  xmlreader = null;
try {
 String parserClassName = System.getProperty(org.xml.sax.parser);
if (parserClassName == null) {
parserClassName = org.apache.xerces.parsers.SAXParser;
}
xmlreader= (XMLReader) Class.forName(parserClassName).newInstance
();

} catch (Exception e) {
 System.out.println(e);
 }
return xmlreader;
}

public static void main(java.lang.String args[])
throws FileNotFoundException, IOException {

   String inFile = embedding.fo;
   String outFile = aaahh.pdf;

try {
XMLReader xmlreader = createParser();

 FileInputStream foInput = new FileInputStream(inFile);

 //set Driver methods to start Fop processing

 Driver driver = new Driver();
 driver.setRenderer(Driver.RENDER_PDF);
 driver.setInputSource(new InputSource(foInput));
 driver.setOutputStream(new FileOutputStream(outFile));
 driver.run();


} catch (Exception e) {
System.out.println(e);

}
 }
}

Thanks.
Christopher L Quirk
Quirk  Company
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: xml + xsl = fo --- pdf

2001-10-29 Thread Suhail Rashid

hi,

heres a perfectly working piece written by me;

Document doc= new DocumentImpl();

doc.appendChild(root); //thats ur dom

TransformerFactory tFactory =
TransformerFactory.newInstance();
Transformer transformer =
tFactory.newTransformer(new StreamSource(xslFileName));

ByteArrayOutputStream outXmlPdf = new
ByteArrayOutputStream();
transformer.transform(new
javax.xml.transform.dom.DOMSource(doc), new StreamResult(outXmlPdf));

byte[] buffer = outXmlPdf.toByteArray();
InputStream inXmlPdf = new
ByteArrayInputStream(buffer);

ByteArrayOutputStream outPdf = new
ByteArrayOutputStream();
Driver driver = new Driver(new
InputSource(inXmlPdf), outPdf);
driver.setRenderer(Driver.RENDER_PDF);
driver.run();

maybe u can work out where u r going wrong..

suhail



-Original Message-
From: Gerard van Wijk [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 29, 2001 8:44 PM
To: '[EMAIL PROTECTED]'
Subject: xml + xsl = fo --- pdf


Hello,

I want to transform xml file + xsl file = to a pdf file...

simple??? no


xml file is a DOMxsl file is just a file.

first i have to render a DOM output

see below

org.apache.fop.tools.xslt.XSLTransform 

transform(org.w3c.dom.Document xmlSource, java.io.InputStream xsl,
org.w3c.dom.Document outputDoc) 
but this don't work???


then 

Driver(org.w3c.dom.Document document) 







Gerard.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




DO NOT REPLY [Bug 4492] New: - text-decoration=underline on fo:block ignored

2001-10-29 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4492.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4492

text-decoration=underline on fo:block ignored

   Summary: text-decoration=underline on fo:block ignored
   Product: Fop
   Version: 0.15
  Platform: Sun
OS/Version: Solaris
Status: NEW
  Severity: Minor
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


If I set text-decoration=underline on an fo:block it is ignored; if I set it
on an inline it works.

The XSL 1.0 spec says text-decoration applies to all elements.  It also says
If the property is specified for a block-level element, it affects all
inline-level descendants of the element.  Am I missing something, or is FOP
getting it wrong?

(If I'm misunderstanding it, please explain why - thanks!)

Here's an example:

?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
fo:simple-page-master margin-right=25mm margin-left=25mm
   margin-bottom=20mm margin-top=15mm
   page-height=297mm page-width=210mm
   master-name=a4
  fo:region-before extent=10mm/
  fo:region-after extent=10mm/
  fo:region-body margin-bottom=15mm margin-top=15mm/
/fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-name=a4
fo:flow flow-name=xsl-region-body

  fo:block
fo:inline text-decoration=underline
  This will be underlined because the text-decoration is set on the
  inline element.
/fo:inline
  /fo:block

  fo:block text-decoration=underline
This will not be underlined even though a text-decoration is set on
the block element.  It also fails when text-decoration is set on
basic-link elements.
  /fo:block

/fo:flow
  /fo:page-sequence
/fo:root

This is with version 0.20.2-RC (can someone update the list of versions in
Bugzilla - it only goes as far as 0.17!).

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




xsl-region-before?

2001-10-29 Thread Tim


I'm trying to add a Report Title using the following segment as a child
of fo:page-sequence:

fo:static-content flow-name=xsl-region-before
fo:block font-size=12pt text-align=centerReport Title
/fo:block
/fo:static-content

I receive the following error when running FOP (ver 0.20.2):

[INFO]: FOP 0.20.2
[INFO]: building formatting object tree
[ERROR]: region-name 'region-before' doesn't exist in the
layout-master-set.
[INFO]: [1]
[INFO]: Parsing of document complete, stopping renderer

According to the web site, xsl-region-before is implemented.  Why isn't
this working??

TIA,

-TIM


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




embedded configuration file

2001-10-29 Thread Andrey Kolchanov

Hello.

How can I set userconfig.xml file for embedded Fop?

PS Sorry for my english.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




insertion of named destinations into pdf's

2001-10-29 Thread Matthew L. Avizinis

Hello,
I saw a brief discussion several (probably about six) months ago about this
topic and the outcome didn't seem clear to me whether or not fop supports
insertion of name destinations in pdf's (not bookmarks) so that it would
be possible to open a pdf to a specific location from either another program
or another pdf.

As far as I can tell with the examples, newlinktest.fo and link.fo, it is
possible to bounce around within a document and to link to another document.
However, it looks like it only links to the top of the file, not to some
destination in the middle of the file.  If it is possible, how would you
specify it?  Is there some functionality to fo:basic-link that I am missing
or is there something undocumented I am not aware of, or is this just not
implemented yet?

Thanks ahead for any creative suggestions.

   Matthew L. Avizinis mailto:[EMAIL PROTECTED]
Gleim Publications, Inc.
   4201 NW 95th Blvd.
 Gainesville, FL 32606
(352)-375-0772 ext. 101
  www.gleim.com http://www.gleim.com

===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed to
any third party without my permission, however keg parties are ok.  There is
no intention to create any legally binding contract or other commitment,
like marriage, through the use of this email.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: xsl-region-before?

2001-10-29 Thread Arved Sandstrom

Do you have a fo:region-before as a child of the fo:simple-page-master that 
you are pointed at? Looks like the error is signalling _that_ fact.

Regards,
Arved Sandstrom

At 11:40 AM 10/29/01 -0500, Tim Fraser wrote:

I'm trying to add a Report Title using the following segment as a child
of fo:page-sequence:

fo:static-content flow-name=xsl-region-before
fo:block font-size=12pt text-align=centerReport Title
/fo:block
/fo:static-content

I receive the following error when running FOP (ver 0.20.2):

[INFO]: FOP 0.20.2
[INFO]: building formatting object tree
[ERROR]: region-name 'region-before' doesn't exist in the
layout-master-set.
[INFO]: [1]
[INFO]: Parsing of document complete, stopping renderer

According to the web site, xsl-region-before is implemented.  Why isn't
this working??

TIA,

-TIM



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Aligning Text to the middle of an image

2001-10-29 Thread Branham, Paul

Is it possible to align Text to the middle portion of an image?

I ran through the archives but couldn't find any solution to it.

Thanks in advance.

Paul Branham
[EMAIL PROTECTED]
24/7 Media, Inc.
Phone:(301)897-7722


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: DPI of images...

2001-10-29 Thread Joshua.Kuswadi

Christian wrote:
 If I insert images in PDFs, what DPI is used? Is that defined?
 Are the DPI used, that can be stored in JPG?

According to the spec, for fo:external-graphic:
http://www.w3.org/TR/xsl/slice6.html#fo_external-graphic

In the case when the graphics format does not specify an intrinsic size of the 
graphic the size is determined in an implementation-defined manner.
NOTE: For example, a size of 1/96 as the size of one pixel for rasterized images may 
be used. 

I've used a large image and set the width and height attributes, which resulted in the 
image outputting in higher resolution.

Hope that helps,
Joshua

--
This message and any attachment is confidential and may be privileged or otherwise 
protected from disclosure.  If you have received it by mistake please let us know by 
reply and then delete it from your system; you should not copy the message or disclose 
its contents to anyone.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]