Re: FOP-Support

2001-06-20 Thread FOP-Support

The patch was sent to Arved 2 days ago, hopefully he's pacthing it, I'll
send u/ anyone else interested the src seperately too

seshadri

- Original Message -
From: Chetan Vig [EMAIL PROTECTED]
To: fop [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 10:11 PM
Subject: FOP-Support


 Hi Seshadri,

 Is the out of memory patch part of the FOP 0.19 or it has to be
 seperately downloaded from minfiresolutions website.

 Please let me know.

 Thanks,

 -Chetan


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




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




Re: SVG to PDf - images

2001-06-20 Thread Keiron Liddle


I tried you svg as pdf, png and the batik browser and all of them looked
very similar.
So I don't know what you mean by ugly colors.

Maybe there is something specific to your environment.

On Tue, 19 Jun 2001 21:41:55 Brigette Muller wrote:
 Hi all,
 
   Attached is a .SVG.
 
   When II use the PDF transcoder from the FOP 0.19 batik.jar to
 create a PDF, the image in the PDF (Karate kick) has ugly colors... 
 
   The original image is a JPEG which is drawn on an SVGGraphics2D.
 
   You can see in the .svg, the image looks good. Not the same in
 the .pdf.
 
 
   I know images in PDF are tricky (thats why I haven't done the
 code myself) - is this a not yet for FOP/Batik?


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




RE: Printing PDF using FOP...

2001-06-20 Thread Denis Kranjcec

I'm printing with acrobat reader 4.0

here is print.bat that I call from my application
acrobat /t C:\Java\xml-fop\pdf\file.pdf \\K2\HP LaserJet 1100 (MS) HP
LaserJet 1100 (MS) \\K2\HP LaserJet 1100 (MS)

This is documentation from adobe:

How Do I Use Command Lines with Acrobat and Acrobat Reader on
Windows?
These are unsupported command lines, but have worked for some developers.
There
is no documentation for these commands other than what is listed below. You
can
display and print a PDF file using command lines with Acrobat and Acrobat
Reader.
AcroRd32.exe filename - Executes the Reader and displays a file.
Other options for the command line are:
AcroRd32.exe /p filename - Executes the Reader and prints a file.
AcroRd32.exe /t path printername drivername portname - Initiates
Acrobat Reader, prints a file while suppressing the Acrobat print dialog
box, then
terminates Reader.
The four parameters of the /t option evaluate to path, printername,
drivername, and portname (all strings).
printername - The name of your printer.
drivername -Your printer driver's name. Whatever appears in the Driver Used
box
when you view your printer's properties.
portname - The printer's port. portname cannot contain any / characters;
if it
does, output is routed to the default port for that printer.
If using Acrobat, substitute Acrobat.exe in place of AcroRd32.exe in the
command lines.
option meaning
/n Launch a separate instance of the Acrobat application, even if one is
currently open.
/s Open Acrobat, suppressing the splash screen.
/o Open Acrobat, suppressing the open file dialog.
/h Open Acrobat in hidden mode.


I hope this helps,

Denis

-Original Message-
From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 16, 2001 7:10 AM
To: [EMAIL PROTECTED]
Subject: Re: Printing PDF using FOP...


I downloaded a fresh set of code from the fop cvs and did find the
PCLRenderer
and the other latest source code. But as far I could make out
PCLRenderer does
not print to a printer instead it prints to a file in pcl format. Now in
case of
pcl as well I do have to send the output to the printer. So my previous
problem
remains.
I am actually not getting how can I send the output to the printer. I
think if
somebody can
provide with a code fragment then it would be of great help.

Thanks,
Hitesh




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



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




Re: Re: problem running FOP with servlet - (code gets executed multiple times)urgent

2001-06-20 Thread Raju Dave

Hi Kumar,

Try enclosed fo file..

Problem was with nesting in tables and please specify table-column as these are 
presently required by FOP.

Raju

- Original Message --
f0 fo [EMAIL PROTECTED] wrote:
To:[EMAIL PROTECTED]
From:f0 fo [EMAIL PROTECTED]
Date:Tue, 19 Jun 2001 09:00:28 -0700 (PDT)
Subject:Re: problem running FOP with servlet - (code gets executed multiple 
times)urgent

hi Raju!!
  Thanks for u'r reply
I'm trying to create the fo file at run time using an
xml  xsl file. The template of the fo file generated
attached to this file,

thanks,
Kumar



--- Raju Dave [EMAIL PROTECTED] wrote:
 
 Can u sent ur code file,
 
 With servlets fop works fine.. maybe problem with
 specifing page sequence?
 
 Raju 
 
 - Original Message --
 f0 fo [EMAIL PROTECTED] wrote:
 To:[EMAIL PROTECTED]
 From:f0 fo [EMAIL PROTECTED]
 Date:Tue, 19 Jun 2001 07:00:23 -0700 (PDT)
 Subject:problem running FOP with servlet - (code
 gets executed multiple times)urgent
 
 hi all!!
   I'm trying to create a PDF using FOP.jar 0.17
 (version), The code works great as a application,
 but
 when  I tried running it as servlet the code tries
 to
 execute multiple times..but I'm able to get the pdf
 but the code gets executed multiple time.The output
 in
 the console is
 ***
 Tue Jun 19 08:56:24 CDT 2001:I
 ServletContext-General PDFGenerator: init
 using renderer org.apache.fop.render.pdf.PDFRenderer
 using element mapping
 org.apache.fop.fo.StandardElementMapping
 using element mapping
 org.apache.fop.svg.SVGElementMapping
 using element mapping
 org.apache.fop.extensions.ExtensionElementMapping
 using property list mapping
 org.apache.fop.fo.StandardPropertyListMapping
 using property list mapping
 org.apache.fop.svg.SVGPropertyListMapping
 using property list mapping

org.apache.fop.extensions.ExtensionPropertyListMapping
 building formatting object tree
 setting up fonts
 formatting FOs into areas
  [1]
 rendering areas to PDF
 writing out PDF
 using renderer org.apache.fop.render.pdf.PDFRenderer
 using element mapping
 org.apache.fop.fo.StandardElementMapping
 using element mapping
 org.apache.fop.svg.SVGElementMapping
 using element mapping
 org.apache.fop.extensions.ExtensionElementMapping
 using property list mapping
 org.apache.fop.fo.StandardPropertyListMapping
 using property list mapping
 org.apache.fop.svg.SVGPropertyListMapping
 using property list mapping

org.apache.fop.extensions.ExtensionPropertyListMapping
 building formatting object tree
 setting up fonts
 formatting FOs into areas
  [1]
 rendering areas to PDF
 writing out PDF
 using renderer org.apache.fop.render.pdf.PDFRenderer
 using element mapping
 org.apache.fop.fo.StandardElementMapping
 using element mapping
 org.apache.fop.svg.SVGElementMapping
 using element mapping
 org.apache.fop.extensions.ExtensionElementMapping
 using property list mapping
 org.apache.fop.fo.StandardPropertyListMapping
 using property list mapping
 org.apache.fop.svg.SVGPropertyListMapping
 using property list mapping

org.apache.fop.extensions.ExtensionPropertyListMapping
 building formatting object tree
 setting up fonts
 formatting FOs into areas
  [1]
 rendering areas to PDF
 writing out PDF
 *
 I tried with FopServlet with fop0.18.jar also the
 same
 thing happens. I would appreciate any suggestions on
 this.
 
 Thanks,
 Kumar
 
 
 
 __
 Do You Yahoo!?
 Spot the hottest trends in music, movies, and more.
 http://buzz.yahoo.com/
 

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

_
 Buy Lagaan  Yaadein music for 30% less.
 Avail this special offer at

http://shopping.rediff.com/shopping/music/offerrediffmailer.htm
 
 
 
 
 

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


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/

_
Buy Lagaan  Yaadein music for 30% less.
Avail this special offer at 
http://shopping.rediff.com/shopping/music/offerrediffmailer.htm 



?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master margin-right=.5cm 
		margin-left=.5cm margin-bottom=1cm margin-top=0.5cm 
		master-name=first
	fo:region-before extent=3.5cm margin-top=0.8cm/
	fo:region-body margin-bottom=2cm margin-top=3.8cm/
	fo:region-after extent=1cm margin-top=0.5cm/
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-name=first
fo:static-content flow-name=xsl-region-after
	fo:block text-align=end 

Re: Printing PDF using FOP...

2001-06-20 Thread Hitesh Bagchi

thanks denis.
but when i try this from my application it is printing all junk characters.
Maybe my printer doesn't understand a PDF stream. It is a HP Laser Jet 6P/6MP
printer.

Thanks,
Hitesh

Denis Kranjcec wrote:

 I'm printing with acrobat reader 4.0

 here is print.bat that I call from my application
 acrobat /t C:\Java\xml-fop\pdf\file.pdf \\K2\HP LaserJet 1100 (MS) HP
 LaserJet 1100 (MS) \\K2\HP LaserJet 1100 (MS)

 This is documentation from adobe:

 How Do I Use Command Lines with Acrobat and Acrobat Reader on
 Windows?
 These are unsupported command lines, but have worked for some developers.
 There
 is no documentation for these commands other than what is listed below. You
 can
 display and print a PDF file using command lines with Acrobat and Acrobat
 Reader.
 AcroRd32.exe filename - Executes the Reader and displays a file.
 Other options for the command line are:
 AcroRd32.exe /p filename - Executes the Reader and prints a file.
 AcroRd32.exe /t path printername drivername portname - Initiates
 Acrobat Reader, prints a file while suppressing the Acrobat print dialog
 box, then
 terminates Reader.
 The four parameters of the /t option evaluate to path, printername,
 drivername, and portname (all strings).
 printername - The name of your printer.
 drivername -Your printer driver's name. Whatever appears in the Driver Used
 box
 when you view your printer's properties.
 portname - The printer's port. portname cannot contain any / characters;
 if it
 does, output is routed to the default port for that printer.
 If using Acrobat, substitute Acrobat.exe in place of AcroRd32.exe in the
 command lines.
 option meaning
 /n Launch a separate instance of the Acrobat application, even if one is
 currently open.
 /s Open Acrobat, suppressing the splash screen.
 /o Open Acrobat, suppressing the open file dialog.
 /h Open Acrobat in hidden mode.

 I hope this helps,

 Denis

 -Original Message-
 From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, June 16, 2001 7:10 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Printing PDF using FOP...

 I downloaded a fresh set of code from the fop cvs and did find the
 PCLRenderer
 and the other latest source code. But as far I could make out
 PCLRenderer does
 not print to a printer instead it prints to a file in pcl format. Now in
 case of
 pcl as well I do have to send the output to the printer. So my previous
 problem
 remains.
 I am actually not getting how can I send the output to the printer. I
 think if
 somebody can
 provide with a code fragment then it would be of great help.

 Thanks,
 Hitesh

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

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


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




RE: Printing PDF using FOP...

2001-06-20 Thread Denis Kranjcec

If you can print your pdf manually from reader then you should be able to
print it from application also.
Maybe you choose wrong driver when you run reader.

Denis

-Original Message-
From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 16, 2001 9:30 AM
To: [EMAIL PROTECTED]
Subject: Re: Printing PDF using FOP...


thanks denis.
but when i try this from my application it is printing all junk characters.
Maybe my printer doesn't understand a PDF stream. It is a HP Laser Jet
6P/6MP
printer.

Thanks,
Hitesh

Denis Kranjcec wrote:

 I'm printing with acrobat reader 4.0

 here is print.bat that I call from my application
 acrobat /t C:\Java\xml-fop\pdf\file.pdf \\K2\HP LaserJet 1100 (MS) HP
 LaserJet 1100 (MS) \\K2\HP LaserJet 1100 (MS)

 This is documentation from adobe:

 How Do I Use Command Lines with Acrobat and Acrobat Reader on
 Windows?
 These are unsupported command lines, but have worked for some developers.
 There
 is no documentation for these commands other than what is listed below.
You
 can
 display and print a PDF file using command lines with Acrobat and Acrobat
 Reader.
 AcroRd32.exe filename - Executes the Reader and displays a file.
 Other options for the command line are:
 AcroRd32.exe /p filename - Executes the Reader and prints a file.
 AcroRd32.exe /t path printername drivername portname - Initiates
 Acrobat Reader, prints a file while suppressing the Acrobat print dialog
 box, then
 terminates Reader.
 The four parameters of the /t option evaluate to path, printername,
 drivername, and portname (all strings).
 printername - The name of your printer.
 drivername -Your printer driver's name. Whatever appears in the Driver
Used
 box
 when you view your printer's properties.
 portname - The printer's port. portname cannot contain any / characters;
 if it
 does, output is routed to the default port for that printer.
 If using Acrobat, substitute Acrobat.exe in place of AcroRd32.exe in the
 command lines.
 option meaning
 /n Launch a separate instance of the Acrobat application, even if one is
 currently open.
 /s Open Acrobat, suppressing the splash screen.
 /o Open Acrobat, suppressing the open file dialog.
 /h Open Acrobat in hidden mode.

 I hope this helps,

 Denis

 -Original Message-
 From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, June 16, 2001 7:10 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Printing PDF using FOP...

 I downloaded a fresh set of code from the fop cvs and did find the
 PCLRenderer
 and the other latest source code. But as far I could make out
 PCLRenderer does
 not print to a printer instead it prints to a file in pcl format. Now in
 case of
 pcl as well I do have to send the output to the printer. So my previous
 problem
 remains.
 I am actually not getting how can I send the output to the printer. I
 think if
 somebody can
 provide with a code fragment then it would be of great help.

 Thanks,
 Hitesh

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

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


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



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




cvs commit: xml-fop/src/codegen elements.xsl

2001-06-20 Thread keiron

keiron  01/06/20 01:45:00

  Modified:src/codegen elements.xsl
  Log:
  some independance improvements
  
  Revision  ChangesPath
  1.3   +15 -7 xml-fop/src/codegen/elements.xsl
  
  Index: elements.xsl
  ===
  RCS file: /home/cvs/xml-fop/src/codegen/elements.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- elements.xsl  2001/05/17 07:44:19 1.2
  +++ elements.xsl  2001/06/20 08:44:58 1.3
  @@ -6,6 +6,10 @@
   
   xsl:output method=text /
   
  +xsl:variable name=prefixVal  
  +xsl:value-of select=//elements/@prefix/  
  +/xsl:variable  
  +
   xsl:template name=capfirst
 xsl:param name=str/
 xsl:variable name=lcletters select='abcdefghijklmnopqrstuvwxyz' /
  @@ -14,6 +18,14 @@
$lcletters, $ucletters), substring($str, 2))/
   /xsl:template
   
  +xsl:template name=capall
  +  xsl:param name=str/
  +  xsl:variable name=lcletters select='abcdefghijklmnopqrstuvwxyz' /
  +  xsl:variable name=ucletters select='ABCDEFGHIJKLMNOPQRSTUVWXYZ' /
  + xsl:value-of select=translate($str,
  +  $lcletters, $ucletters)/
  +/xsl:template
  +
   xsl:template name=makeClassName
 xsl:param name=propstr/
 xsl:choose
  @@ -77,21 +89,17 @@
 /xsl:choose
   /xsl:variable
   
  -redirect:write select=concat('@org/apache/fop@/svg/', $classname, '.java')
  -package org.apache.fop.svg;
  +redirect:write select=concat('@org/apache/fop@/{$prefixVal}/', $classname, 
'.java')
  +package org.apache.fop.xsl:value-of select=$prefixVal/;
   
   import org.apache.fop.fo.*;
   import org.apache.fop.layout.Area;
   import org.apache.fop.layout.FontState;
   import org.apache.fop.apps.FOPException;
   
  -import org.apache.batik.dom.svg.*;
  -
  -import org.w3c.dom.svg.SVGElement;
  -import org.w3c.dom.svg.SVGDocument;
   import org.w3c.dom.Element;
   
  -public class xsl:value-of select=$classname/ extends SVGObj {
  +public class xsl:value-of select=$classname/ extends xsl:call-template 
name=capallxsl:with-param name=str select=$prefixVal//xsl:call-templateObj {
   
   /**
* inner class for making xsl:apply-templates select=tagname/ objects.
  
  
  

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




cvs commit: xml-fop/src/org/apache/fop/svg XMLObj.java SVGObj.java

2001-06-20 Thread keiron

keiron  01/06/20 02:17:40

  Modified:src/org/apache/fop/svg SVGObj.java
  Added:   src/org/apache/fop/svg XMLObj.java
  Log:
  allows better for other xml data
  
  Revision  ChangesPath
  1.5   +4 -91 xml-fop/src/org/apache/fop/svg/SVGObj.java
  
  Index: SVGObj.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/SVGObj.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SVGObj.java   2001/06/13 16:06:21 1.4
  +++ SVGObj.java   2001/06/20 09:17:39 1.5
  @@ -1,4 +1,4 @@
  -/* $Id: SVGObj.java,v 1.4 2001/06/13 16:06:21 keiron Exp $
  +/* $Id: SVGObj.java,v 1.5 2001/06/20 09:17:39 keiron Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
  @@ -8,27 +8,14 @@
   
   // FOP
   import org.apache.fop.fo.*;
  -import org.apache.fop.layout.Area;
  -import org.apache.fop.layout.FontState;
  -import org.apache.fop.apps.FOPException;
  -import org.apache.fop.layout.LinkSet;
   
  -import org.apache.batik.dom.svg.*;
  -
  -import org.w3c.dom.svg.*;
  -import org.w3c.dom.*;
  -
  -import java.util.*;
  -
   /**
* Since SVG objects are not layed out then this class checks
* that this element is not being layed out inside some incorrect
* element.
*/
  -public abstract class SVGObj extends FObj {
  +public abstract class SVGObj extends XMLObj {
   
  -String tagName = ;
  -String[] props = {};
   /**
*
* @param parent the parent formatting object
  @@ -37,83 +24,9 @@
   public SVGObj(FObj parent, PropertyList propertyList) {
   super(parent, propertyList);
   }
  -
  -protected static Hashtable ns = new Hashtable();
  -
  -public void addGraphic(Document doc, Element parent) {
  -Element element = doc.createElementNS(http://www.w3.org/2000/svg;,
  -  tagName);
  -//Element element = doc.createElement(tagName);
  -for (int count = 0; count  props.length; count++) {
  -if (this.properties.get(props[count]) != null) {
  -String rf = this.properties.get(props[count]).getString();
  -if (rf != null) {
  -if (props[count].indexOf(:) == -1) {
  -element.setAttribute(props[count], rf);
  -} else {
  -String pref = props[count].substring(0,
  - 
props[count].indexOf(:));
  -if (pref.equals(xmlns)) {
  -ns.put(props[count].substring(
  - props[count].indexOf(:) + 1), rf);
  -}
  -ns.put(xlink, http://www.w3.org/1999/xlink;);
  -element.setAttributeNS((String) ns.get(pref),
  -   props[count], rf);
  -}
  -}
  -}
  -}
  -parent.appendChild(element);
  -int numChildren = this.children.size();
  -for (int i = 0; i  numChildren; i++) {
  -Object child = children.elementAt(i);
  -if (child instanceof SVGObj) {
  -((SVGObj) child).addGraphic(doc, element);
  -} else if (child instanceof String) {
  -org.w3c.dom.Text text = doc.createTextNode((String) child);
  -element.appendChild(text);
  -}
  -}
  -}
  -
  -/**
  - * layout this formatting object.
  - *
  - * @param area the area to layout the object into
  - * @return the status of the layout
  - */
  -public Status layout(Area area) throws FOPException {
  -/* generate a warning */
  -System.err.println(WARNING:  + this.name +  outside svg:svg);
  -
  -/* return status */
  -return new Status(Status.OK);
  -}
  -
  -/**
  - * These method overrides prevent problems with the different types.
  - */
  -public void setIsInTableCell() {
  -}
  -
  -public void forceStartOffset(int offset) {
  -}
  -
  -public void forceWidth(int width) {
  -}
  -
  -public void resetMarker() {
  -}
  -
  -public void setLinkSet(LinkSet linkSet) {
  -}
  -
  -public Vector getMarkerSnapshot(Vector snapshot) {
  -return snapshot;
  -}
   
  -public void rollback(Vector snapshot) {
  +public String getNameSpace() {
  +return http://www.w3.org/2000/svg;;
   }
   }
   
  
  
  
  1.1  xml-fop/src/org/apache/fop/svg/XMLObj.java
  
  Index: XMLObj.java
  ===
  /* $Id: 

A line in white

2001-06-20 Thread Braniganz

Hi,

I would to know what is the tag that it does what br does in HTML, go to
the next line.

Thanks


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




RE: A line in white

2001-06-20 Thread GALLO Jean-Claude

Did you try fo:block/

-Message d'origine-
De: Braniganz [mailto:[EMAIL PROTECTED]]
Date: 20 June 2000 11:32
À: fop-dev
Objet: A line in white


Hi,

I would to know what is the tag that it does what br does in HTML, go to
the next line.

Thanks


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

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




RE: hyperlink

2001-06-20 Thread GALLO Jean-Claude

try link 
xsl:variable name=URL
 ... compute the mail address ...
/xsl:variable
fo:basic-link external-destination=mailto:{$URL};
 ... compute the visible text of the link
/fo:basic-link


bye


-Message d'origine-
De: Frédéric Jacquet [mailto:[EMAIL PROTECTED]]
Date: 19 June 2001 22:29
À: Fop-Dev
Objet: hyperlink


Is it possible to specify in fo to create mailto or http hyperlink like in
acrobat ???

Thanks in advance


Fred


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

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




problems with text in table-cells

2001-06-20 Thread Greiner, Andrea

Hello,

I've got a new Version of fop two weeks ago. And I'm really happy, that
page-breaks don't split tables anymore (using
keep-with-next.within-page=always). 

BUT Now I have the problem, that text which is longer than table-cell-width
covers neighbour-cells. There are no more linebreaks into a table-cell as in
older versions. What can I do?
Hoping for an answer

Andrea



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




FOP - arbitrary page break

2001-06-20 Thread Williamson, James
Title: FOP - arbitrary page break





 policy.xsl 
Hi all, 


Just wondered if anyone has encountered a similar problem. I'm using FOP 0.18.1 on a W2K machine and am running into serious difficulty (getting absolutely infuriated) when it comes to page breaks; I've using a nested table within a table to organise the document structure and FOP keeps putting in a page break about 2/3's of the way down the page. I just can't work out why, is it a bug or (more likely) my gross incompetence?

I've tried absolutely everything, although am pretty sure it's related to multiple fo:blocks within a fo:table-cell element. I've attached the file if anyone's interested in helping me keep my sanity.

Regards, 


James Williamson




**
This e-mail (including any documents which may accompany it) contains
information which is confidential and may also be privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s) please note that any form of
distribution, copying or use of this e-mail or the information in it
or attached to it is strictly prohibited and may be unlawful.
If you have received this e-mail in error please notify us immediately
by e-mail to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 and
delete the e-mail.
Please advise immediately if you or your employer do not consent to
Internet E-Mail for messages of this type.
Information or opinions in this message that do not relate to the
business of Windsor plc and/or subsidiary and/or associated companies
shall be treated as neither given or endorsed by it.
**

 policy.xsl

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


AW: FOP - arbitrary page break

2001-06-20 Thread Greiner, Andrea
Title: FOP - arbitrary page break



Hello,

I have 
had the same problem. Downloading a newer cvs-file I got rid of this problem. 
Now there are others...

Andrea 
Greiner

  -Ursprüngliche Nachricht-Von: Williamson, James 
  [mailto:[EMAIL PROTECTED]]Gesendet: Mittwoch, 20. Juni 
  2001 12:28An: [EMAIL PROTECTED]Betreff: FOP - 
  arbitrary page break
  policy.xsl 
  Hi all, 
  Just wondered if anyone has encountered a similar 
  problem. I'm using FOP 0.18.1 on a W2K machine and am running into serious 
  difficulty (getting absolutely infuriated) when it comes to page breaks; I've 
  using a nested table within a table to organise the document structure and FOP 
  keeps putting in a page break about 2/3's of the way down the page. I just 
  can't work out why, is it a bug or (more likely) my gross 
  incompetence?
  I've tried absolutely everything, although am 
  pretty sure it's related to multiple fo:blocks within a 
  fo:table-cell element. I've attached the file if anyone's interested 
  in helping me keep my sanity.
  Regards, 
  James Williamson **This 
  e-mail (including any documents which may accompany it) 
  containsinformation which is confidential and may also be 
  privileged.It is for the exclusive use of the intended recipient(s).If 
  you are not the intended recipient(s) please note that any form 
  ofdistribution, copying or use of this e-mail or the information in 
  itor attached to it is strictly prohibited and may be unlawful.If you 
  have received this e-mail in error please notify us immediatelyby e-mail 
  to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 anddelete the 
  e-mail.Please advise immediately if you or your employer do not consent 
  toInternet E-Mail for messages of this type.Information or opinions in 
  this message that do not relate to thebusiness of Windsor plc and/or 
  subsidiary and/or associated companiesshall be treated as neither given or 
  endorsed by 
  it.**


RE: FOP - arbitrary page break

2001-06-20 Thread Williamson, James
Title: FOP - arbitrary page break



Andrea, 

I 
can't thank you enough, works fine now. 

Regards, 

James 
Williamson

  -Original Message-From: Greiner, Andrea 
  [mailto:[EMAIL PROTECTED]]Sent: 20 June 2001 
  11:44To: '[EMAIL PROTECTED]'Subject: AW: FOP -
  arbitrary page break
  Hello,
  
  I 
  have had the same problem. Downloading a newer cvs-file I got rid of this
  problem. Now there are others...
  
  Andrea Greiner
  
-Ursprüngliche Nachricht-Von: Williamson, James 
[mailto:[EMAIL PROTECTED]]Gesendet: Mittwoch, 20. 
Juni 2001 12:28An: [EMAIL PROTECTED]Betreff: FOP 
- arbitrary page break
policy.xsl 
Hi all, 
Just wondered if anyone has encountered a similar 
problem. I'm using FOP 0.18.1 on a W2K machine and am running into serious 
difficulty (getting absolutely infuriated) when it comes to page breaks; 
I've using a nested table within a table to organise the document structure 
and FOP keeps putting in a page break about 2/3's of the way down the page. 
I just can't work out why, is it a bug or (more likely) my gross 
incompetence?
I've tried absolutely everything, although am 
pretty sure it's related to multiple fo:blocks within a 
fo:table-cell element. I've attached the file if anyone's interested 
in helping me keep my sanity.
Regards, 
James Williamson **This 
e-mail (including any documents which may accompany it) 
containsinformation which is confidential and may also be 
privileged.It is for the exclusive use of the intended 
recipient(s).If you are not the intended recipient(s) please note that 
any form ofdistribution, copying or use of this e-mail or the 
information in itor attached to it is strictly prohibited and may be 
unlawful.If you have received this e-mail in error please notify us
immediatelyby e-mail to [EMAIL PROTECTED] or telephone +44 (0)207 940 
1200 anddelete the e-mail.Please advise immediately if you or your 
employer do not consent toInternet E-Mail for messages of this 
type.Information or opinions in this message that do not relate to
thebusiness of Windsor plc and/or subsidiary and/or associated 
companiesshall be treated as neither given or endorsed by 
it.**

**
This e-mail (including any documents which may accompany it) contains
information which is confidential and may also be privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s) please note that any form of
distribution, copying or use of this e-mail or the information in it
or attached to it is strictly prohibited and may be unlawful.
If you have received this e-mail in error please notify us immediately
by e-mail to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 and
delete the e-mail.
Please advise immediately if you or your employer do not consent to
Internet E-Mail for messages of this type.
Information or opinions in this message that do not relate to the
business of Windsor plc and/or subsidiary and/or associated companies
shall be treated as neither given or endorsed by it.
**



Re: page-sequence is missing an sequence-specification Still inwont help

2001-06-20 Thread Weiqi Gao

On 19 Jun 2001 23:04:21 -0600, peti ban wrote:
 
 I have used both the help of John and Weiqi, but it gives me the
 same error of page-sequence is missing an sequence-specification
 as I stated in my first mail.

Peti,

I saved the .fo file you posted at the beginning of this thread, and run
it through Fop.  And here's all the errors I encountered:

==Session==Session==Session==
[weiqi@gao-2001 weiqi]$ fop -fo .fo -pdf .pdf
FOP 0.19.0-CVS
using SAX parser org.apache.xerces.parsers.SAXParser
building formatting object tree
WARNING: A 'flow-name' is required for fo:flow. This constraint will be
enforced
 in future versions of FOP
WARNING: Unknown formatting object ^apply-templates
setting up fonts
formatting FOs into areas
 [1WARNING: page-number outside block area
]
rendering areas to PDF
writing out PDF
[weiqi@gao-2001 weiqi]$ vi .fo
[weiqi@gao-2001 weiqi]$ fop -fo .fo -pdf .pdf
FOP 0.19.0-CVS
using SAX parser org.apache.xerces.parsers.SAXParser
building formatting object tree
WARNING: Unknown formatting object ^apply-templates
setting up fonts
formatting FOs into areas
 [1WARNING: page-number outside block area
]
rendering areas to PDF
writing out PDF
[weiqi@gao-2001 weiqi]$ vi .fo
[weiqi@gao-2001 weiqi]$ fop -fo .fo -pdf .pdf
FOP 0.19.0-CVS
using SAX parser org.apache.xerces.parsers.SAXParser
building formatting object tree
setting up fonts
formatting FOs into areas
 [1WARNING: page-number outside block area
]
rendering areas to PDF
writing out PDF
[weiqi@gao-2001 weiqi]$ vi .fo
[weiqi@gao-2001 weiqi]$ fop -fo .fo -pdf .pdf
FOP 0.19.0-CVS
using SAX parser org.apache.xerces.parsers.SAXParser
building formatting object tree
setting up fonts
formatting FOs into areas
 [1]
rendering areas to PDF
writing out PDF
[weiqi@gao-2001 weiqi]$ xpdf .pdf 
==Session==Session==Session==

I suspect that the error stems from the book template of your xslt,
which you did not post.  Could you run just the XSLT transformation on
the XML file and post the pure .fo file?

You do this by adding $FOP_HOME/lib/xalan-2.0.0.jar into your CLASSPATH,
and run java org.apache.xalan.xslt.Process -in foo.xml -xsl bar.xsl
-out foo.fo.

-- 
Weiqi Gao
[EMAIL PROTECTED]


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




RE: SVG to PDf - images

2001-06-20 Thread Keiron Liddle


On Wed, 20 Jun 2001 13:51:57 Brigette Muller wrote:
 Keiron,
 
 Which version of Acrobat/Reader are you using to view the pdf? (I have
 5.0)
 I can send you the PDF I have, but it is too large to send to the
 mailing list. I would be interested in your generated pdf, to see if I
 can view it OK.
 
 Atatched is a screen dump from Acrobat showing the funky colors
 (purple/green instead of black/white).

That is definitely not what I get.
There must be something about your environment, possibly your screen depth.


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




cell alignment problems

2001-06-20 Thread Erik Rehrmann

Hi all,

I've encountered difficulties using alignment within tables rows.
I attached a modified table.fo example to point out the problem.

The text in the second table row is to long for the defined column width, so it is 
wrapped correctly. Now I want the text of the whole row aligned to the bottom of the 
row, but instead all other cells show the text aligned to the cells top.

Is it possible to align the the row text completely to the bottom of the cells?

___
Erik Rehrmann - IOn AG
[EMAIL PROTECTED]


?xml version=1.0 encoding=utf-8?

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;


  !-- defines the layout master --
  fo:layout-master-set
fo:simple-page-master master-name=first 
   page-height=29.7cm 
   page-width=21cm 
   margin-top=1cm 
   margin-bottom=2cm 
   margin-left=2.5cm 
   margin-right=2.5cm
  fo:region-body margin-top=3cm/
  fo:region-before extent=3cm/
  fo:region-after extent=1.5cm/
/fo:simple-page-master
  /fo:layout-master-set

  !-- starts actual layout --
  fo:page-sequence master-name=first

  fo:flow flow-name=xsl-region-body
fo:table border-collapse=separate
  fo:table-column column-width=50mm/
  fo:table-column column-width=50mm/
  fo:table-column column-width=50mm/
  fo:table-body
fo:table-row
  fo:table-cell border-width=0.5mm border-style=solid 
background-color=yellowfo:blockgood/fo:block/fo:table-cell
  fo:table-cell border-width=0.5mm border-style=solid 
background-color=yellowfo:blockbad/fo:block/fo:table-cell
  fo:table-cell border-width=0.5mm border-style=solid 
background-color=yellowfo:blockugly/fo:block/fo:table-cell
/fo:table-row
fo:table-row
  fo:table-cell border-width=0.5mm border-style=solid 
background-color=yellowfo:blocknice nice nice nice nice nice nice 
nice/fo:block/fo:table-cell
  fo:table-cell border-width=0.5mm border-style=solid 
background-color=yellowfo:blockdice/fo:block/fo:table-cell
  fo:table-cell border-width=0.5mm border-style=solid 
background-color=yellowfo:blockvice/fo:block/fo:table-cell
/fo:table-row
fo:table-row
  fo:table-cell border-width=0.5mm border-style=solid 
background-color=yellowfo:blockliterature/fo:block/fo:table-cell
  fo:table-cell border-width=0.5mm border-style=solid 
background-color=yellowfo:blockmusic/fo:block/fo:table-cell
  fo:table-cell border-width=0.5mm border-style=solid 
background-color=yellowfo:blockart/fo:block/fo:table-cell
/fo:table-row
fo:table-row
  fo:table-cell border-width=0.5mm border-style=solid 
background-color=yellowfo:blockjava/fo:block/fo:table-cell
  fo:table-cell border-width=0.5mm border-style=solid 
background-color=yellowfo:blockperl/fo:block/fo:table-cell
  fo:table-cell border-width=0.5mm border-style=solid 
background-color=yellowfo:blockpython/fo:block/fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table
/fo:flow
  /fo:page-sequence
/fo:root
___
Erik Rehrmann - IOn AG
[EMAIL PROTECTED]




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




Adding additional fonts to FOP 0.17.0

2001-06-20 Thread Ricardo Coutinho

Hi all

I am trying to use additional fonts as part in my PDF creation process.
However I am getting a number of errors/funnies which is making my life
difficult.

1. I get the error below when trying to generate the font metrics file for
the Arial font.
TTF Reader v1.0

Reading D:\winnt\fonts\arial.ttf...

Read dir tab [68 83 73 71] offset: 146136 length: 5096 name: DSIG
Read dir tab [76 84 83 72] offset: 6752 length: 659 name: LTSH
Read dir tab [79 83 47 50] offset: 456 length: 86 name: OS/2
Read dir tab [80 67 76 84] offset: 146080 length: 54 name: PCLT
Read dir tab [86 68 77 88] offset: 7412 length: 4500 name: VDMX
Read dir tab [99 109 97 112] offset: 3704 length: 1734 name: cmap
Read dir tab [99 118 116 32] offset: 15432 length: 1416 name: cvt
Read dir tab [102 112 103 109] offset: 13976 length: 1456 name: fpgm
Read dir tab [103 97 115 112] offset: 544 length: 16 name: gasp
Read dir tab [103 108 121 102] offset: 35316 length: 100434 name: glyf
Read dir tab [104 100 109 120] offset: 19468 length: 15848 name: hdmx
Read dir tab [104 101 97 100] offset: 332 length: 54 name: head
Read dir tab [104 104 101 97] offset: 388 length: 36 name: hhea
Read dir tab [104 109 116 120] offset: 16848 length: 2620 name: hmtx
Read dir tab [107 101 114 110] offset: 140608 length: 5472 name: kern
Read dir tab [108 111 99 97] offset: 5440 length: 1312 name: loca
Read dir tab [109 97 120 112] offset: 424 length: 32 name: maxp
Read dir tab [110 97 109 101] offset: 560 length: 3143 name: name
Read dir tab [112 111 115 116] offset: 135752 length: 4856 name: post
Read dir tab [112 114 101 112] offset: 11912 length: 2063 name: prep
java.io.EOFException: Reached EOF, file size=151232
at
org.apache.fop.fonts.FontFileReader.readTTFString(FontFileReader.java:220)
at org.apache.fop.fonts.TTFFile.readFont(TTFFile.java:221)
at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:207)
at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:176)

   
 
-



2 I managed to generate the metrics file using the latest Fop-0.19.0-CVS
version (I downloaded today) and tha worked. However the generate process
seemed to skip out certain nodes that the version 1.0 TTF reader creates ie
class-name, first-char, last-char. Without those entries I was not
able to rebuild FOP
TTF Reader v1.1.1

Reading D:\winnt\fonts\arial.ttf...

Number of glyphs in font: 655
Creating xml font file...

Creating CID encoded metrics
Writing xml font file Arial.xml...

This font contains no embedding license restrictions
   
 
-


3 I did finaly manage to rebuild FOP with the Arial font built in. However,
the resulting PDF was all messed up. I have attached snippets of the 2
outputs. Did this happen because the font-metrics file is missing
entries...?



Thanks in advance for you help.


Ricardo Coutinho
Developer


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




FOP .19 problem on AS/400 platform

2001-06-20 Thread vincent van der linden

Dear developers, 

We are using fop for a while on our IBM AS/400 midrange 
system. A recompiled Fop 18.1 (with font support fix) 
is the recent installed version. 

Today i installad version .19 on my pc and on the 
AS/400, on the pc it's working good but on the AS/400 
it gives errors and i can't see a difference. 

Are you aware of fop problems on a AS/400 (it uses unix 
api's to perform the java functions) ? our jdk is 
1.1.8. 

The resulting errors are : 
 
java.lang.NoSuchMethodError 
java/lang/Error.init()V+1 (Error.java:43)
  org/apache/fop/apps/Options.setCommandLineOptions
(Lorg/apache/fop/apps/CommandLineOptions;)V+0 
(Options.java:69) 
  org/apache/fop/apps/CommandLineStarter.init
(Lorg/apache/fop/apps/CommandLineOptions;)V+0 
(CommandLineStarter.java:27)
   org/apache/fop/apps/CommandLineOptions.getStarter()
(Lorg/apache/fop/apps/Starter;+0 
(CommandLineOptions.java:372)   
  org/apache/fop/apps/Fop.main([Ljava/lang/String;)V+0 
(Fop.java:14) 

 Press ENTER to end terminal session. 
   
Thanks in advance.

Vincent van der linden
XML consultant 
 



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




update of xml libs?

2001-06-20 Thread Kelly Campbell

I am wondering if anyone objects to an update of our bundled dependencies:

Xerces 1.2.3 - 1.4.0
Xalan   2.0.0 - 2.1.1-dev (neccessary to fix the Gump build issues Scott
and I have been discussing), should be upgraded to a final released version
of xalan-2.1.1 or 2.2.0 (whatever they decide to call it) when that is
available

I don't think these upgrades will require people using FOP in other projects
to also upgrade their projects to these versions as the API's in the new
versions are backwards compatible. There are some minor JAXP api changes
between xerces 1.2/1.3 and 1.4, so we just have to make sure not to use
those new features yet.

-Kelly
--
Kelly A. Campbell   Software Engineer
[EMAIL PROTECTED] ChannelPoint, Inc.
[EMAIL PROTECTED]Colorado Springs, Co.


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




RE: Out of Memory Error

2001-06-20 Thread Alain Fagot

Eugene wrote:
 Command line :
 E:\fop10java -cp
build\fop.jar;lib\batik.jar;lib\xalan.jar;lib\xerces.jar;lib\jimi-1.0.jar
 org.apache.fop.apps.Fop -buf mybuffer.buf -fo xsl_fo.xml -pdf x.pdf

It does not matter how many memory your computer have.  You should
give it to Java.  Without any parameter Java is using only 24MB, which is
for most of the applications nowadays insufficient.

You may want to try with the magics -Xms and -Xmx

$ java -Xms64M -Xmx128M -cp [...]

Hope it helps,
Alain.
-- 
FAGOT AlainSenior Java 
[EMAIL PROTECTED]   Developer
Tel: +31 20  586 99 36 NetlinQ Framfab
Fax: +31 20  682 75 56 Arlandaweg 92
http://www.framfab.nl/  NL-1043 EX  Amsterdam

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




RE: Adding additional fonts to FOP 0.17.0

2001-06-20 Thread Alain Fagot


 2 I managed to generate the metrics file using the latest
 Fop-0.19.0-CVS version (I downloaded today) and tha worked.

Then you should forget about all you knew about adding fonts to FOP
0.17.0 since you now only need to edit the conf/userconfig.xml file to put
your new fonts there.  Of course you will not forget to pass this
configuration file to Fop as in 

java $(JFLAGS) org.apache.fop.apps.Fop -c lib/fop-config.xml 

You will find may own fop-config.xml attached, as an example.

Enjoy your new FOP,
Alain.


 fop-config.xml

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


Re[2]: Out of Memory Error

2001-06-20 Thread Eugene Nedzvetsky

Hello Alain,

Wednesday, June 20, 2001, 7:19:33 PM, you wrote:

AF Eugene wrote:
 Command line :
 E:\fop10java -cp
AF build\fop.jar;lib\batik.jar;lib\xalan.jar;lib\xerces.jar;lib\jimi-1.0.jar
 org.apache.fop.apps.Fop -buf mybuffer.buf -fo xsl_fo.xml -pdf x.pdf

AF It does not matter how many memory your computer have.  You should

AF give it to Java.  Without any parameter Java is using only 24MB, which is
AF for most of the applications nowadays insufficient.

AF You may want to try with the magics -Xms and -Xmx
   I think it not correctly to increase memory for JVM for the large file.

AF $ java -Xms64M -Xmx128M -cp [...]

AF Hope it helps,
AF Alain.



-- 
Best regards,
 Eugenemailto:[EMAIL PROTECTED]



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




Re: A line in white

2001-06-20 Thread Braniganz

 Did you try fo:block/


 I would to know what is the tag that it does what br does in HTML, go to
 the next line.

 Thanks


When I do the transformation to PDF (With Fop 0.18.1) it doesn't appear
a empty line

Thanks


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




RE: Help in XML Rendering to PostScript

2001-06-20 Thread Art Welch

I thought that I had answered a question about direct printing PCL recently.
If you will tell me what platform you are using (Windows/Unix) and how you
are invoking FOP (application or command line). I will try to answer this.

Art

-Original Message-
From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 16, 2001 1:50 AM
To: [EMAIL PROTECTED]
Subject: Re: Help in XML Rendering to PostScript


Hello,
Can somebody tell me how to stream PCL output to a network printer without
writing to a file.

Thanks,
Hitesh

[EMAIL PROTECTED] wrote:

 Hello,

 I am fairly new to FOP and to Java as well.  I am wondering if anyone has
 written a rendering to convert an XML stream to Postscript with FOP
(similar
 to the PCL or PDF renderer) - I am in desperate need of a mechanism to do
 this.  We have a current Java app that converts an XML stream into PDF,
but
 printing through Adobe Acrobat is too resource intensive on the lower end
 machines.  I have tried converting to PCL and then streaming to a port,
 which works pretty well, but is not a 100% compatibile (PCL beng only HP)

 If anyone knows of a way to convert an XML to PS format using a custom FOP
 piece they've written, or knows of a better mechanism, I'd be forever
 grateful!

 Thanks very much,

 Tony

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


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

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




RE: Help in XML Rendering to PostScript

2001-06-20 Thread avespa

Hello,

I am using FOP from within a java application and writing a PCL file.  I
then pass that PCL file to the LPT port for printing.  I want to be able to
render it as Postscript, not PCL.

Any advice or insight you have into post script or direct printing would be
gratefully appreciated!

Tony

-Original Message-
From: Art Welch [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 2:01 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Help in XML Rendering to PostScript


I thought that I had answered a question about direct printing PCL recently.
If you will tell me what platform you are using (Windows/Unix) and how you
are invoking FOP (application or command line). I will try to answer this.

Art

-Original Message-
From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 16, 2001 1:50 AM
To: [EMAIL PROTECTED]
Subject: Re: Help in XML Rendering to PostScript


Hello,
Can somebody tell me how to stream PCL output to a network printer without
writing to a file.

Thanks,
Hitesh

[EMAIL PROTECTED] wrote:

 Hello,

 I am fairly new to FOP and to Java as well.  I am wondering if anyone has
 written a rendering to convert an XML stream to Postscript with FOP
(similar
 to the PCL or PDF renderer) - I am in desperate need of a mechanism to do
 this.  We have a current Java app that converts an XML stream into PDF,
but
 printing through Adobe Acrobat is too resource intensive on the lower end
 machines.  I have tried converting to PCL and then streaming to a port,
 which works pretty well, but is not a 100% compatibile (PCL beng only HP)

 If anyone knows of a way to convert an XML to PS format using a custom FOP
 piece they've written, or knows of a better mechanism, I'd be forever
 grateful!

 Thanks very much,

 Tony

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


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

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

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




Re: update of xml libs?

2001-06-20 Thread Arved_37

Quoting Kelly Campbell [EMAIL PROTECTED]:

 I am wondering if anyone objects to an update of our bundled dependencies:
 
 Xerces 1.2.3 - 1.4.0
 Xalan   2.0.0 - 2.1.1-dev (neccessary to fix the Gump build issues Scott
 and I have been discussing), should be upgraded to a final released version
 of xalan-2.1.1 or 2.2.0 (whatever they decide to call it) when that is
 available
 
 I don't think these upgrades will require people using FOP in other
 projects
 to also upgrade their projects to these versions as the API's in the new
 versions are backwards compatible. There are some minor JAXP api changes
 between xerces 1.2/1.3 and 1.4, so we just have to make sure not to use
 those new features yet.

You seem to be following XML library versioning issues the closest of all of us,
certainly as it pertains to FOP, so my gut feeling is that if you think it is OK
then it is.

If you can, maybe you could highlight these versioning requirements in one or
more appropriate documentation places. It would be nice to keep a history of why
we adopt specific versions of libraries. Much obliged (and I'm sure Fotis is,
too).

Regards,
Arved


---
 This mail was sent through the Nova Scotia Provincial Server, 
 with technical resources provided by Chebucto Community Net.
 http://nsaccess.ns.ca/mail/ http://www.chebucto.ns.ca/


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




Please help with block breaks

2001-06-20 Thread Heidi Gerken

I implore any member of this list to give me an answer to my question. Does
keep-with-next, keep-with-previous, keep-together or keep-together.within-page
work with blocks or list-blocks? If so, how should it be implemented? I have a
series of 4 list blocks, like the one below, inside a parent block. I would like
all four list blocks within the block to be on the same page; if they cannot
fit, I want the entire block to move to the next page. Is this possible? Would
someone, please, tell me how I can do this. (I hope you sense the desperation in
my email, because I am truly losing my mind over this one.)

fo:block font-size=10pt font-weight=normal
keep-together.within-page=always
  fo:list-block space-before.optimum=4pt
provisional-distance-between-starts=80pt provisional-label-separation=0pt
keep-together.within-page=always
  fo:list-item vertical-align=middle
  fo:list-item-label keep-with-next=always
  fo:block line-height=12pt
keep-with-next=alwaysAbstract:/fo:block
  /fo:list-item-label

  fo:list-item-body keep-with-previous=always
  fo:block font-size=10pt line-height=12pt
keep-with-previous=always
  xsl:apply-templates select=Abstract/
  /fo:block
  /fo:list-item
  /fo:list-block
.
.
.
/fo:block


Thank you,
Heidi Gerken
KM Objects
2200 Clarendon Blvd., Suite 1401
Arlington, VA 22201
703.841.4284
[EMAIL PROTECTED]


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




Re: Out of Memory Error

2001-06-20 Thread Arved_37

Hi, Eugene

I'm currently on course in Silicon Valley, and won't be back home until Sunday.
I'll be happy to investigate this further at that time, and report back. Odds
are that Seshadri GK will also be on top of this.

Regards,
Arved

Quoting Eugene Nedzvetsky [EMAIL PROTECTED]:

 Hello Arved,
 
 I have got OutOfMemoryError with attached file xsl_fo.xml
 
 Command line :
 E:\fop10java -cp
 build\fop.jar;lib\batik.jar;lib\xalan.jar;lib\xerces.jar;lib\jimi-1.0.jar
 org.apache.fop.apps.Fop -buf mybuffer.buf -fo xsl_fo.xml -pdf x.pdf
 
 FOP 0.19.0-CVS
 using SAX parser org.apache.xerces.parsers.SAXParser
 building formatting object tree
 Exception in thread main java.lang.OutOfMemoryError
 no stack trace available
 
 computer configuration:
 Pii-350
 256mb memory
 Windows-2000SP2.
 jdk 1.3.1 Standard Edition.
 
 
 xsl_fo.xml generated from database.
 OutOfMemoryError appears with -buf and without.
 
 
 Best regards,
  Eugenemailto:[EMAIL PROTECTED]


---
 This mail was sent through the Nova Scotia Provincial Server, 
 with technical resources provided by Chebucto Community Net.
 http://nsaccess.ns.ca/mail/ http://www.chebucto.ns.ca/


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




Re: Please help with block breaks

2001-06-20 Thread Eric Dalquist

Unfortunately I do not think any of the keep-* attributes work. At least not
as of FOP 0.18.1 if you read the page:
http://xml.apache.org/fop/implemented.html
the only keep-* attribute listed is keep-with-next and it has (broken) next
to it. I have also tried these using the keep-* tags with no success. I hope
someone can back me up or prove me wrong on this.

-Eric Dalquist

- Original Message -
From: Heidi Gerken [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 2:58 PM
Subject: Please help with block breaks


 I implore any member of this list to give me an answer to my question.
Does
 keep-with-next, keep-with-previous, keep-together or
keep-together.within-page
 work with blocks or list-blocks? If so, how should it be implemented? I
have a
 series of 4 list blocks, like the one below, inside a parent block. I
would like
 all four list blocks within the block to be on the same page; if they
cannot
 fit, I want the entire block to move to the next page. Is this possible?
Would
 someone, please, tell me how I can do this. (I hope you sense the
desperation in
 my email, because I am truly losing my mind over this one.)

 fo:block font-size=10pt font-weight=normal
 keep-together.within-page=always
   fo:list-block space-before.optimum=4pt
 provisional-distance-between-starts=80pt
provisional-label-separation=0pt
 keep-together.within-page=always
   fo:list-item vertical-align=middle
   fo:list-item-label keep-with-next=always
   fo:block line-height=12pt
 keep-with-next=alwaysAbstract:/fo:block
   /fo:list-item-label

   fo:list-item-body keep-with-previous=always
   fo:block font-size=10pt line-height=12pt
 keep-with-previous=always
   xsl:apply-templates select=Abstract/
   /fo:block
   /fo:list-item
   /fo:list-block
 .
 .
 .
 /fo:block


 Thank you,
 Heidi Gerken
 KM Objects
 2200 Clarendon Blvd., Suite 1401
 Arlington, VA 22201
 703.841.4284
 [EMAIL PROTECTED]


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



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




[Bug 2255] New: - [Patch] Load required file using the Context Class Loader (needed for Cocoon2)

2001-06-20 Thread bugzilla

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

*** shadow/2255 Wed Jun 20 13:40:54 2001
--- shadow/2255.tmp.6472Wed Jun 20 13:40:54 2001
***
*** 0 
--- 1,38 
+ ++
+ | [Patch] Load required file using the Context Class Loader (needed for Coco |
+ ++
+ |Bug #: 2255Product: Fop |
+ |   Status: NEW Version: all |
+ |   Resolution:Platform: All |
+ | Severity: Critical OS/Version: Other   |
+ | Priority: Other Component: general |
+ ++
+ |  Assigned To: [EMAIL PROTECTED]   |
+ |  Reported By: [EMAIL PROTECTED]   |
+ |  CC list: Cc:  |
+ ++
+ |  URL: http://marc.theaimsgroup.com/?l=fop-devm=99305908122945w=2 |
+ ++
+ |  DESCRIPTION   |
+ Hi fop-team,
+ 
+ Some files like config.xml (in Options.java) and *.hyp (in Hyphenator.java) are 
+ loaded using
+ getResourceAsStream on the class itself. This will not work under some class-
+ loaders for example
+ ServletExec3.1. We have faced this problem in many of the projects for example 
+ Xalan. The
+ suggested fix (see attached patch) is to try using the Thread Context 
+ ClassLoader and if that
+ fails then use the class'es getResourceAsStream as a fallback mechanism. I have 
+ tested this patch
+ in a few environments with no problems. 
+ 
+ The patch is against the latest CVS. Please accept this patch. This will enable 
+ Cocoon2 to work
+ without problems. This will not break anything that works now.
+ 
+ Thanks,
+ dims
+ 
+ PS: See the URL for patch.
\ No newline at end of file

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




Re: Aligning the footer to bottom of page

2001-06-20 Thread Wabei


I reduced the margin-bottom t0 zero and that still did
not work.  I will try and see if I can specify an
absolute position on the page for the footer.

Thanks for the feedback.

Wabei

--- Hoang Nam [EMAIL PROTECTED] wrote:
 I have the same problem because for now, the
 property vertical-align is not
 implemented in FOP yet.
 Try to reduce the margin-bottom !
 
 - Original Message -
 From: Wabei [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 20, 2001 9:40 PM
 Subject: Aligning the footer to bottom of page
 
 
  Hello lister,
 
  I am having trouble aligning my footer to the
 bottom
  of the page.
 
  When I have a extent = 1cm, it prints only about 1
  line at the bottom, when I increase the extent to
 10cm
  to fit all the lines in my footer, it moves the
 footer
  up on the page.  Any ideas on how to fix this???
 
  I was searched past emails in the archive to find
 the
  solution but have not found one there.
 
  Thank you
 
  Wabei
 
 
  __
  Do You Yahoo!?
  Get personalized email addresses from Yahoo! Mail
  http://personal.mail.yahoo.com/
 
 

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

_
 Do You Yahoo!?
 Get your free @yahoo.com address at
 http://mail.yahoo.com
 
 

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


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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




How to Pass xml and xsl to servlet

2001-06-20 Thread sravan kumar

Hi All,

I am facing a problem can any one help me out here,
I have written a servlet which takes xml and xsl as
parameters(here i have hardcoded it i.e path
=d:/webliogic/s1.xml) to generate the pdf file,
Can any one tell me how should i pass the xml and xsl
files as parameters dynamically instead of hardcoding
it 
Its Urgent please can some one help me out
Regards
shravan

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




Re: Border problems

2001-06-20 Thread Karen Lease

Hi Weiqi,

A few weeks ago, you asked some questions about cell borders. You'll
probably notice now that using border-collapse=collapse works better,
thanks to Ivan Demakov's recently contributed fix.

However you made another observation which I finally got around to
checking out:
You wrote, speaking of table borders being centered on the table grid
line (in the collapse style):

 This doesn't seem to match my observation with the latest CVS.  If I
 take away the margins on simple-page-master, and increase the
 border-width on the border-cell to 1in, then in the resulting PDF, no
 top or left borders are observable.  Shouldn't I be able to observe the
 0.5in of the top and left border on the inside of the grid lines?

I did this (with the new CVS). With xpdf I saw the top and right borders
but no left or bottom borders. But in the pdf file the lines are being
drawn. When I use gv or Acrobat Reader, it looks as you (and I :-)
expect it too, with the borders being clipped by the page boundary. I
guess it's a bug in xpdf. Is that what you were using to look at your
pdf file?

Just curious,
Karen



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




Modification in line placement

2001-06-20 Thread Karen Lease

Hi,

While debugging a strange problem from John Wyman recently, I discovered
an inconsistency in how we decide whether a block area has room for
another line of text. It works differently on the first line in the
block from the remaining lines.

This isn't necessarily stupid, at least for some line-stacking-strategy
values.
However, for the fairly simple one FOP is currently implementing, it can
lead to some strange results.

I also noticed that the way we are calculating half-leading in BlockArea
isn't correct according to the CR. The result is that our actual
line-spacing tends to be less than what the stylesheet uses as a
line-height value. This is because the glyph height of a font
(ascender + descender) is typically less than the actual font-size
value.

The fix is trivial, but it will change all existing test results,
because the line-spacing will increase! Because of that, I haven't yet
committed it.
Opinions?

Regards,
Karen


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




Background Image

2001-06-20 Thread SanjaLaketa

Hello,

Since background-image property is not supported yet, is there any other
way of displaying background image?
Is it possible to use fo:external-graphic or something else to imbed image
into every single page? If it is, could someone please tell me how to do
this?

thanks,

sanja


The back-ground image propert seems not yet supported. However I can try
fixing it. give me a few days!

regards
seshadri
FOP Support.
www.mindfiresolutions.com/fopservices.html

- Original Message -
From: Chris Leak [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 15, 2001 5:43 PM
Subject: Background Image


 Hello

 I'm trying to create a document with a background image and overlay the
 text, using
  fo:block background-image=file:foo.jpg /fo:block

 Fop 0.17.0 Produces the warning property 'background-image'  ignored.

 Any ideas to what I'm doing wrong?

 Thanks

  Chris

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





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




Re: Help in XML Rendering to PostScript

2001-06-20 Thread Hitesh Bagchi

I am using windows NT and I am trying to print the PCL output directly to the
printer which is a
HP Laser Jet 6P/6MP network printer from my application. Here is my piece of
code :
-

FileOutputStream fos = new FileOutputStream(../temp/tTest.pcl);
Driver driver = new Driver();
driver.setRenderer(Driver.RENDER_PCL);
driver.addElementMapping(org.apache.fop.fo.StandardElementMapping);
driver.addElementMapping(org.apache.fop.svg.SVGElementMapping);
driver.addPropertyList(org.apache.fop.fo.StandardPropertyListMapping);
driver.addPropertyList(org.apache.fop.svg.SVGPropertyListMapping);
driver.setOutputStream(fos);
driver.buildFOTree(parser, new InputSource(args[0]));
driver.format();
driver.render();
---

Now instead of printing to the Test.pcl file I want to send the output directly
to the HP Laser Jet 6P/6MP
printer on the network.

Thanks,
Hitesh

Art Welch wrote:

 I thought that I had answered a question about direct printing PCL recently.
 If you will tell me what platform you are using (Windows/Unix) and how you
 are invoking FOP (application or command line). I will try to answer this.

 Art

 -Original Message-
 From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, June 16, 2001 1:50 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Help in XML Rendering to PostScript

 Hello,
 Can somebody tell me how to stream PCL output to a network printer without
 writing to a file.

 Thanks,
 Hitesh

 [EMAIL PROTECTED] wrote:

  Hello,
 
  I am fairly new to FOP and to Java as well.  I am wondering if anyone has
  written a rendering to convert an XML stream to Postscript with FOP
 (similar
  to the PCL or PDF renderer) - I am in desperate need of a mechanism to do
  this.  We have a current Java app that converts an XML stream into PDF,
 but
  printing through Adobe Acrobat is too resource intensive on the lower end
  machines.  I have tried converting to PCL and then streaming to a port,
  which works pretty well, but is not a 100% compatibile (PCL beng only HP)
 
  If anyone knows of a way to convert an XML to PS format using a custom FOP
  piece they've written, or knows of a better mechanism, I'd be forever
  grateful!
 
  Thanks very much,
 
  Tony
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]

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

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


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




Re: Out of Memory Error

2001-06-20 Thread Seshadri G.K.

Yup, I have sent it to Arved, for committing. I can post u a copy if u want.

seshadri


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Eugene Nedzvetsky [EMAIL PROTECTED]
Sent: Thursday, June 21, 2001 12:30 AM
Subject: Re: Out of Memory Error


 Hi, Eugene

 I'm currently on course in Silicon Valley, and won't be back home until
Sunday.
 I'll be happy to investigate this further at that time, and report back.
Odds
 are that Seshadri GK will also be on top of this.

 Regards,
 Arved

 Quoting Eugene Nedzvetsky [EMAIL PROTECTED]:

  Hello Arved,
 
  I have got OutOfMemoryError with attached file xsl_fo.xml

 --
--
  Command line :
  E:\fop10java -cp
 
build\fop.jar;lib\batik.jar;lib\xalan.jar;lib\xerces.jar;lib\jimi-1.0.jar
  org.apache.fop.apps.Fop -buf mybuffer.buf -fo xsl_fo.xml -pdf x.pdf
 
  FOP 0.19.0-CVS
  using SAX parser org.apache.xerces.parsers.SAXParser
  building formatting object tree
  Exception in thread main java.lang.OutOfMemoryError
  no stack trace available

 --
--
  computer configuration:
  Pii-350
  256mb memory
  Windows-2000SP2.
  jdk 1.3.1 Standard Edition.
 
 
  xsl_fo.xml generated from database.
  OutOfMemoryError appears with -buf and without.
 
 
  Best regards,
   Eugenemailto:[EMAIL PROTECTED]


 ---
  This mail was sent through the Nova Scotia Provincial Server,
  with technical resources provided by Chebucto Community Net.
  http://nsaccess.ns.ca/mail/ http://www.chebucto.ns.ca/


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




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




RE: Problem with Redirect patch for fop codegen

2001-06-20 Thread Scott_Boag


OK, I have commented it back in.  You'll have to play with it a bit.

It would be good to have these changes done as soon as possible on your
side, so we can make sure Gump is happy.

-scott




   

Kelly  

Campbell To: '[EMAIL PROTECTED]' 
[EMAIL PROTECTED]   
camk@channelcc: Fop-Dev [EMAIL PROTECTED], 
(bcc: Scott Boag/CAM/Lotus) 
point.com   Subject: RE: Problem with Redirect patch 
for fop codegen  
   

06/20/2001 

01:30 AM   

Please 

respond to 

fop-dev

   

   





This issue seems familiar. I seem to remember working around something
similar with redirects when we went from Xalan1 to Xalan2 in the FOP build.
Make Xalan2 do the right thing, and we'll fix our build if there's an
issue because it was relying on a bug in something else we import.

I'm glad Gump is helping us identify problems like this before releases get
sent out. I haven't been reading release notes on Xalan2, but this change
sounds like something that should be highlighted since it can actually
break
people using the redirect extension like the FOP build.

-Kelly

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 19, 2001 3:14 PM
 To: [EMAIL PROTECTED]
 Cc: Fop-Dev
 Subject: Problem with Redirect patch for fop codegen


+  Result outputTarget = transformer.getOutputTarget();
+  if ( (null != outputTarget)  ((base =
 outputTarget.getSystemId
 ()) != null) ) {
+base = urlToFileName(base);
+  }

 For the moment I need to comment this out in order to get the
 fop codegen
 to work.  We can enable it again as soon soon as we can get
 the fop folks
 to modify their stylesheets.  There's always the chance that
 I'll screw
 someone else up in the gump chain my doing this, so I'm not
 sure what the
 best answer is.

 -scott



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






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