Re: Problem with TTFReader FileNotFoundException

2005-03-23 Thread Chris Bowditch
Klearchou Klearchos wrote:
Hello all,
I am trying to generate the xml file from a ttf file in order to use it with
my FOP Engine.
I run win2k.
I run it exactly as the instructions write but I always take a
FileNotFoundException.
java -cp
fop.jar;avalon-framework.jar;xml-apis.jar;xercesImpl.jar;xalan.jar
org.apache.fop.fonts.apps.TTFReader -enc ansi f/pala.ttf f/palattf.xml
Here I use relative paths. I tried absolute as wellusing the syntax file:///
as the FAQ page instructs.
When the website is talking about URIs and URLs, it means as metric file 
reference inside user-config.xml, not when running TTFReader. When calling the 
TTFReader from the command line you should always use file paths and *not* 
URLs, or URIs. Relative paths work for me provided the shell is in the right 
directory, but if you are having trouble getting relative paths working use 
absolute paths, e.g.

java -cp fop.jar;avalon-framework.jar;xml-apis.jar;xercesImpl.jar;xalan.jar 
org.apache.fop.fonts.apps.TTFReader -enc ansi 
C:\downloads\FADO\PDFBox\fonts\f\pala.ttf 
C:\downloads\FADO\PDFBox\fonts\f\pala.xml

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Inserting a background image.

2005-03-21 Thread Chris Bowditch
Ramakrishnan, Deivanayagam wrote:
Hi,
I have a new requirement and would like to know if anyone of you
have done this before. 
I have a PDF already generated. There is an image strored as a TIF
file. Now, on request I have to programmatically insert the TIF as a
BACKGROUND to the pdf file. Any suggestion or pointer will he highly
appreciated. 
I think you are asking how to insert a TIF as a background of an already 
existing PDF? Whats that got to do with XSL-FO or FOP? You can try looking at 
iText which is a Java API for manipulating PDFs?

http://www.lowagie.com/iText/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: HTML Tables converted to FO Tables

2005-03-10 Thread Chris Bowditch
Eckbert P. Dollhofer wrote:
snip/
Hm? Are there any FO Formatters alternativ to apache-fop that will 
render tables with table-layout=auto to pdf?
Would be off a big help!
Yes. Try XEP 4 from RenderX
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Leader dots not showing up and Compilation exited abnormally with code 255 at Wed Mar 09 14:20:11

2005-03-10 Thread Chris Bowditch
Glen Mazza wrote:
snip/
(2) fo:blockSIGNITEKfo:leader
rule-thickness=1pt
leader-pattern=dots/ does not seem to be
producing a complete row of dots
for my table of contents. It did in 0.19.

In our /examples directory, we have a leader.fo sample
somewhere.  Run that and see if it works, if so look
in that file to see what needs to be done.
I think the problem is that 0.20.5 is more conformant to the spec than 0.19 
used to be. You need to justify the block containing the leader in order for 
the leader to stretch to the full width of the block. Use 
text-align-last=justify rather than text-align (as I'm guessing from your 
example that the block only has 1 line)

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Simple form?

2005-03-09 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
I want to produce a PDF-version of a simple html form and want to write 
labels and draw lines with specific length like:
 
 
Name   ___
Address___
Phone   ___
 
 
(I am using a fo:table)
 
What is the best way to do this? I could not find any example with thois 
feature.
Have you tried fo:leader? E.g.
fo:leader leader-length=5cm leader-pattern=_/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to adjust row width for overflowing text ?

2005-03-09 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
I have an issue where the text in a row is so long that it overflows to the
next line and the top of the characters touch the lower part of the upper
line. The 2 lines therefore appears squished. I have tried everything to
set this right but nothing seems to be working..I have also tried the
fo:inline line-height=16pt property but this doesnt work...
Unfortunately line-height hasnt yet been implemented on fo:inline/. Try 
putting line-height on parent fo:block

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


Re: FopServlet

2005-03-09 Thread Chris Bowditch
Ben Gill wrote:
Hi,
I am trying to use the FopServlet, but ideally, dont want to have to produce
the XML file on disk, and then load it up again, just to pass in File, File
into XSLTHandler (or TraxInputHandler)...
So, I was trying to just pass in InputSources..(ie):
ProjectTeam projectTeam = new ProjectTeam();
InputSource projectTeamInputSource = new
ProjectTeamInputSource(projectTeam);
Is this possible?  or do I *have* to save the XML to disk?
Yes this is easy to achieve.
(I was getting a malformed URL exception when trying to do this)
You must have made a mistake somewhere, difficult to guess where. See the 
website for more examples:

http://xml.apache.org/fop/embedding.html
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Images and https

2005-03-08 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
The problem is very clear . The FOP transformation fails when the
fo:external-graphics tag has a source to an image which is in secured
site(ex: https:///someimage.jpg;.  ) . Please let me know if you have
any ideas for this.
Joerg has already stated his ideas. This is a problem with the configuration 
of HTTPS in Java. I dont know anything about configuring HTTPS for Java, as 
this is the FOP user list. Post your error on a Java/HTTPS forum.

Chris

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


Re: impositions

2005-03-08 Thread Chris Bowditch
Mike Sierra wrote:
This is not directly related to fop, but wonder if someone can help me 
out.  Is there a batch utility available that allows you to create 
impositions from PDF input?  I dimly remember seeing something like that 
for plain PostScript.  Thanks,
You mean like psup utility? Have you looked at iText Java API? Its a tool that 
manipulates PDF. Might be a bit too low level for your needs, but I havent 
come across a pdfup utility.

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


Re: How do you switch between page-sequences?

2005-03-07 Thread Chris Bowditch
Talken, Patrick (AGRE) wrote:
Is it possible to switch between page-sequences based on an xml tag?
What I need to have is a document that starts with pages in portrait and
then at some point in the document switch to landscape for an unknown
number of pages and then back into portrait for an unknown number of
pages. The switching between portrait and landscape and then back to
portrait will be determined by the presence or absence of the tag
xmltable.
If xmltag present use page-sequence for landscape
If xmltag is not present use page-sequence for portrait
Hi Patrick,
your question is a pure XSLT question and the lack of response is because this 
sort of question is better suited to an XSLT list. Try posting on the mulberry 
list:

http://lists.mulberrytech.com/xsl-list/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Using FOP with docbook

2005-03-03 Thread Chris Bowditch
Peter Harrison wrote:
We have started using docbook and using our existing FOP processing
along with Ant. It appears that certain things are not supported in the
currently released FOP - such as keeping a heading and the first
paragraph together, not breaking up paragraphs, and not breaking figure
headings from the figure.
keep-* properties are not implemented on fo:block, which I guess Docbook uses 
most of the time. However, keep-* properties have been implemented on 
table-rows in FOP 0.20.5. So FOP is not totally without support of this 
feature, as regular content can be wrapped into a blind table if necessary.

Is the new FOP in development ready to be used, or should I stick with
the current released version?
Unfortunately the development version of FOP is not ready for production use, 
and keep-* properties havent been implemented there yet.

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


Re: Blank Pages between Page Sequences.

2005-02-24 Thread Chris Bowditch
Puppala, Kumar (LNG-DAY) wrote:
snip/
Does anyone know if there is a way to get the correct behavior in Case 
1. I have tested this using AntennaHouse and found similar results. I am 
not sure if this is a bug in both Apache and AntennaHouse (0R) if it is 
the desired behavior. Any input is greatly appreciated.
This is a FAQ. See:
http://xml.apache.org/fop/faq.html#blank-page-between-page-sequences
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Out of Memory problem

2005-02-24 Thread Chris Bowditch
Manisha Sathe wrote:
I am trying for one Chinese PDF. When i do not make use of Arial Unicode 
MS font then i do not get this error. All chinese characters are 
displayed as #. Once i use this font then i get this error (even if it 
is just 2-3 pages long - sometimes at very beginning i get the 1 page 
report - after that even not that)
 
I tried the the things mentined such as reduce the size of image, page 
sequence (do not know how to increase the JVM memory on fly) - also 
reset the Cache etc what ever given in docs, but still same.
To increase JVM memory, just change your FOP.bat or whatever script starts 
your Java VM and specify command line parameter -Xmx256M. The default is 64Mb, 
which isnt sufficient due to the large number of glyphs in The Arial Unicode font.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem with report tail

2005-02-21 Thread Chris Bowditch
Miroslav Pukhalsky wrote:
Hi!
Chris Bowditch wrote:
If you need to ensure content is always placed at the bottom of the last page,
then I suggest you try putting this content into a fo:footnote.
Sorry, but footnotes not workin properly. If body has more than one
page, footnote prints on the first page, but footnote inline there is
after body.
I dont understand what you mean. If you insert footnote at end of body, then 
footnote should appear on last page that content spills onto. Are you sure you 
are putting the footnote at end of your content?

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


Re: Printing PDF with background image

2005-02-21 Thread Chris Bowditch
Jeremias Maerki wrote:
On 18.02.2005 11:18:21 Chris Bowditch wrote:
Java 1.5, also has support for printing PDFs. Although other users on this 
list have reported problems rendering XSL-FO using FOP on JDK 1.5

Others may know of other tools that can be used to print a PDF

That Java 1.5 has PDF printing support is only a rumour, I'm afraid.
I've heard that myself and went looking for it. Found nothing. Some of
the packages found following the link above claim to support a JPS (Java
Printing System) plug-in that allows to print PDF, however.
D'oh! You are right. I saw someone post some code a while ago and just assumed 
it would work on 1.5, I never actually tried it.

JPS allows to print arbitrary objects, although each print service only
supports a certain subset of DocFlavors. See the attached
jdk15JPSEnum.txt which is a log of the JPSEnum.java I've also attached.
It shows what JPS printing services (streaming and non-streaming) are
available on my system under JDK 1.5. BTW, JPS is included in JDK 1.4!
Yes I know JPS is available on 1.4, I just thought the PDF print service had 
been provided in 1.5.

snip/
Further down you can see the streaming print services. JDK 1.4 and 1.5
support generation of PostScript files. Sun created a Graphics2D
subclass which allows that. Similar to FOP's PSGraphics2D. Speaking of
which: Just below that entry you can see two print services that I wrote
as a proof of concept which add PDF and PS output support to JPS by
delegating to FOP's PSGraphics2D and PDFGraphics2D. This would allow any
Java application to generate PDF files via JPS with FOP.
Thanks for the info/code, Jeremias.
Chris

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


Re: Printing PDF with background image

2005-02-18 Thread Chris Bowditch
Neil Guinto wrote:
Jeremias,
Thanks for taking the interest.  Ok I'm looking for a quick solution at 
this point without me going into the nitty gritty of implementing a 
method (crunch time :-( ).  I've got the actual PDF's rendered somewhere 
on the server side and wanted to route it straight to a network 
printer.  Please advise.
If you havent got time to change FOP's source code as Jeremias suggested then 
you are going to need a tool that will print a PDF for you. FOP cant help 
except by using the AWTRenderer-which as youve already found out has missing 
functionality.

One tool that can print PDFs is Adobe Server, which is expensive. I seem to 
recall you used to be able to make command line calls to the Acrobat Reader to 
print a PDF, but I thought Adobe dropped this feature in later releases.

Java 1.5, also has support for printing PDFs. Although other users on this 
list have reported problems rendering XSL-FO using FOP on JDK 1.5

Others may know of other tools that can be used to print a PDF
Chris
snip/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem with report tail

2005-02-18 Thread Chris Bowditch
Arun Sinha wrote:
Hi,
Alternatively you can say that you are trying to make last page special.
Have a look on the following link that makes first page special.
http://xml.apache.org/fop/fo.html#fo-first-page
You can replace first page with last page.
page-position=last is not supported by FOP 0.20.5
Hope that solves your problem of last page/footer.
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem with report tail

2005-02-18 Thread Chris Bowditch
Miroslav Pukhalsky wrote:
Hi, there!
I have problem. I should generate PDF file. This report has 2 parts e.g.
body and tail.
If there is enough space for tail on a page after body, tail should be
on the same page like page footer.
If there is not enough space for tail on a page after body, tail should
be on the next page like page footer.
If body has one and half page, tail should be on the second place like 
page footer.
It sounds to me like you need to keep the tail together, i.e. so there are no 
page-breaks part way through the tail. In XSL-FO, you can put 
keep-together=always on a block to achieve what you want. However, 
keep-together is only supported on a table-row in FOP.

You can place your tail content into a table with 1 row and 1 cell, and put 
keep-together=always on the table-row. This should have the desired effect.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem with report tail

2005-02-18 Thread Chris Bowditch
David Causse wrote:
Chris Bowditch wrote:
You can place your tail content into a table with 1 row and 1 cell, 
and put keep-together=always on the table-row. This should have the 
desired effect.

Hi,
but how do you force the tail to be placed at the bottom of the page 2 
if 2 pages are needed? If I understood what Miroslav asked.
I think you misunderstood what Miroslav wanted. He replied saying the 
keep-together worked for him.

I'm very interested in the solution because I need the same 
functionnality but I use fo:block-container with absolute position but I 
have to manage overlap problems...
If you need to ensure content is always placed at the bottom of the last page, 
then I suggest you try putting this content into a fo:footnote.

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


Re: Version from CVS building...

2005-02-15 Thread Chris Bowditch
J.Pietschmann wrote:
The CVS head still hasn't keeps, footnotes, multi-column layout
and proper table footer layout and will probably choke on a lot
of features the current DocBook style sheets generate. OTOH
there's a better block layout and a nearly compliant vertical
alignment in lines...
minor correction: table footers have been implemented thanks to Jeremias.
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Why none replies to FOA experience

2005-02-11 Thread Chris Bowditch
Subbiah wrote:
I have never got a single reply whenver I ask an question on FOA. I know 
this is FOP mailing list but only the guys on FOP will ever think of 
using FOA so definately this is worth asking here and I have been on 
this is list for quite some time and it is quite active. So please do 
care to reply :)
Well, I havent tried the later versions of it, but when I tried it a couple of 
years ago I thought it had a very clunky interface which got in the way of 
doing what I wanted. So I went back to creating XSL-FO in Xml Spy.

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


Re: are there alternatives to Apache FOP?

2005-02-11 Thread Chris Bowditch
Kai Hackemesser wrote:
Hello, all,
I am looking for a good FO-PDF converter. I tried so far FOP from Apache,
but it looks like it currently doesn't support all features I would like to
use (for example all border styles I tried result in solid borders, and the
border collapsing sometimes doesn't look nice) 

So what are the currently available alternatives?
Well there are a few commercial alternatives, the most established being;
- Antenna House has already been mentioned,
- RenderX's XEP www.renderx.com
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: HTML Tables converted to FO Tables

2005-01-31 Thread Chris Bowditch
Chris Greene wrote:
Folks,
I'm hoping that someone has already solved this problem...
--- I have an input XML file that has a Body tag which contains an 
HTML Table as its content.
--- If I save the HTML content to a file and open it in a browser, the 
browser very nicely formats the table with, I suspect, some 
heuristically computed column widths.
--- Since FO requires that you explicitly specify the column-width of 
each column in a table I suppose that my XSL file needs to do something 
like a browser does to compute the column-widths.
This is not true, the property table-layout=auto will compute column widths 
automatically. Note, however, that not all FO Formatters implement automatic 
table layouts.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


HTML Tables converted to FO Tables

2005-01-29 Thread Chris Greene
Folks,
I'm hoping that someone has already solved this problem...
--- I have an input XML file that has a Body tag which contains an 
HTML Table as its content.
--- If I save the HTML content to a file and open it in a browser, the 
browser very nicely formats the table with, I suspect, some 
heuristically computed column widths.
--- Since FO requires that you explicitly specify the column-width of 
each column in a table I suppose that my XSL file needs to do something 
like a browser does to compute the column-widths.

Has anyone written an XSL file to create FO tables from HTML tables?
Thanks,
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: list in list

2005-01-20 Thread Chris Bowditch
Tommaso Taglioni wrote:
snip/
I tried to consider it as simple lists but it doesn't work.
Why doesnt it work? What does the generated FO look like? your xml and xsl 
look ok to me.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Space betweens columns

2005-01-20 Thread Chris Bowditch
Sönke Ruempler wrote:
Hi,
is it possible to control the space / margin between columns in multi-column
documents?
specify column-gap on region-body.
snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Page background color

2005-01-07 Thread Chris Bowditch
Dennis Myrén wrote:
snip/
Is there a way to set the background color of the entire page, 
regardless of whether objects are placed
No, you cant set background color on the entire page. But you can set it on 
region-*. So in your case, as well as setting background color on region-body 
you will need to set it on region-before too.

snip/
I would like not to repeat that static content, but rather have it 
rendered only at the first page.
This is straigt forward to achieve. You will need to create two 
fo:simple-page-master objects, one with a region-before defined and the other 
without. Then create a fo:page-sequence-master which uses defines which 
simple-page-master is used based on page-position. The fo:page-sequence then 
references the page-sequence-master. E.g.

fo:simple-page-master master-name=first page-width=210mm page-height=297mm
fo:region-body margin-top=20mm background-color=blue/
fo:region-before region-name=firstHeader extent=20mm 
background-color=blue/
/fo:simple-page-master

fo:simple-page-master master-name=rest page-width=210mm 
page-height=297mm
fo:region-body margin-top=20mm background-color=blue/
fo:region-before region-name=restHeader extent=20mm 
background-color=blue/
/fo:simple-page-master
fo:page-sequence-master name=all
fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference master-reference=first 
page-position=first/
fo:conditional-page-master-reference master-reference=rest 
page-position=rest/
/fo:repeatable-page-master-alternatives
/fo:page-sequence-master

then the page-sequence element references the page-sequence-master, e.g.
fo:page-sequence master-reference=all
fo:static-content flow-name=firstHeader
fo:blockThis will only appear on page 1/fo:block
/fo:static-content
fo:flow
!-- your table as usual --
/fo:flow
/fo:page-sequence
HTH!
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Image Problem in FOP url(...)

2004-12-21 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
I am trying to resolve my images dynamically.  When I perform the
following:
fo:block
  xsl:variable name=pic select=../[EMAIL PROTECTED]/
  fo:external-graphic src=url(quot;$picquot;) content-height=201in
scaling=uniform/fo:external-graphic
  Image=  xsl:value-of select=$pic/
/fo:block
Variables inside an attribute are not resolved by default, in xsl terms you 
have to use an attribute template: this means just put {} around the variable, 
e.g.

fo:external-graphic src=url('{$pic}')/
I have just used single quotes instead of trying to use $quot; entity as its 
easier. Note that content-height doesnt have any effect in FOP 0.20.5.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: multi-column page and background colors

2004-12-17 Thread Chris Bowditch
Sönke Ruempler wrote:
Hi,
I want to setup a page layout with 2 columns. The page background should
have a background-color while the columns' backgrounds remain white. How is
that possible? I did not find how to set the background for the whole page,
but only for the columns, maybe it's a mix of padding's and backgrounds.
Not totally clear on what you are trying to achieve, but couldnt you just set 
background color on the static regions and leave the body region without a 
background color?

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


Re: PDF that is printed and folded

2004-12-13 Thread Chris Bowditch
Sönke Ruempler wrote:
Hi,
I'm creating a flyer filled with events using fop. It's a A3 formatted page
with 4 columns printed on both sides.
After the flyer is printed, it's folded in the middle (to A4) and the order
of pages changes. The start page (the first column of the original first
page) is now the the first row of the back page. Do you understand me? ;-)
Yes, I understand the requirement. There is no facility for this in XSL-FO. As 
already suggested, you will need to post process the generated PDF using iText 
or other PDF manipulation library.

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


Re: Column Span

2004-12-08 Thread Chris Bowditch
Sajeesh N Kakkat wrote:

How do I add a row in a table that spans multiple cells after adding the
regular rows which have the individual cells. This row with span has the
total on it.
put number-columns-spanned=@number on the fo:table-cell, replacing @number 
with an expression that evalutes to the appropriate number of rows. The 
structure of rows above and below the row containing this cell are irrelevant. 
Just make sure you dont try to span more columns that have been defined at top 
of the table.

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


Re: Column Span

2004-12-08 Thread Chris Bowditch
Chris Bowditch wrote:
Sajeesh N Kakkat wrote:

How do I add a row in a table that spans multiple cells after adding the
regular rows which have the individual cells. This row with span has the
total on it.

Sorry for the noise, slight typo in my previous message:
put number-columns-spanned=@number on the fo:table-cell, replacing 
@number with an expression that evalutes to the appropriate number of 
rows. The structure of rows above and below the row containing this cell 
   I meant columns
are irrelevant. Just make sure you dont try to span more columns that 
have been defined at top of the table.

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


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


Re: FOP distorting images

2004-12-07 Thread Chris Bowditch
Saptarshi Sen wrote:
Hi,
I am trying to generate PDF images (charts with embedded fonts) using
FOP version 0.20.5.
We first generate a SVG image using a charting tool called PopChart
(version 5.1.0). We then create the 'fo' file from this SVG. This is finally
fed to FOP to generate the PDF.
In doing so, legends in the chart are overlapping - the chart is
getting cutoff on the right hand side.
The SVG image is actually fine - which leads me to believe that the
problem crops up at the 'fo to pdf' stage. Attached alongwith are the SVG and
FO files as well as the PDF generated using FOP.
Why couldnt the problem be with the SVG to FO conversion that you mention 
above?
snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to preserve new line

2004-12-06 Thread Chris Bowditch
Yann Bonnaillie wrote:
I generate a DOM by using Java, with values that can be long text with new line 
inside...
But when i apply transformation with FOP, new line contained in my texts are 
not preserved.
How can i do to keep them ? Should i replace them by some special code 
representing new line in pdf format ?
Hi Yann - this is a FAQ. See:
http://xml.apache.org/fop/faq.html#fo-preformat
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Font style problem

2004-12-02 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
So does it mean that I create an xml file for every required ttf font file
?
Yes you must create font metrics xml files for every font you wish to use, 
except for the standard adobe 14 fonts. Generally this is not a problem as 
most documents tend to use at most 3 or 4 fonts outside of the adobe 14.

Chris

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


Re: [fop] linefeed-treatment=preserve doesn't preserve the linefeed

2004-11-23 Thread Chris Bowditch
Gunter D'Hondt wrote:
snip/
which still outputs Line1Line2 so it replaces the newline character 
instead of preserving it

Anybody who gots an idea what I'm doing wrong here? Any help is welcome...
This is a FAQ. See:
http://xml.apache.org/fop/faq.html#fo-preformat
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [fop] linefeed-treatment=preserve doesn't preserve the linefeed

2004-11-23 Thread Chris Bowditch
Gunter D'Hondt wrote:
Looking at the FAQ I think I don't do anything wrong in my code coz I'm 
placing the attrbute linefeed-treatment=preserve into it. The attr 
white-space-collapse I don't need or has nothing to do with the linefeed 
(I assume).
Incorrect assumption, the FAQ says you need to specify 
white-space-collapse=false

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: intelligent page breaks with fop

2004-11-22 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
hi everybody,
 

i am generating pdf using fop, the problem now is, that if e.g. the 
content of a table cell is longer than a page fop doesnt manage to split 
this up in an intelligent way, so it just extends the table cell on the 
next page, which looks really bad.
in other words, i want to tell fop:
if the content of the table cell goes beyond the extent of the page, 
close the table cell at the end of the page and continue printing the 
content on the next page in a new tablecell.
i have searched for this in some tutorials, but found nothing, is there 
a way i can solve the problem?
It is not clear exactly what you mean. At a guess, I would say you are 
referring to borders on a table cell not being closed at the bottom of the 
first page and then redrawn at the top of the second. In XSL-FO, the property 
to control this behaviour is border.conditionality=retain The default is 
dicard, which means dont draw at start/end of a reference area. However, I 
dont believe FOP implements conditionality on either borders or spacing, so 
you are out of luck.

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


RE: PDF encryption

2004-11-22 Thread Chris Dail
Title: RE: PDF encryption





Stimpmania,


The error Cannot find any provider supporting RC4 indicates that Java cannot find the security provider (in this case bouncy castle). Chances are you have another version of Java on the path that is being executed instead of the one in C:\j2sdk1.4.2_06\jre.

When you install the SDK, it defaults to installing both the SDK and the path specified and the standalone JRE in C:\Program Files\Java\j2re1.4.2_06. When you execute the java command, it is probably using this version of Java instead. If you install Bouncy Castle to the program files JRE as well fop should work for you.

If that does not work, you probably have a different version of Java that is on that Path.


Chris Dail
Whitehill Technologies, Inc.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: November 22, 2004 1:59 PM
To: [EMAIL PROTECTED]
Subject: PDF encryption


Hello,


i'm using fop 0.20.5 on windows xp sp2 with sdk 1.4.2_06 and need help with the encryption-feature. 
I'm always getting the message Cannot find any provider supporting RC4, as described on http://xml.apache.org/fop/pdfencryption.html.

What I have done:


- downloaded the bcprov-jdk14-125.jar from bouncycastle.org
- copied it into C:\j2sdk1.4.2_06\jre\lib\ext
- edited the file java.security and added the line security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider

- added C:\j2sdk1.4.2_06\jre\lib\ext\bcprov-jdk14-125.jar to the classpath
- build fop, getting the message prepare-jce:
 [echo] JCE is present. Installing PDF encryption support.
 [copy] Copying 1 file to C:\Programme\fop\build\src


When i start fop via the command line with fop -nocopy -xml input.xml -xsl stylesheet.xsl -pdf output.pdf
i get the error-message mentioned above - Cannot find any provider supporting RC4


Do you have an idea what i've done wrong. i've spend about 6 hours now without sucess.


Please Help
Thanx
Stimpmania


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





Re: References on same page

2004-11-19 Thread Chris Bowditch
Sven Waibel wrote:
My problem is that i don't know how many details i will have, so i can't say id=detail1, id=detail2.
The way to tackle this problem is use the generate-id() in your xsl 
stylesheet. I cant really be more specific without seeing an example of your XML.

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


Re: Current CVS - break-after/before=page not working?

2004-11-16 Thread Chris Bowditch
Tom Frey wrote:
Hi,
I don't seem to get break-after=page working with the current CVS
snapshot. Is there something I might be doing wrong or is there something
broken? Here's some test xsl which renders page breaks with v0.20.5 but not
with the current CVS snapshot:
There are currently two lines of development in FOP, the redesigned code and 
0.20.x. The reason break-after isnt working in the current snapshot is because 
the snapshot is of CVS Head which just happens to be the redesigned code, 
whilst the 0.20.x code is available on a CVS branch. If you want to get the 
latest 0.20.x code then you will need to download a CVS client and do an 
update from the correct branch. To be honest though no that much has changed 
since 0.20.5, only a little bit of tweaking to the amount of memory consumed 
by tables.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: XSL-FO Specification

2004-11-09 Thread Chris Bowditch
Balamuraly wrote:
Hello All,
 
We are very interested in XSL-FO concepts.
 
Can you please clarify the Specification version of XSL-FO as per W3C.
 
What are the limitations in this version?
See the compliance page for details:
http://xml.apache.org/fop/compliance.html
 
When is the next version is going to be released?
Open Source Development is very different to commercial development. There are 
no project plans. It is likely to be a long time before the redesigned code is 
ready for release.

 
What are the points that will be addressed in the next version in the 
current limitations?
The main purpose of the redesigned code is to facilitate the implementation of 
keep-* properties.

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


Re: Footer placement...

2004-11-08 Thread Chris Bowditch
Anil R. Pinto wrote:
snip/
But with the marker approach I noticed that the footer area has to be
allocated to the other pages (using the layout and region-after values
applicable to the pages) irrespective. So, untimately although no footer is
printed on the middle pages, the area is consumed by a blank portion and so
paper will not really be saved (the main intention of this exercise :-) )
Sounds to me like you can fulfill your requirement using a footnote. A 
footnote only takes up space if present. So just put a footnote in your last 
paragraph and it should appear at the bottom of the last page. No need to 
define a region-after.

The only problem with footnotes is that they are a bit buggy in current 
version of FOP. Certain scenarios may produce strange effects, e.g. if last 
paragraph in document happens to be at bottom of page, then there will be room 
for footnote. What should happen is FOP should move last paragraph to next 
page along with footnote, but I dont think this works.

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


Re: bold font

2004-11-04 Thread Chris Bowditch
Mark Donnelly wrote:
Im trying to get a bold font using the following
snip
block font-style=boldblah blah blah/block
This should be:
block font-weight=boldblah blah blah/block
snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: MICR font in FOP as an embedded application..

2004-11-03 Thread Chris Bowditch
Anil R. Pinto wrote:
snip/
But, the main requirement is to use this behavior with FOp running as an
embeded application (using fop.jar).
Can someone please guide me to a thread that covers this ?
How to use a config file in an embedded environment is described on the 
website:
http://xml.apache.org/fop/embedding.html#config-external
I am lost as to where should the custom font-metrics xml and userconfig.xml
file reside when using the standard fop.jar (as the userconfig.xml already
exists in the jar)
Yes, there is indeed a userconfig.xml in FOP.jar, but its not used!
snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


XSLT from the Command Line in Java 5

2004-10-29 Thread Chris Pratt








Ever since I installed JDK 1.5 I havent been able to
run the XSLT command line utility to check my FO. Did something change? The
command Im executing is:



java org.apache.xalan.xslt.Process in xmlfile
-xsl xslfile -out fofile



Thanks.

 (*Chris*)








Re: Conversion of a SVG image (RGB) into PDF (CMYK)

2004-10-26 Thread Chris Bowditch
Saptarshi Sen wrote:
Hi,
What exactly is the org.apache.fop.dataTypes.ColorSpace.java file
for? Does is provide any kind of support for CMYK?
This is the java class that is used to represent the colour space specified 
in
the FO. Although it clearly has enumerations for CMYK, the renderers always
work with RGB values. Take a look at PDFRenderer.renderWordArea method and you
will see a PDFColor object constructed based only on RGB values with no test
for CMYK.
CMYK is supported for JPEG images, so that if an image has CMYK colours these
are preserved in the generated PDF.
Is there any other way by which I could convert the RGB colors to
CMYK?
FOP is open source, you could download the source and change the PDFRenderer
to support CMYK. The PDFColor object looks like it supports CMYK, so it may be
straight forward to implement.
Chris

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


Re: I need your help

2004-10-19 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
Hi everybody,
This is a pure XSLT question and probably best asked on the XSLT list:
http://xml.apache.org/fop/maillist.html#xslt-mulberry
This new tag can go n times each time I need the value of cureent tag 
vaue new and it immediate previous.
The following XSL snippet should give you an idea of how to do it:
xsl:template match=new
xsl:choose
xsl:when test=preceding-sibling::new
xsl:value-of select=preceding-sibling::new/
/xsl:when
xsl:otherwise0/xsl:otherwise
/xsl:choose
xsl:value-of select=./
/xsl:template
Since you didnt say what you were trying to do with these values I have done 
anything with them.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: I need your help

2004-10-19 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
Hi everybody,
This is a pure XSLT question and probably best asked on the XSLT list:
http://xml.apache.org/fop/maillist.html#xslt-mulberry
This new tag can go n times each time I need the value of cureent tag 
vaue new and it immediate previous.
The following XSL snippet should give you an idea of how to do it:
xsl:template match=new
xsl:choose
xsl:when test=preceding-sibling::new
xsl:value-of select=preceding-sibling::new/
/xsl:when
xsl:otherwise0/xsl:otherwise
/xsl:choose
xsl:value-of select=./
/xsl:template
Since you didnt say what you were trying to do with these values I havent done 
anything with them.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: text alignment

2004-10-19 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
hi, 

i got a problem which hasn 't been described in the mailing list archives.
i have a standard block article, what i know want is that the right-most
char of every line of text output 
is exactly aligned to every other right-most char of the other lines of this
article.
in other words, is there a way i can tell fop to adjust char padding in a
way that the left-most /
right-most char of a line is exactly aligned to that of the other lines?
This is the definition of justified text. To justify a block of text, use the 
text-align=justify attribute, e.g.

fo:block text-align=justify
The fox jumped over the lazy cow. The fox jumped over the lazy cow. The fox 
jumped over the lazy cow. The fox jumped over the lazy cow. The fox jumped 
over the lazy cow. The fox jumped over the lazy cow. The fox jumped over the 
lazy cow. The fox jumped over the lazy cow. The fox jumped over the lazy cow. 
The fox jumped over the lazy cow.
/fo:block

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Base font and russian

2004-10-12 Thread Chris Bowditch
Cédric Augustin wrote:
snip/
Does fop use the X11 font ? 
No.
In fop configuration it says that fop need X11
to be installed.
Thats right, or if you have Java 1.4 you can run with the -headless option.
If not, which font does fop is using ?
Depends on what you specified in font-family property? Default is Helvetica. 
Definition of this is the Adobe Helvetica.

If yes why the fop servlet doesn't found the cyrillic char and display
 ?
This means the font you are using via font-family doesnt have a glyph for the 
requested code point.

I don't want to use special font and embed it in the pdf. Base font should
be enough. Russian pdf created with Acrobat are well displayed on the client
computer, so I should be able to use standard font with fop.
I dont think any of the 14 base Adobe fonts have glyphs for all the languages 
you need. I think for russian you will need to specify a different font to the 
other languages and embed it into the PDF.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Printing from multiple trays with FOP generated output

2004-10-07 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
Hello,
I am looking into implementing a XML--XSLFO--PS or PDF process, but 
need the ability to have different pages of the output print from 
different printer trays ( one with letterhead, one on blank paper). Is 
there a way to instruct FOP to insert the printer tray selection 
directives into the PS output? Another idea could be to get the 
postscript commands embedded in the XSLFO, but I don't know how to get 
them in the FO so that FOP will just include them as is.
I dont think its possible to get FOP to just copy postscript from the source 
FO to the generated Postscript.

The exact commands I want to embed are: statusdict begin 1 setpapertray 
end for the top tray, and statusdict begin 2 setpapertray end for the 
middle tray.
The way we achieve this is to post-process the generated postscript with a 
custom program.

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


Re: Problem with headers

2004-10-01 Thread Chris Bowditch
Philip Snyder wrote:
I have a problem with the headers not showing on any even numbered pages
on 1 of my pdfs. The XSL can be seen here:
http://comstar.dotgeek.org/period_report.pdf.xsl
I can't figure out what is wrong - the header is written almost exactly
the same as my other report and I definitely don't have anything in
there about numbering only odd #'d pages. Any ideas? Thanks!
This problem could be caused by the fact that you have too much content for 
the header. I believe in this scenario FOP tries to place remaining content on 
next page. If the remaining content is just a small 1 pt space for example it 
will look like you have a blank header. Try increasing size of header until 
problem goes away. If you cant live with a larger header then you can reduce 
the content of the header afterwards.

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


Re: different header on first page

2004-10-01 Thread Chris Bowditch
Robert Guggenberger wrote:
i got pages with a JPG on the top (in the region before)
now this JPG-header should only be visible on the first page
there is no special content on the first page ( a must not for a page 
break - otherwise i would do it with 2 page sequences, flows)

i found how to use differnt layouts (margins ...) with different 
page-masters.

But i havnt found  a way how to show, in my case a LOGO, on the first 
page and not on the others
this is straight forward. create a layout-set something like:
fo:layout-set
fo:simple-page-master master-name=firstpage
fo:region-body margin-top=30mm/
fo:region-before region-name=firstheader extent=30mm/
/fo:simple-page-master
fo:simple-page-master master-name=otherpages
fo:region-body/
/fo:simple-page-master
fo:page-sequence-master name=all
fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference master-reference=firstpage 
page-position=firstpage/
fo:conditional-page-master-reference master-reference=otherpages 
page-position=rest/
/fo:repeatable-page-master-alternatives
/fo:page-sequence-master
/fo:layout-set

then the page-sequence will be:
fo:page-sequence master-reference=all
fo:static-content flow-name=firstheader
!-- put content for first header here --
/fo:static-content
fo:flow flow-name=xsl-region-body
!-- put your regular flowing content here --
/fo:flow
/fo:page-sequence
I hope this is clear,
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: TeX output in FOP

2004-09-29 Thread Chris Bowditch
Ganesh Babu Nallamothu, Integra-India wrote:
Dear All,
In my project I have to display TeX, MathML and GIF output to PDF.
For MathML, I have taken new snap shot from apache site. and it is working
fine.
For GIF, Any how this is external image we can able to display.
Do you mean how can you include the binary data inside the xml file and get 
FOP to render it as an image? Im not sure how to do it, you may be able to do 
something cleaver with URI resolvers and the data: protocol. Others on this 
list may be able to help more with this.

For TeX, How we can display?
My idea is compile TeX and get DVI file using dvips convert into ps and then
include in the file. But the new build fop is stating error:
Could not find a set of breaking points. What is this error and how to
rectify this.
This is the lines from the -d option of FOP.
Building formatting object tree
Current heap size: 590Kb
Starting layout
null implementation of getWordSpaceIPD() called!
No set of breaking points found with maxAdjustment = 1.0
No set of breaking points found with maxAdjustment = 5.0
Could not find a set of breaking points
This is output from the development code which isnt ready for production use. 
You probably mean to get the latest maintenance code. You need to specify the 
branch tag fop-0_20_2-maintain when using CVS to download the source

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


Re: margin-bottom, region-before ingnored by region-body with column

2004-09-29 Thread Chris Bowditch
Johannes Wolfgang Woger wrote:

Does that mean that the whole page is reserved for region-body and other
regions can
only exist when the region-body provides enough margin space ?
Even the outer margins are consummed by region-body ? is this XSL-FO
compliant?
Yes this is correct and as presecribed by the XSL-FO spec. It is useful to be 
able to overlap the outer regions with region body in some circumstances. If 
this is not required then the extent of the regions should match the 
corresponding margin on the region-body. I hope this is clear.

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


Re: Adjacent tables

2004-09-29 Thread Chris Bowditch
Mark Donnelly wrote:
Been looking through the FO documentation and cant find anything to do with
creating adjacent tables.
Id like to have one table on the left and then two tables on top of each
other next to the first (ie to the right of the first).
Anyone know of any methods?
Create an outer table with two columns and two rows and nest the 3 inner 
tables in the table cells of the outer table. You will need to put 
number-rows-spanned=2 on the first cell of the first column to merge the two 
cells in the first column.

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


Re: Preserving blank table rows

2004-09-28 Thread Chris Bowditch
Mark Donnelly wrote:
Does anyone know how to preserve blank table rows?
If I create a table with a bunch of empty table rows at the end, they do not
appear in the resulting pdf doc.
If however, I put a full stop in one table cell of each of these rows then
they appear.
Does anyone know, is this decision to clip empty table rows a fop thing or a
Acrobat setting?
If a fop thing, is there a work around?
More specifically its the correct behaviour of XSL-FO. The workaround is to 
put:
fo:blocknbsp;/fo:block
inside the table cell.
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Preserving blank table rows

2004-09-28 Thread Chris Bowditch
Mark Donnelly wrote:
Im using an xslt/fo transform of an xml document and dont have any html in
it. As such nbsp; isnt recognised.
Ive also tried the UTF-8 sequence: #xa0; but that is then not recognised by
the fop parser.
#xA0; should work. Can you post the error here, along with a snippet of the 
XSLT you are using.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: ERROR -2

2004-09-24 Thread Chris Bowditch
Mark Donnelly wrote:
snip/
java.lang.ArrayIndexOutOfBoundsException: -2
at
org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.ja
va:130)
This is the key to solving the problem. Looks like you have defined a table 
row with more cells than columns have been defined in the table.

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


Re: problem with function

2004-09-24 Thread Chris Bowditch
Eldho George wrote:
Hai all
The following is my code snippet.Here I am passing html string for making
its xhtml
But its showing error like the function should return string.A tried with
diff possibilities.But its not get solved .If anyone know please help me
I'm struggling to understand how this problem is directly related to FOP. 
Perhaps your question would be better suited posted to a list relating to the 
HTML tidy utility ...

If you paste the error message rather than your interpretation of the error, 
we might stand a better a chance of being able to help you.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [work] Re: Avery labels

2004-09-24 Thread Chris Pratt
Unless it's imperitive that the data flows horizontally, I'd look at using the 
column support that's built into FOP and forget trying to build table rows.
  (*Chris*)

Original Message ---
On Sep 24, 2004, at 9:13 AM, Frank Daly wrote:
 Many thanks for your thoughtful reply but I can't get it to work.
 Surely someone has come across this problem before and found a
 solution.

 Frank

Someone probably has. That's why Jeremias was directing you to the XSLT
list where someone probably has already come up with a nifty solution
to your problem. The FOP Mailing List page[1] has links to the XSLT
List (hosted at Mulberry Tech)[2] where you can ask your question.
Better yet, the FOP Resources page has a section called Books,
Tutorials, Articles[3] which has links to many resources (online and
otherwise), where you can probably find the answer to your question. I
recommend Dave Pawson's excellent XSL FAQ[4] (which covers XSLT 
XSL-FO).

Hope this helps!

Web Maestro Clay

[1]
http://xml.apache.org/fop/maillist.html
[2]
http://www.mulberrytech.com/xsl/xsl-list
[3]
http://xml.apache.org/fop/resources.html#documents
[4]
http://www.dpawson.co.uk/xsl/xslfaq.html


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


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



Re: FW: Problem with font

2004-09-21 Thread Chris Bowditch
Eldho George wrote:
I have a problem with font.The following is my font template
fo:inline font-size={$size} font-family={$face}
  color={$color} line-height=12pt
  xsl:apply-templates select=*|text()/
 /fo:inline
The problem is FOP doesnt handle fo:inlines properly. It should generate its 
own area whose height depends on font size but it isnt implemented yet. 
Currently the line height can only be different for block level constructs.

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


RE: problem with XSLTInputHandler(String,String) constructor

2004-09-17 Thread Chris Pratt
The new InputStream(String) constructor takes an XML SystemID, not the XML 
Content.  Try wrapping your XML content in a StringReader.
  (*Chris*)

Original Message ---
Hi all,
I have problem with XsltInputHandler. I tried with the following code.But
its not working.I worked with XsltInputHandler (file,file)constructor. It
worked fine.Please tell me what is the problem.I want to pass xml and xsl as
string.Please help me.Thanks in advance


xsl is a string contains my xsl file
xml is a string contains my xml file

InputSource is1=new InputSource(xsl);
InputSource is2=new InputSource(xml);

XSLTInputHandler inputHandler = new XSLTInputHandler(is1,is2);
//XSLTInputHandler inputHandler = new XSLTInputHandler(xml,xsl);
ByteArrayOutputStream outStream = new ByteArrayOutputStream();

driver.setOutputStream(outStream);

driver.render(inputHandler.getParser(),
inputHandler.getInputSource());

byte[] content = outStream.toByteArray();
res.setContentLength(content.length);

res.setContentType(application/pdf);

   res.getOutputStream().write(content);
   res.getOutputStream().flush();

   outStream.close();


//I ALSO TRIED WITH XSLTInputHandler inputHandler = new
XSLTInputHandler(xml,xsl);
// means XSLTInputHandler(String,String) constructor





**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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



RE: FOP opening only 1 PDF when more than one is rendered?

2004-09-16 Thread Chris Pratt








As far as I know, that cant be
done. One request, one reply, thats all you get. Have you ever seen
this work on another web site? If so, take a look at how they do it.

 (*Chris*)











From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15,
2004 9:17 pm
To: [EMAIL PROTECTED]
Subject: Re: FOP opening only 1
PDF when more than one is rendered?







I dont want them merged into 1 document. I want them
separate but want the one instance of acrobat ( which opened the first invoice
) to take the other 9 documents created after the first one. Now what is
happening is that the last document is opened in the acrobat reader where as
the other 9 are lost.











I have a feeling it has something to do with the response
object. I think trying to use the same response/request object is causing the
first 9 docs to be flushed out with the last one only remaining...on right
track ?











Thanks



-Jebus
[EMAIL PROTECTED] wrote: -

To: [EMAIL PROTECTED]
From: Jebus [EMAIL PROTECTED]
Date: 09/15/2004 06:57PM
Subject: Re: FOP opening only 1 PDF when more than one is rendered?

whatyouaredoingiswriting10separatedocumentstothe
outputstream.Ifyouneedallthesedocumentstoshowupasone.you
iTexttomergethemtogether.

OnWed,15Sep200418:02:37-0700,[EMAIL PROTECTED]
[EMAIL PROTECTED]wrote:
IhaveaforloopwhichcallstheXSLTHandlerandthenrendererinloop
tilltheinputcriteriaisexhausted.

Whathappensistheacrobatreaderopensonlythelastpdffilerendered...

Mycodelookslike..whatshappeningisthatonlythelast(10th)invoice
isopeningupinacrobat.IamrunningitunderWEBLOGIC7.0

for(i=0to10invoices)
{

XSLTInputHandlerinput=newXSLTInputHandler(invoicexmlfile,new
File(xslParam));
renderXML(input,response);
}

publicvoidrenderXML(XSLTInputHandlerinput,
HttpServletResponseresponse)throwsServletException
{
try{
ByteArrayOutputStreamout=newByteArrayOutputStream();
response.setContentType(CONTENT_TYPE);
Driverdriver=newDriver();
StringOS=System.getProperty(os.name);
driver.setLogger(log);
driver.setErrorDump(true);
driver.setRenderer(Driver.RENDER_PDF);
driver.setOutputStream(out);
driver.render(input.getParser(),input.getInputSource());

byte[]content=out.toByteArray();
response.setContentLength(content.length);
response.getOutputStream().write(content);
response.getOutputStream().flush();
}catch(Exceptionex){
thrownewServletException(ex);
}

Thanks
Manoj

-
Tounsubscribe,e-mail:[EMAIL PROTECTED]
Foradditionalcommands,e-mail:[EMAIL PROTECTED]



-
Tounsubscribe,e-mail:[EMAIL PROTECTED]
Foradditionalcommands,e-mail:[EMAIL PROTECTED]








Re: Probably simple build issue

2004-09-08 Thread Chris Bowditch
Thomson, Alisa wrote:
I have installed FOP 0.20.5 and ant 1.6.1 running JDK 1.4.2_03.  I was just trying to run build -projecthelp and I received the error below.  ant.jar is in my Classpath.  I know why I am receiving the error...it is because org/apache/tools/ant/launch/AntMain does not exist in that jar file.  I looked in build.bat that came with the FOP installation and it is looking for ant 1.5.1, so for grins I downloaded that version and org/apache/tools/ant/launch/AntMain does not exist in that jar file either.  I did find it in my current ant installation in ant-launcher.jar.  Any ideas why it is looking for this class and how do I get around this?
To build FOP 0.20.5 you dont need a separate install of Ant. The JAR file 
Ant-1.5.1.jar is distributed in FOP's lib sub directory. The build.bat, sets 
the ANT_HOME to FOP's lib sub directory and thats all you should need to do.

As a guess I would say its not working for you because you have ANT_HOME set 
to the root directory of the Ant install and not Ant\lib sub directory.

Chris
snip/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error while building FOP dev1

2004-09-07 Thread Chris Bowditch
Pascal Sancho wrote:
snip/
codegen:
 [echo] Resetting codegen directory
 [echo] Generating the java files from xml resources
[style] Processing D:\cvs\xml-fop\src\codegen\encodings.xml to
D:\cvs\xml-fop\build\gensrc\o
rg\apache\fop\fonts\CodePointMapping.java
[style] Loading stylesheet
D:\cvs\xml-fop\src\codegen\code-point-mapping.xsl
BUILD FAILED
I have just run the build now and it was successful.
javax.xml.transform.TransformerFactoryConfigurationError: Provider
org.apache.xalan.processor.Tr
ansformerFactoryImpl not found
Looks like a classpath problem: the build cannot find Xalan. Check your 
classpath.
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error while building FOP dev1

2004-09-07 Thread Chris Bowditch
Jeremias Maerki wrote:
Chris, have you tried under JDK 1.3? Because Pascal tries to compile
under 1.3. Unfortunately, I'm at work on my notebook where I don't have
a current FOP HEAD to try. I can check this out this evening.
I'm running 1.4 at the moment. Ive just tried 1.3 and it fails! Not with a 
TransformerFactoryImpl class not found exception, but with the later errors 
that pascal reported.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error while building FOP dev1

2004-09-07 Thread Chris Bowditch
Jeremias Maerki wrote:
Looks like we don't have JDK 1.3 compatibility at the moment. I think I
have seen this myself under JDk 1.3 lately.
Yes, I agree.
snip/
Note to Devs: We should see to it that at least the Transcoders compile
again under JDK 1.3 as Batik still depends on it. Unless there is a vote
on dropping JDK 1.3 support for the rest I regard the current state as a
bug. I may have time this week to have a look at it.
We should be supporting 1.3, and I agree that it is a bug if FOP no longer 
compiles on 1.3.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: problem with the combination of numberation and sort

2004-09-03 Thread Chris Bowditch
Dirk Sonne wrote:
Hello List,
i have a little problem with the combination of numberation (xsl:number 
format=1.1 level=multiple count= value | anOtherValue /) and sort 
(xsl:sort select=value/)
If I use only xsl:number or xsl:sort, it works fine.

But a combination of both won't work.
The sort works but the nuberation is the same like in the orginal XML file.
The sorted List is not renumbert.
Your problem is a pure XSLT one. This list is focused on FOP and XSL-FO, and 
so you will receive a better response on an XSLT list, e.g. Mulberry

http://xml.apache.org/fop/maillist.html#xslt-mulberry
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: 2 images with different sizes in a table row

2004-09-03 Thread Chris Bowditch
Sven Waibel wrote:
Hello,
i've two images with different sizes, one 2cm the other one max. 2cm.
Table-row
---
| Image1  |Image2 |
---
So should be the height 2cm, but it doesn't work:
fo:external-graphic src=y:\bilder\im_2cm.jpg content-height=2cm/
content-height attribute hasnt been implemented. Try height instead.
snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: 2 images with different sizes in a table row

2004-09-03 Thread Chris Bowditch
Sven Waibel wrote:
It doesn't work.
I don't understand it.
What behaviour are you observing? What is the dpi of your image? Without 
width/height specified, FOP defaults to 72dpi and sizes the image accordingly. 
 To scale your image to a particular size, I find that specifying both width 
and height on fo:external-graphic works for me.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: use already existing PDF for XSL:FO

2004-09-02 Thread Chris Bowditch
Peter wrote:
Hello lists,
I know it's probably not the right list.
situation: on a client i have a C++ application that creates a pdf by list 
labels. the data from the client application ist transferd by webservice to
a server, the server make out of the object an xml file.
problem: Can I make a XSL:FO out of the PDF that already exists? otherwise I
have to recreate the layout, structure and design of the document.
This is a bit like asking if you can reverse engineer some assembly code into 
C++. Except its probably more complicated. The tool would have to examine PDF 
commands like rectangle (125, 60, 100, 100) and decide what XSL-FO element 
could have created that result! And for this reason, there are currently no 
tools available to do it.

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


RE: Create special Last Page

2004-09-01 Thread Chris Pratt
If all you want to do is have some content flowed at the end of the
document, just put it in your main template after the last apply-templates
and it will end up on the last page.  If you want a special footer (or
header I think), use Britta's work-around.
  (*Chris*)

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Monday, August 30, 2004 1:20 am
To: [EMAIL PROTECTED]
Subject: AW: Create special Last Page

Hi,

i used footnote as Britta Bargel has described. I can´t use this workaround,
because the footer must always positioned at the end of the page.
My content is flexilble, so i never know the position of my last entry and
therefore if there is enough space on the bottom for the footer text. As i
use page-break as Britta said, it is possible that the footer text will be
print on next page without any content.

Could you tell me please a little bit more about the workaround with
markers?

Regards
Martin

-Ursprüngliche Nachricht-
Von: J.Pietschmann [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 27. August 2004 21:08
An: [EMAIL PROTECTED]
Betreff: Re: Create special Last Page


[EMAIL PROTECTED] wrote:
 i need to create a special last page which is different to the other ones.
 So i want to use page-position=last and page-position=any within the 
 conditional-page-master.
 Now i read in the list that page-position=last is not really
implemented.
  
 Has anyone a workaround for this issue?
 How is it possible to create a separate last page?

There are several workarounds, depending on the actual
requirements. A specific footer can be implemented using
markers or a footnote.

J.Pietschmann


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





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



RE: Count with conditions

2004-09-01 Thread Chris Pratt
How about adding the counts together?  i.e. count(something = run) +
count(something1 = ok)
  (*Chris*)

-Original Message-
From: Sven Waibel [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 30, 2004 4:02 am
To: [EMAIL PROTECTED]
Subject: Count with conditions

Hello,

i'd like to do a query like this one here

count(something = run  something1 = ok)

How can i do this?

One condition is no simple: count(@activity[.='performed'])
But how can i append the second condition?

Thanks and regards
Sven


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




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



Re: AW: Create special Last Page

2004-08-31 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
snip/
Could you tell me please a little bit more about the workaround with markers?
Place the contents for the last footer inside fo:marker tags after the rest 
of your content. In the region-after, retrieve this marker for every page. 
Now, because in previous pages the marker hasnt been set yet, this wont 
appear. Alternatively if you need a footer in the middle pages, then use 
fo:marker at the start to set what the footer for the middle pages. For example:

fo:page-sequence master-reference=all
fo:static-content flow-name=first-footer
fo:blockFirst Page/fo:block
/fo:static-content
fo:static-content flow-name=rest-footer
fo:blockfo:retrieve-marker retrieve-class-name=footer 
retrieve-boundary=document//fo:block
/fo:static-content
fo:flow flow-name=xsl-region-body
fo:marker marker-class-name=footerThis is a middle page/fo:marker
!-- several pages of content --
fo:marker marker-class-name=footerThis is the last page/fo:marker
/fo:flow
/fo:page-sequence

Note: this sample hasnt been tested, and might contain a typo, but hopefully 
you will get the idea.

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


Re: Problems with tables and templates

2004-08-27 Thread Chris Pratt
Yup, you're wrong =8^).  As long as the begin and end are in the same template, 
it's valid.  In other words, you can't have the td tag in one template and 
the matching /td in another, but you can have the table and /table around 
an xsl:apply-templates that puts in the rows.  The same is true for fo.
  (*Chris*)

Original Message ---
Hi,

the problem is that you can't create some elements of a table without ending it.
In html you can begin a table and in the next template you can add rows and 
cells and in another template you can close
the table, that's not possible in pdf. Or am i on the wrong way?

In the meantime i changed my xsl script completely, so it works in a completely 
other way.
It's rather a problem of xsl.

Thanks

Sven



Chris Pratt wrote:
 How about something like this:

 xsl:template match=theme
   table border=0
 tr
   td colspan=3xsl:value-of select=name//td
 /tr
 xsl:apply-templates select=test/
   /table
 /xsl:template

 xsl:template match=test
   tr
 tdxsl:apply-templates select=name//td
 tdxsl:apply-templates select=status//td
 tdxsl:apply-templates select=prio//td
   /tr
 /xsl:template

 That's obviously an HTML example, but it should be easy to change to FO table 
 layout if you need.
   (*Chris*)


 Original Message ---
 Hi,

 i have a table with 3 columns.

 Example:

 Table:TestStatus  Priority
   Theme1
   Test1   ok  1
   Test2   fail1
   
   Theme2
   Test1   ok  3
   Test2   ok  2


 The xml file:
   root
  theme
   name/name
   test
   name/name
   status/status
   prio/prio
   /test
  /theme
   /root



 Now my problem is the following:

 How can i achieve that the table will be filled up correctly?

 In my xsl-fo file i have a template that matches theme and calls template 
 matching test.

 So looks the table after filling it up with my solution:



 Table:TestStatus  Priority
   
   Test1   
   ok  1
   Test2   
   fail1
   
   
   Test1
   ok  3
   Test2   
   ok  2


 Thanks in advance

 Sven


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


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




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


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



RE: Problems with tables and templates

2004-08-26 Thread Chris Pratt
How about something like this:

xsl:template match=theme
  table border=0
tr
  td colspan=3xsl:value-of select=name//td
/tr
xsl:apply-templates select=test/
  /table
/xsl:template

xsl:template match=test
  tr
tdxsl:apply-templates select=name//td
tdxsl:apply-templates select=status//td
tdxsl:apply-templates select=prio//td
  /tr
/xsl:template

That's obviously an HTML example, but it should be easy to change to FO table 
layout if you need.
  (*Chris*)


Original Message ---
Hi,

i have a table with 3 columns.

Example:

Table:  TestStatus  Priority
Theme1
Test1   ok  1
Test2   fail1

Theme2
Test1   ok  3
Test2   ok  2


The xml file:
root
   theme
name/name
test
name/name
status/status
prio/prio
/test
   /theme
/root



Now my problem is the following:

How can i achieve that the table will be filled up correctly?

In my xsl-fo file i have a template that matches theme and calls template 
matching test.

So looks the table after filling it up with my solution:



Table:  TestStatus  Priority

Test1   
ok  1
Test2   
fail1


Test1
ok  3
Test2   
ok  2


Thanks in advance

Sven


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


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



Re: Configuration Details

2004-08-23 Thread Chris Bowditch
Ryan Eldridge wrote:
I apologize if this is document somewhere but I was unable to locate it.
I need to be able to turn on and off the Flate and ascii-85 filters.  as 
far as i understand this should be achieved via the userconfig.xml file 
imported using the Options method.  I do not know the correct values to 
put in this file to turn these off.
This was answered a while ago. See the archives:
http://marc.theaimsgroup.com/?l=fop-userm=108239654802077w=2
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: problem with Image loading with Servlet

2004-08-23 Thread Chris Pratt
Try:
fo:external-graphics
src=url(http://localhost:7001/crisp/servlet/BinaryServlet/QueryId=55100amp;SequenceNo=1amp;MimeType=jpeg)

  (*Chris*)


Original Message ---
Hi...
  Can anyone help me? I m trying to load the image
(jpeg) in pdf using dynamic url of servlet.But somehow
FOP ignores the URL. It doesn't show any url.
I m using

fo:external-graphics
src=http://localhost:7001/crisp/servlet/BinaryServlet/QueryId=55100amp;SequenceNo=1amp;MimeType=jpeg

Please help me.

Heli.




___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

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

/textarea/td
  /tr
  tr
   td valign=topAttachments:/td
   td
   /td
  /tr
  /table
pCopy the message into the Sent Items folder: input type=checkbox 
checked name=copytosent/p
/form
/td
/tr
/table
hr
pArGoSoft Mail Server Pro for WinNT/2000/XP, Version 1.8 (1.8.6.0)/p
pa href=http://www.argosoft.com;© ArGo Software Design, 1999-2004/a/p
/body
/html


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



RE: Question about fo:leader

2004-08-23 Thread Chris Pratt
Looks like what you want is a two column table.
  (*Chris*)

Original Message ---
Hello.  I had a question about using leaders in FO.  I'm trying to
generate a PDF document that contains a department name followed by dots
and finally a phone number.

Here is currently what I have to create a line with the format:

fo:block text-align-last=justify
This is a test department to test wrapping
fo:leader leader-pattern=dots/
(123) 457-2342 Ext. 123
/fo:block

Ideally...I would like the PDF to display something like the following:

This is a test department to test
wrapping..(123) 457-2342 Ext. 123

I have attached a PDF document to show how it currently is displayed.

Is the attached format a result of FOP's implementation of leader, or is
there something I'm missing from the FO snippet?

I'm currently using FOP version 0.20.5

Thanks for your suggestions!

-Robby Abney


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



RE: problem with Image loading with Servlet

2004-08-23 Thread Chris Pratt
I'm not sure how the internals of the fop system work, but on some systems you 
can trick them into recognising the link as an image by appending something 
like dummy=file.jpg to the url.  When the processor see's the .jpg at the end 
of the url, it assumes the proper content type for the document.  Also make 
sure the servlet is returning the proper content type.
  (*Chris*)

Original Message ---
Hi Chris,
   Thanks for your reply. but i tried this as well. it
didnt work..
heli
--- Chris Pratt [EMAIL PROTECTED] wrote:

 Try:
 fo:external-graphics

src=url(http://localhost:7001/crisp/servlet/BinaryServlet/QueryId=55100SequenceNo=1MimeType=jpeg)

   (*Chris*)


 Original Message ---
 Hi...
   Can anyone help me? I m trying to load the image
 (jpeg) in pdf using dynamic url of servlet.But
 somehow
 FOP ignores the URL. It doesn't show any url.
 I m using

 fo:external-graphics

src=http://localhost:7001/crisp/servlet/BinaryServlet/QueryId=55100SequenceNo=1MimeType=jpeg

 Please help me.

 Heli.



   
 ___
 Do you Yahoo!?
 Win 1 of 4,000 free domain names from Yahoo! Enter
 now.
 http://promotions.yahoo.com/goldrush


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




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



Re: FOP 1.0 Dev.

2004-08-20 Thread Chris Bowditch
Sun, Tiffany (Tong) wrote:
Chris,
Thanks for your reply. Is there a planned release date for FOP-1.0? The 
software I'm working on will be in Production early next year, guess 
I'll have to do all my modifications based on FOP-0.20.5.
There are no deadlines in the Open Source world. Volunteers make code 
contributions when they please.

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


Re: FOP 1.0 Dev.

2004-08-19 Thread Chris Bowditch
Sun, Tiffany (Tong) wrote:
Hi,
I'm currently using FOP 0.20.5, but when I downloaded FOP1.0 Dev from 
CVS in hope it will fix some of my problems, I ran into more problems:
Yes, you will. The 1.0 Dev branch isnt ready yet.
First, I have to change most of the method calls for it to compile, then 
I found that some of the old EPS files are not working using the newly 
built FOP, it just hangs there and the generated PS file size keeps 
growing into a few MB, before it's around 30KB; The block-container 
position also doesn't work, I defined left, top, width and height, 
position=absolute, which worked in 0.20.5.
block-containers is on the FOP 1.0 TODO list before we can do a release. 
See:
http://xml.apache.org/fop/design/layout.html#status-todo
At this point I'm confused: if I want to modify some features, should I 
start to work on the released version or the newest 1.0dev? Please advise.
Any patches you submit to 0.20.5 are unlikely to be committed to the code 
base. Any work you do on FOP 1.0 dev will be highly welcome. However, as 
you've already noticed the development branch is not yet up to 0.20.5 so we 
need to do a lot more work on core features before it is ready for tweaking

The reason for this situation is that FOP 1.0 dev is not just an evolution of 
FOP 0.20.5, but was a ground up re-write. This was necessary because the 
structure of the code in 0.20.5 did not allow for key features such as keep-* 
properties.

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


Re: Where to find FOP 1.0 Dev

2004-08-19 Thread Chris Bowditch
Dennis Myrén wrote:
Hi.
Where can I find and download the FOP 1.0 Dev sources?
You will need to install a CVS client and connect anonymously to the Apache 
CVS server. it is all described on the website:

http://xml.apache.org/fop/dev/index.html#dev-code
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Table-of-Contents Headlines

2004-08-19 Thread Chris Bowditch
Johannes Franz wrote:
Hi is it possible to declare certain sentences as a headline and 
generate autmatically a table-of-contents in JFOR/FOP?
Perhaps somebody could send me an example.
No this is not possible in general within XSL-FO. You can do something in 
XSLT. Using markers and page-number-citation its possible create a table of 
Contents at back of document, but not at the front :-(

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


Re: Problem with table and borders.

2004-08-19 Thread Chris Bowditch
Johan Andersson wrote:
Hi all,
I'm using FOP 0.20.5 to create a PDF document. The document contains a 
table with 5 columns and varying number of rows. There is a line drawn 
around the table using the border-* properties of the cells at the edge 
of the table. The line drawn however appears to contain gaps which lies 
just between two neighboring cells. Does anybody know what cause this? 
I've attached a small image which illustrates the problem.
If your aim to draw border round whole table, you should not place borders on 
the individual cells. Instead set border on table element, e.g.

fo:table border-style=solid border-width=1pt border-color=rgb(114, 114, 
114)
!-- table contents --
/fo:table

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


Re: Having trouble removing linefeeds

2004-08-18 Thread Chris Bowditch
Glen Mazza wrote:
snip/
fo:table-cell
  fo:block text-align=end 
 System Codes 
 fo:retrieve-marker
retrieve-position=first-starting-within-page
retrieve-boundary=page retrieve-class-name=code/
 fo:block-/fo:block
Glen, I think this is your problem. Try placing the minus inside a fo:inline 
instead of a fo:block.

 fo:retrieve-marker
retrieve-position=last-ending-within-page
retrieve-boundary=page retrieve-class-name=code/
  /fo:block
/fo:table-cell
snip/
Question:  What is the combination of
white-space-collapse, white-space-treatment, and/or
linefeed-treatment I need to use, and where should I
specify them in the snippet above, in order to get the
output as desired?
linefeeds are discarded by default, playing with these properties will only 
introduce extra linefeeds into your output.

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


Re: image not included in my pdf under web-project

2004-08-18 Thread Chris Pratt
Or you can set the base directory for FOP to be the root of your Servlet 
Context by calling:

Configuration.put(baseDir,getServletContext().getRealPath(/));

I use this code in the Servlet.init() of my controller since it only needs to 
be called once.
  (*Chris*)

Original Message ---
vivek gupta wrote:
 I am unsing XML and XSLT for creating my fo file
 in my web project. But I am unable to include my
 image. Please let me know how I need to write mey
 path.
 src=url(../../../web/image/A.jpg)

A relative URL is usually resolved against the CWD of the servlet
container process, and not interpreted as relative to the webapp
root.
Either use an absolute file path, a proper relative path (which
depends on your servlet container and probably also on how it
is started), or use a full http URL and retrieve the image through
another servlet (protect the URL against non-local access if
necessary).

J.Pietschmann

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


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



Re: different input type to org.apache.fop.apps.XSLTInputHandler;

2004-08-17 Thread Chris Bowditch
Andrew S Moy wrote:
The constructor of org.apache.fop.apps.XSLTInputHandler takes the XML file
and XSL file.  I was wondering if anyone knows other XSLTInputHandler which
takes some source of input stream objects.  This way we don't have to write
the data to a physical file and knowing that it will be read again from the
InputHandler.  Reading/writing from/to a physically media is always slower
that from/to the system memory.
In FOP 0.20.5 XSLInputHandler has three public constructors:
public XSLTInputHandler(File xmlfile, File xsltfile)
public XSLTInputHandler(String xmlURL, String xsltURL)
public XSLTInputHandler(InputSource xmlSource, InputSource xsltSource)
either of the the later two can be used to process data that is already in 
memory, without the need to write to disk.

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


Re: different input type to org.apache.fop.apps.XSLTInputHandler;

2004-08-17 Thread Chris Bowditch
Chris Bowditch wrote:
In FOP 0.20.5 XSLInputHandler has three public constructors:
public XSLTInputHandler(File xmlfile, File xsltfile)
public XSLTInputHandler(String xmlURL, String xsltURL)
public XSLTInputHandler(InputSource xmlSource, InputSource xsltSource)
either of the the later two can be used to process data that is already 
in memory, without the need to write to disk.
Oops, didnt look closely enough. Its only the last one that can be used for 
reading in memory data. e.g.

ByteArrayInputStream xmlin = new ByteArrayInputStream(xml.getBytes());
ByteArrayInputStream xslin = new ByteArrayInputStream(xsl.getBytes());
XSLTInputHandler transform = new XSLTInputHandler(xmlin, xslin);
Hope this makes sense,
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: different input type to org.apache.fop.apps.XSLTInputHandler;

2004-08-17 Thread Chris Bowditch
Chris Bowditch wrote:
Sorry about all the noise, but I got it wrong again.
ByteArrayInputStream xmlin = new ByteArrayInputStream(xml.getBytes());
ByteArrayInputStream xslin = new ByteArrayInputStream(xsl.getBytes());
XSLTInputHandler transform = new XSLTInputHandler(xmlin, xslin);
Correct version is:
ByteArrayInputStream xmlin = new ByteArrayInputStream(xml.getBytes());
ByteArrayInputStream xslin = new ByteArrayInputStream(xsl.getBytes());
XSLTInputHandler transform = new XSLTInputHandler(new InputSource(xmlin), new 
InputSource(xslin));

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


Re: fo:table-header - between 2 pages

2004-08-16 Thread Chris Bowditch
Philippe PITHON wrote:
snip/
For example if a table (and fo:table-header) must start in the medium of 
the page

And FOP thinks that the contents of the fo:table-header will not have 
enough place, there will be a page break and the fo:table-header will be 
written at the beginning of the next page

 

its normal ?
Sounds normal to me. Would you prefer the header to be split across pages? 
That wouldnt make sense to me at all?

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


RE: How to tell Driver to open acrobat in a new IE?

2004-08-12 Thread Chris Pratt
The Driver has no control over where the browser shows the output.  What you 
have to do is open a new window and have it request the PDF file.  Adding 
target=_new to the link that creates the pdf is probably all that you need.
  (*Chris*)

Original Message ---
I am parsing my XML file through FOP parser and then telling the driver to
render it as PDF. The process is initiated by clicking on a button on IE.
What happens is the current IE instance opens the acrobat and displays the
PDF it.

The users have to hit back button to get back to the application.

My question is how do i tell the Driver to open the PDF in a separate
instance of acrobat (within a new IE instance) or just by  acrobat
independently.

Thanks
Manoj

My sample code is below

 public void renderXML(XSLTInputHandler input,
  HttpServletResponse response) throws ServletException
{
try {
ByteArrayOutputStream out = new ByteArrayOutputStream();
response.setContentType(CONTENT_TYPE);
Driver driver = new Driver();
String OS = System.getProperty(os.name);
driver.setLogger(log);
driver.setErrorDump(true);
driver.setRenderer(Driver.RENDER_PDF);
driver.setOutputStream(out);
driver.render(input.getParser(), input.getInputSource());

byte[] content = out.toByteArray();
response.setContentLength(content.length);
response.getOutputStream().write(content);
response.getOutputStream().flush();
} catch (Exception ex) {
throw new ServletException(ex);
}
 }



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


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



Re: Java App using FOP : How to communicate on the number of pages generated ?

2004-08-10 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
snip/
Is there a better way than using a specific logger ?
Implementing a logger class that looks for the
[INFO] [1]
[INFO] [2]
etc
messages is the only way to report progress to the user. There is no way to 
know the total page count before hand either.

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


Re: generating PDFs in non-english

2004-08-09 Thread Chris Bowditch
Nuno Lopes wrote:
Hello,
I was trying to make some PDFs of the PHP manual when I got some problems.
The manual is written in docbook and then I have a XSL sheet. I can generate
the manual in english, portuguese, french,... but not in russian.
Firstly, please post user related questions to the user list. The Development 
list is for code related issues. The developers are all subscribed to the user 
list anyway.

When I open the file I only get #. What am I doing wrong?
I've tried using FOP directly with XML, and with a FOP file generated by
xsltproc, but noone works.
This means that the font-family you are using does not have any glyphs for the 
russian code points. It is a FAQ, with more details on the web site:

http://xml.apache.org/fop/faq.html#pdf-characters
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Enhancing FOP command line speed

2004-08-09 Thread Chris Bowditch
Markus wrote:
snip/
so we would like to see a very fast pdf generation. our environment is 
perl on linux. whicht tipps to speed up generation? so far it seems to 
make not much differnce wheter i call fop

fop -xsl ticket.xsl -xml ticket.xml -c myconfig.xml -pdf ticket.pdf
or first produce the fo-file with xalan and then do
fop -fo ticket.fo -pdf ticket.pdf
so it seems that the xslt-transformation is not time consuming, it is 
only one page of pdf, so it should be no problem...
Thats right, the xslt will only take a small percentage of processing time 
compared with the XSL-FO formatting process. Calling FOP from command line 
each time means there is the overhead of starting the Java JVM for each 
ticket. The way around this is to write a Java program which can receive 
requests via some mechanism, e.g. JMS Queues, watching disk files, database 
tables, etc etc. And then change your perl program to send a request using 
your choosen communication method. The details of linking Java to Perl are 
well off topic for this discussion group, but you should find once completed 
that the average ticket generation time is reduced by a good margin.

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


Re: throttle the quality of images

2004-08-04 Thread Chris Bowditch
Johannes Franz wrote:
Hi there,
 
i would like to throttle the quality of images, because the created pdf 
grows to big. Is there a formatting objects command to do this? Or is 
the only solution to throttle the quality of the images before converting?
There is no XSL-FO property to reduce the amount of data in an image. You will 
need to do this processing before presenting the image to FOP

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


Re: Feature Request / Bug Report (XEP vs. FOP)

2004-08-02 Thread Chris Bowditch
Alexander Lohse wrote:
First off, please do not mail FOP committers directly. Use the mailing list, 
we all monitor the user list.

Hi,
I have a urgent need to get a certain rendering done, where FOP fails 
badly.
It is about block-containers/columns and fixed heights.
It is a very simple xsl:fo.
I sent along a complete test case together with two PDFs: one from XEP, 
which is exactly as expected and one from FOP.
Can anyone please take a look at these files?
And tell me how big the effort would be to make FOP render this 
correctly, if stuff like this is in progress, and maybe if there is 
anything I could do to come closer to what I need.
Ive looked at your XSL-FO and the reason content does not flow into the second 
column is because you've used block-containers. block-containers are not 
properly implemented in FOP 0.20.5. However, maybe you dont need to use 
block-containers. In your sample, it looks like you are using block-containers 
to fix the height of a paragraph. Well, you can achieve the same affect using 
a table, and the good news is tables will flow onto the second column. To fix 
the height of a row in a table, just specify height on the fo:table-row element.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Absolute path of font file ...

2004-07-30 Thread Chris Bowditch
Varadharajan Sethuraman wrote:
Thank you very much ...
 
is It possible to refer metrics-file attribute for one directory, and 
embed-file attribute for another directory?
 
for example  ...
I have metrics xml file in c:\my\metrics-base\dir\fontmetrics1.xml and 
ttf file in c:\my\embed-base\dir\arial.ttf
Yes this is possible. Suppose the fontBaseDir is c:\my\metrics-base\dir then 
font entry in userconfig.xml would be:

font metrics-file=fontmetrics1.xml kerning=yes 
embed-file=..\embed-base\dir\arial.ttf
font-triplet name=Arial style=normal weight=normal/
/font

So every path to do with fonts is resolved *relative* to the fontBaseDir 
setting.
snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  1   2   3   4   5   6   >