DO NOT REPLY [Bug 33871] New: - problem with fo:simple-page-master or fo:page-sequence while creating PDF using FOP 0.20.5

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=33871

   Summary: problem with fo:simple-page-master  or  fo:page-
sequence while creating PDF using FOP 0.20.5
   Product: Fop
   Version: 0.20.5
  Platform: PC
OS/Version: Windows NT
Status: NEW
  Severity: major
  Priority: P3
 Component: page-master/layout
AssignedTo: fop-dev@xml.apache.org
ReportedBy: [EMAIL PROTECTED]


I am generating pdf using Xslt and Formatting Objects. 

I am not getting any error but erlier it was showing the content with(0.20.4) 
border after the fop version upgradation border got disappeared?
why it is happening? Is there any change in the fop regarding this?

I have upgraded the FOP version from 0.20.4 to 0.20.5 and I am using jars Jar-
Files fop_020_5.jar and batik_fop_020_5.jar instead of Jar-Files fop17.jar, 
fop.jar, batik.jar

have a look at this used with 0.20.5 after upgradation

fo:layout-master-set
fo:simple-page-master master-name=letter page-height={$pageHeight}
in page-width={$pageWidth}in margin-left={$marginLeft}in margin-
right={$marginRight}in
fo:region-body margin=1in/
fo:region-before extent=1in padding=0pt margin-
top=0.4in /
fo:region-after extent=1in padding=0pt margin-
bottom=0.5in/
/fo:simple-page-master
/fo:layout-master-set

fo:page-sequence master-reference=letter
fo:static-content flow-name=xsl-region-before
fo:block
xsl:call-template name=header/
/fo:block
/fo:static-content

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


Start Using FOP

2005-01-31 Thread jeb501
Anybody there to help me to get start with FOP

Regards
Eugene




Re: Start Using FOP

2005-01-31 Thread Jeremias Maerki
There's lots of documentation on our website. Start here:
http://xml.apache.org/fop/running.html

Also check our resources section which contains links to online
tutorials and articles:
http://xml.apache.org/fop/resources.html#documents-xslfo

If you're getting stuck somewhere please send questions to the fop-user
mailing list, not to this list which is dedicated to the development of
FOP. Thanks.

On 31.01.2005 09:48:06 jeb501 wrote:
 Anybody there to help me to get start with FOP



Jeremias Maerki



Re: Start Using FOP

2005-01-31 Thread jeb501
Thanks Cesar,

Regards
Eugene



Cesar Miquel [EMAIL PROTECTED] 
31.01.2005 16:16
Please respond to
fop-dev@xml.apache.org


To
fop-dev@xml.apache.org
cc

Subject
Re: Start Using FOP






Personally I read this article from the O'Reilly Network and started 
using it after doing so:

  http://www.onjava.com/pub/a/onjava/2002/10/16/fop.html

good luck!
Cesar

[EMAIL PROTECTED] wrote:

Anybody there to help me to get start with FOP

Regards
Eugene


 






Re: urgent help needed using FOP

2004-04-02 Thread Jerry
Thanks for your help. Chris.

Have a nice weekend,


Jerry

--- Chris Bowditch [EMAIL PROTECTED] wrote:
 Jerry wrote:
 
  John,
  
  Thank you for your message.
  
  Yes, I realize the data in the byte array bt in
 tiff
  does not belong to the standard formatting object.
  That is why I got the error content is not
 allowed in
  prolog. My understanding is I need to either
 convert
  it into the formatting object using XSL or convert
 it
  into XML. However, I am new to FOP and XML/XSL and
 do 
  not know how to do that. If possible, we need to
  convert the data format in memory,that means,
  everything is done in memory, not save it as a
 file
  first and process using FOP.  Would you please
 give me
  your thought on it or you have a piece of codes
 for me
  to share? I will greatly appreciate  it.
 
 Firstly, your question really should have been
 posted to the user-list. The 
 dev list is really for discussing internal work on
 FOP.
 
 I believe your goal should be to create a servlet
 that serves Tiff images up. 
 You can reference the Tiff images from an XSL-FO
 document using a HTTP URL, 
 via the fo:external-graphic tag. FOP can then be
 called on the XSL-FO document 
 to generate a PDF, and you can do this within
 another servlet if you need to.
 
 May I also suggest that you get yourself a good book
 on XSL-FO and learn the 
 basics before attempting to implement a solution
 based on XSL-FO.
 
 snip/
 
 Chris
 
 


__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/


urgent help needed using FOP

2004-04-01 Thread Jerry
Hi,

I am currently working on a
project which convert binary data in tiff format  into
PDF format. I refer to  the example(FopServlet.java)
and always got  error Error 500: Content is
not allowed in prolog. . I could not figure out what
the problem is.  I was stuch by this. Please help me.

Here is the peice of codes. Would you please take a
look and give me a suggestion. I will greatly
appreciate it.  

BTW, the binary data format from database which will
be displayed on the web is in tiff format, not a
formatting object. If it can be displayed directly on
the web in pdf format, it is not necessary to convert
it into pdf first.

thanks,

Jerry

***
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.util.zip.*;
import java.sql.*;
import java.text.*;


import java.net.*;
import java.util.Properties;
import java.awt.image.*;
import com.sun.media.jai.codec.*;
import com.sun.media.jai.*;
import javax.media.jai.JAI;
import javax.media.jai.*;
import javax.media.jai.RenderedOp;
import javax.media.jai.PlanarImage;
import javax.media.jai.OpImage;
import javax.media.jai.util.*;
import
javax.media.jai.remote.SerializableRenderedImage;
import java.awt.image.renderable.ParameterBlock;
import java.lang.Object;
import java.awt.Image;
import javax.swing.ImageIcon;
import java.io.ByteArrayOutputStream.*;


import com.csi.utils.StringUtils;
import com.csi.daserver.global.*;
import com.csi.dcserver.objects.DCSession;
import com.csi.dcserver.exceptions.*;
import com.csi.daserver.utils.MsgPool;
import com.csi.dcserver.crypto.Crypto;


import org.xml.sax.InputSource;

import org.apache.fop.apps.Driver;
import org.apache.fop.apps.XSLTInputHandler;
import org.apache.fop.messaging.MessageHandler;

import
org.apache.avalon.framework.logger.ConsoleLogger;
import org.apache.avalon.framework.logger.Logger;


public class ImageDownload extends HttpServlet {

Logger log = null;

public void doGet(HttpServletRequest req,
HttpServletResponse resp) throws ServletException,
IOException {

...

//got the binary data in tiff format from database
and put the binary data in byte array bt
Byte[] bt = (byte[]) v.elementAt(0);

sendPDFBinaryResponse(resp, req, bt,
application/pdf);
return;
  }
}

//
private void
sendPDFBinaryResponse(HttpServletResponse
res,HttpServletRequest req, byte[]
bt,StringsContTypeHeader) throws IOException,
ServletException{



if(sContTypeHeader==application/pdf){

if (log == null) {
log = new
ConsoleLogger(ConsoleLogger.LEVEL_WARN);
MessageHandler.setScreenLogger(log);
 }


renderFO(new InputSource(new
ByteArrayInputStream(bt)), res);


}

 }
  

  
  
  
public void renderFO(InputSource foFile,
HttpServletResponse response) throws ServletException
{
try {
ByteArrayOutputStream out = new
ByteArrayOutputStream();

   
response.setContentType(application/pdf);

Driver driver = new Driver(foFile, out);
driver.setLogger(log);
driver.setRenderer(Driver.RENDER_PDF);
 
driver.run();

byte[] content = out.toByteArray();


response.setContentLength(content.length);
response.getOutputStream().write(content);
response.getOutputStream().flush();



} catch (Exception ex) {
throw new ServletException(ex);
}
}

...

}



This is the exact error I got:

org.xml.sax.SAXParseException: Content is not allowed
in prolog.
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1172)
at org.apache.fop.apps.Driver.render(Driver.java:498)
at org.apache.fop.apps.Driver.run(Driver.java:565)



__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/


Re: urgent help needed using FOP

2004-04-01 Thread John Austin
On Thu, 2004-04-01 at 14:30, Jerry wrote:
 Hi,
 
 I am currently working on a
 project which convert binary data in tiff format  into
 PDF format. I refer to  the example(FopServlet.java)
 and always got  error Error 500: Content is
 not allowed in prolog. . I could not figure out what
 the problem is.  I was stuch by this. Please help me.
 
 Here is the peice of codes. Would you please take a
 look and give me a suggestion. I will greatly
 appreciate it.  
 
 BTW, the binary data format from database which will
 be displayed on the web is in tiff format, not a
 formatting object. If it can be displayed directly on
 the web in pdf format, it is not necessary to convert
 it into pdf first.

It is not clear from your example whether your data is usable by
FOP.

FOP is designed to process XML files, specifically XSL-FO or
Formatting objects. 

You state on your message and in comments that the binary data is
in a TIFF format. You move this data around, eventualy passing it
to the FOP Driver object. I don't think this is at all reasonable
as a TIFF object is definitely not going to be accepted by the SAX
parser used in FOP.

You need to read the FOP examples again.

 thanks,
 
 Jerry
 
 ***
 import javax.servlet.*;
 import javax.servlet.http.*;
 import java.io.*;
 import java.util.*;
 import java.util.zip.*;
 import java.sql.*;
 import java.text.*;
 
 
 import java.net.*;
 import java.util.Properties;
 import java.awt.image.*;
 import com.sun.media.jai.codec.*;
 import com.sun.media.jai.*;
 import javax.media.jai.JAI;
 import javax.media.jai.*;
 import javax.media.jai.RenderedOp;
 import javax.media.jai.PlanarImage;
 import javax.media.jai.OpImage;
 import javax.media.jai.util.*;
 import
 javax.media.jai.remote.SerializableRenderedImage;
 import java.awt.image.renderable.ParameterBlock;
 import java.lang.Object;
 import java.awt.Image;
 import javax.swing.ImageIcon;
 import java.io.ByteArrayOutputStream.*;
 
 
 import com.csi.utils.StringUtils;
 import com.csi.daserver.global.*;
 import com.csi.dcserver.objects.DCSession;
 import com.csi.dcserver.exceptions.*;
 import com.csi.daserver.utils.MsgPool;
 import com.csi.dcserver.crypto.Crypto;
 
 
 import org.xml.sax.InputSource;
 
 import org.apache.fop.apps.Driver;
 import org.apache.fop.apps.XSLTInputHandler;
 import org.apache.fop.messaging.MessageHandler;
 
 import
 org.apache.avalon.framework.logger.ConsoleLogger;
 import org.apache.avalon.framework.logger.Logger;
 
 
 public class ImageDownload extends HttpServlet {
 
   Logger log = null;
   
   public void doGet(HttpServletRequest req,
 HttpServletResponse resp) throws ServletException,
 IOException {
   
   ...
   
   //got the binary data in tiff format from database
 and put the binary data in byte array bt
   Byte[] bt = (byte[]) v.elementAt(0);
   
   sendPDFBinaryResponse(resp, req, bt,
 application/pdf);
   return;
   }
   }
   
   //
   private void
 sendPDFBinaryResponse(HttpServletResponse
 res,HttpServletRequest req, byte[]
 bt,StringsContTypeHeader) throws IOException,
 ServletException{
   
   
   
   if(sContTypeHeader==application/pdf){
 
   if (log == null) {
   log = new
 ConsoleLogger(ConsoleLogger.LEVEL_WARN);
   MessageHandler.setScreenLogger(log);
}
 
   
   renderFO(new InputSource(new
 ByteArrayInputStream(bt)), res);
 
   
   }
 
}
   
 
   
   
   
 public void renderFO(InputSource foFile,
 HttpServletResponse response) throws ServletException
 {
 try {
 ByteArrayOutputStream out = new
 ByteArrayOutputStream();
 

 response.setContentType(application/pdf);
 
 Driver driver = new Driver(foFile, out);
 driver.setLogger(log);
 driver.setRenderer(Driver.RENDER_PDF);
  
 driver.run();
 
 byte[] content = out.toByteArray();
 
 
 response.setContentLength(content.length);
 response.getOutputStream().write(content);
 response.getOutputStream().flush();
 
 
 
 } catch (Exception ex) {
 throw new ServletException(ex);
 }
 }
 
 ...
 
 }
 
 
 
 This is the exact error I got:
 
 org.xml.sax.SAXParseException: Content is not allowed
 in prolog.
   at
 org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1172)
   at org.apache.fop.apps.Driver.render(Driver.java:498)
   at org.apache.fop.apps.Driver.run(Driver.java:565)
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Small Business $15K Web Design Giveaway 
 http://promotions.yahoo.com/design_giveaway/
-- 
John Austin [EMAIL 

Re: urgent help needed using FOP

2004-04-01 Thread Jerry
John,

Thank you for your message.

Yes, I realize the data in the byte array bt in tiff
does not belong to the standard formatting object.
That is why I got the error content is not allowed in
prolog. My understanding is I need to either convert
it into the formatting object using XSL or convert it
into XML. However, I am new to FOP and XML/XSL and do 
not know how to do that. If possible, we need to
convert the data format in memory,that means,
everything is done in memory, not save it as a file
first and process using FOP.  Would you please give me
your thought on it or you have a piece of codes for me
to share? I will greatly appreciate  it.

Thanks in advance,


Jerry

--- John Austin [EMAIL PROTECTED] wrote:
 On Thu, 2004-04-01 at 14:30, Jerry wrote:
  Hi,
  
  I am currently working on a
  project which convert binary data in tiff format 
 into
  PDF format. I refer to  the
 example(FopServlet.java)
  and always got  error Error 500: Content is
  not allowed in prolog. . I could not figure out
 what
  the problem is.  I was stuch by this. Please help
 me.
  
  Here is the peice of codes. Would you please take
 a
  look and give me a suggestion. I will greatly
  appreciate it.  
  
  BTW, the binary data format from database which
 will
  be displayed on the web is in tiff format, not a
  formatting object. If it can be displayed directly
 on
  the web in pdf format, it is not necessary to
 convert
  it into pdf first.
 
 It is not clear from your example whether your data
 is usable by
 FOP.
 
 FOP is designed to process XML files, specifically
 XSL-FO or
 Formatting objects. 
 
 You state on your message and in comments that the
 binary data is
 in a TIFF format. You move this data around,
 eventualy passing it
 to the FOP Driver object. I don't think this is at
 all reasonable
 as a TIFF object is definitely not going to be
 accepted by the SAX
 parser used in FOP.
 
 You need to read the FOP examples again.
 
  thanks,
  
  Jerry
  
 

***
  import javax.servlet.*;
  import javax.servlet.http.*;
  import java.io.*;
  import java.util.*;
  import java.util.zip.*;
  import java.sql.*;
  import java.text.*;
  
  
  import java.net.*;
  import java.util.Properties;
  import java.awt.image.*;
  import com.sun.media.jai.codec.*;
  import com.sun.media.jai.*;
  import javax.media.jai.JAI;
  import javax.media.jai.*;
  import javax.media.jai.RenderedOp;
  import javax.media.jai.PlanarImage;
  import javax.media.jai.OpImage;
  import javax.media.jai.util.*;
  import
  javax.media.jai.remote.SerializableRenderedImage;
  import java.awt.image.renderable.ParameterBlock;
  import java.lang.Object;
  import java.awt.Image;
  import javax.swing.ImageIcon;
  import java.io.ByteArrayOutputStream.*;
  
  
  import com.csi.utils.StringUtils;
  import com.csi.daserver.global.*;
  import com.csi.dcserver.objects.DCSession;
  import com.csi.dcserver.exceptions.*;
  import com.csi.daserver.utils.MsgPool;
  import com.csi.dcserver.crypto.Crypto;
  
  
  import org.xml.sax.InputSource;
  
  import org.apache.fop.apps.Driver;
  import org.apache.fop.apps.XSLTInputHandler;
  import org.apache.fop.messaging.MessageHandler;
  
  import
  org.apache.avalon.framework.logger.ConsoleLogger;
  import org.apache.avalon.framework.logger.Logger;
  
  
  public class ImageDownload extends HttpServlet {
  
  Logger log = null;
  
  public void doGet(HttpServletRequest req,
  HttpServletResponse resp) throws ServletException,
  IOException {
  
  ...
  
  //got the binary data in tiff format from
 database
  and put the binary data in byte array bt
  Byte[] bt = (byte[]) v.elementAt(0);
  
  sendPDFBinaryResponse(resp, req, bt,
  application/pdf);
  return;
}
  }
  
  //
  private void
  sendPDFBinaryResponse(HttpServletResponse
  res,HttpServletRequest req, byte[]
  bt,StringsContTypeHeader) throws IOException,
  ServletException{
  
  
  
  if(sContTypeHeader==application/pdf){
  
  if (log == null) {
  log = new
  ConsoleLogger(ConsoleLogger.LEVEL_WARN);
  MessageHandler.setScreenLogger(log);
   }
  
  
  renderFO(new InputSource(new
  ByteArrayInputStream(bt)), res);
  
  
  }
  
   }

  



  public void renderFO(InputSource foFile,
  HttpServletResponse response) throws
 ServletException
  {
  try {
  ByteArrayOutputStream out = new
  ByteArrayOutputStream();
  
 
  response.setContentType(application/pdf);
  
  Driver driver = new Driver(foFile,
 out);
  driver.setLogger(log);
  driver.setRenderer(Driver.RENDER_PDF

FW: Using FOP / trying to embed FOP

2003-01-03 Thread Kevin.Wood

 Trying to embed FOP within Java.  I added code that the documentation stated was 
necessary in order to embed FOP.  I compiled the code.  I get errors when 
instantiating the FOP Driver class.  I apologize for this be lengthy.  
 
 
 ---Executing my java code:  
 
 My goal is to take one of the sample .fo files (simple.fo) and generate a pdf file.
 
 
 **
 Error:
 **
 
 
 
 
 C:\fop-0.20.5rcjava embed simple.fo testembed.pdf
 argument1:  simple.fo
 argument2:  testembed.pdf
 
 Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/fop/fo/PropertyList
 
 at org.apache.fop.apps.Driver.init(Driver.java:178)
 at org.apache.fop.apps.Driver.init(Driver.java:186)
 at embed.main(embed.java:60)
 
 C:\fop-0.20.5rc
 -
 -
 
 
 I can see a PropertyList.java file but no class file.
 
 Compiling PropertyList.java gives the following error
 
 --
 --
 C:\org\apache\fop\fojavac PropertyList.java
 PropertyList.java:11: Class org.apache.fop.fo.properties.WritingMode not found in 
import.
 import org.apache.fop.fo.properties.WritingMode;
^
 1 error
 
 C:\org\apache\fop\fo
 --
 --
 
 
 There is only one file (package.html) in the org.apache.fop.fo.properties.
 
 This file states the following:
 
  Classes representing XSL-FO properties (See §7 of the XSL 1.0 Standard).  
 
 
 
 
 * Questions 
 
 
 Problem locating these files...Where do I get them?  
 Are there any steps that I need to do in order to get this to work?  
 What is the purpose for building FOP?
 Is there anything wrong with my code located below?
 
 
 
 
 
 *
 My Java code:  **
 *
 
 
 I had to add a lot of import statements to get the code to compile.
 
 
 import java.util.*;
 import java.text.*;
 import org.apache.fop.apps.Driver;
 import org.xml.sax.InputSource;
 import org.apache.avalon.framework.logger.ConsoleLogger;
 import org.apache.avalon.framework.logger.Logger;
 
 
 // FOP
 import org.apache.fop.fo.*;
 import org.apache.fop.configuration.Configuration;
 import org.apache.fop.configuration.ConfigurationReader;
 import org.apache.fop.fo.ElementMapping;
 import org.apache.fop.fo.FOTreeBuilder;
 import org.apache.fop.render.Renderer;
 //import org.apache.fop.render.pdf.PDFRenderer;
 import org.apache.fop.tools.DocumentInputSource;
 import org.apache.fop.tools.DocumentReader;
 import org.apache.fop.messaging.MessageHandler;
 
 // Avalon
 import org.apache.avalon.framework.logger.ConsoleLogger;
 import org.apache.avalon.framework.logger.Logger;
 
 // DOM
 import org.w3c.dom.Document;
 
 // SAX
 import org.xml.sax.ContentHandler;
 import org.xml.sax.InputSource;
 import org.xml.sax.SAXException;
 import org.xml.sax.XMLReader;
 
 
 // Java
 import java.io.BufferedReader;
 import java.io.InputStreamReader;
 import java.io.InputStream;
 import java.io.IOException;
 import java.io.OutputStream;
 import java.util.Enumeration;
 import java.util.HashMap;
 import java.util.Vector;
 
 //import java.io.OutputStream;
 import java.io.*;
 
 
 //import org.apache.avalon.ramwork.logger.Logger;
 
 public class embed
 {
   public static void main(String[] args) 
   {
 
   try{
   System.out.println(argument1:   + args[0]);
   System.out.println(argument2:   + args[1]);
 
   Driver driver = new Driver (new InputSource (args[0]),
   new FileOutputStream(args[1]));
   driver.setRenderer(Driver.RENDER_PDF);
 
 
   driver.run();
 
   Logger logger = new ConsoleLogger (ConsoleLogger.LEVEL_INFO);
   MessageHandler.setScreenLogger(logger);
   driver.setLogger(logger);
 
   //userConfigFile = new File(userConfig);
   //options = new Options(userConfigFile);
   }catch(Exception e)
   {
   }
 
 
 
 
 
   //System.out.println();
   //System.out.println();
 
 
 
   }
 
 }
 
 

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




Re: Using FOP / trying to embed FOP

2003-01-03 Thread Jeremias Maerki
Hi Kevin

This is probably a classpath problem (NoClassDefFoundError). You've got
to make sure that fop.jar (as well as batik and friends) are on your
classpath. Example:

java -cp fop.jar;batik.jar;other-jars... embed simple.fo testembed.pdf

Look at fop.bat as another example.

Don't try to compile FOP from the command line using javac. Use the Ant
build script instead and then use the generated fop.jar in your
application.

Another comment further down...

Please be so kind as to ask this sort of question on the fop-user
mailing list next time. Thanks and good luck!

On 03.01.2003 15:05:00 Kevin.Wood wrote:
 
  Trying to embed FOP within Java.  I added code that the documentation stated was 
necessary in order to embed FOP.  I compiled the code.  I get errors when 
instantiating the FOP Driver class.  I apologize for this be lengthy.  
  
  
  ---Executing my java code:  
  
  My goal is to take one of the sample .fo files (simple.fo) and generate a pdf file.
  
  
  **
  Error:
  **
  
  
  
  
  C:\fop-0.20.5rcjava embed simple.fo testembed.pdf
  argument1:  simple.fo
  argument2:  testembed.pdf
  
  Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/fop/fo/PropertyList
  
  at org.apache.fop.apps.Driver.init(Driver.java:178)
  at org.apache.fop.apps.Driver.init(Driver.java:186)
  at embed.main(embed.java:60)
  
  C:\fop-0.20.5rc
  -
  -
  
  
  I can see a PropertyList.java file but no class file.
  
  Compiling PropertyList.java gives the following error
  
  --
  --
  C:\org\apache\fop\fojavac PropertyList.java
  PropertyList.java:11: Class org.apache.fop.fo.properties.WritingMode not found in 
import.
  import org.apache.fop.fo.properties.WritingMode;
 ^
  1 error
  
  C:\org\apache\fop\fo
  --
  --
  
  
  There is only one file (package.html) in the org.apache.fop.fo.properties.
  
  This file states the following:
  
   Classes representing XSL-FO properties (See §7 of the XSL 1.0 Standard).  
  
  
  
  
  * Questions 
  
  
  Problem locating these files...Where do I get them?  
  Are there any steps that I need to do in order to get this to work?  
  What is the purpose for building FOP?
  Is there anything wrong with my code located below?
  
  
  
  
  
  *
  My Java code:  **
  *
  
  
  I had to add a lot of import statements to get the code to compile.
  
  
  import java.util.*;
  import java.text.*;
  import org.apache.fop.apps.Driver;
  import org.xml.sax.InputSource;
  import org.apache.avalon.framework.logger.ConsoleLogger;
  import org.apache.avalon.framework.logger.Logger;
  
  
  // FOP
  import org.apache.fop.fo.*;
  import org.apache.fop.configuration.Configuration;
  import org.apache.fop.configuration.ConfigurationReader;
  import org.apache.fop.fo.ElementMapping;
  import org.apache.fop.fo.FOTreeBuilder;
  import org.apache.fop.render.Renderer;
  //import org.apache.fop.render.pdf.PDFRenderer;
  import org.apache.fop.tools.DocumentInputSource;
  import org.apache.fop.tools.DocumentReader;
  import org.apache.fop.messaging.MessageHandler;
  
  // Avalon
  import org.apache.avalon.framework.logger.ConsoleLogger;
  import org.apache.avalon.framework.logger.Logger;
  
  // DOM
  import org.w3c.dom.Document;
  
  // SAX
  import org.xml.sax.ContentHandler;
  import org.xml.sax.InputSource;
  import org.xml.sax.SAXException;
  import org.xml.sax.XMLReader;
  
  
  // Java
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import java.io.InputStream;
  import java.io.IOException;
  import java.io.OutputStream;
  import java.util.Enumeration;
  import java.util.HashMap;
  import java.util.Vector;
  
  //import java.io.OutputStream;
  import java.io.*;
  
  
  //import org.apache.avalon.ramwork.logger.Logger;
  
  public class embed
  {
  public static void main(String[] args) 
  {
  
  try{
  System.out.println(argument1:   + args[0]);
  System.out.println(argument2:   + args[1]);
  
  Driver driver = new Driver (new InputSource (args[0]),
  new FileOutputStream(args[1]));
  driver.setRenderer(Driver.RENDER_PDF);
  
  
  driver.run();
  

Once you're here 

How can I generate editable reports using FOP

2002-12-10 Thread Gorka Echevarría



Hi all,

Does anybody know if can I generate a report to the browser 
using FOP and allow the user to edit this report?

Thank you

Gorka 






Re: How can I generate editable reports using FOP

2002-12-10 Thread J.Pietschmann
Gorka Echevarría wrote:

Does anybody know if can I generate a report to the browser using FOP 
and allow the user to edit this report?

It depends on what you mean with editable. You can edit
any PDF file with certain tools.
If you want to insert input fields into the result, this
is something which FOP can't do, and which XSLFO is not
exactly designed for.
SOmeone published about an extension to FOP for inserting
roughly raw PDF instructions into the result, which can be
used to porduce input fields, but you should have read and
understand the PDF spec in order to use this. Search the
list archive if you are interested.

J.Pietschmann


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




Re: PDF Security using FOP.

2002-08-13 Thread J.Pietschmann

Avula, Raj wrote:
 Hi,
   I have a basic question about the generated PDF document using FOP.
 It is possible to apply security features to PDF output like making pdf
 output read-only
 and disabling the copy operation on the output etc..

This is not build-in into FOP, but you can postprocess
the generated PDF:
  http://marc.theaimsgroup.com/?l=fop-devm=102002975028427w=2
Be aware that iText does not handle PDF bookmarks.

J.Pietschmann


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




RE: Unable to generate PDF file from EJB using FOP

2002-07-11 Thread Amit Rangari

I have written a simple program to translate the XML data to PDF format
when I run this program as a standalone application it works fine; it
generates the appropriate PDF file. Please find attached Translate.java
file.

 The problem is when I call the method to convert XML to PDF from EJB
(Stateless) it does not render at all; in fact it doesn't write anything
to the ByteArrayOutputStream which is set as a outputStream for the
Driver.

- Are you using IEx as a client? Do you use a URL ending
   in .pdf to access the PDF?

Yes I am planning to do so but the problem is that the PDF itself is not
getting created.

- Have you used a command line client like wget to retrieve
   the PDF? Do you get an error? Do you get an empty
   or corrupted PDF?

Yes I do get a Report1.pdf on the disk but it is empty.

- is there anything interesting in the logs of the EJB container?

no

- Have you tried the servlet example distributed with FOP?
   Do you have prolems there alos?

Yes I tried the FOPServlet example that also doen't work


-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 11, 2002 12:55 AM
To: [EMAIL PROTECTED]
Subject: Re: Unable to generate PDF file from EJB using FOP

Amit Rangari wrote:
 Simply the rendering not done 

It is hard to guess your problem from such a sparse description.
Some possibilities:
- Are you using IEx as a client? Do you use a URL ending
   in .pdf to access the PDF?
- Have you used a command line client like wget to retrieve
   the PDF? Do you get an error? Do you get an empty
   or corrupted PDF?
- is there anything interesting in the logs of the EJB container?
- Have you tried the servlet example distributed with FOP?
   Do you have problem there also?

J.Pietschmann


 -Original Message-
You are supposed to trim unnecessary old quotes, in particular
if there are completely unrelated old messages therein.
Look at the archives:
   http://marc.theaimsgroup.com/?l=fop-devm=102629436519701w=2
Assume someone searches the archive for white-space-collapse
and gets a hit on your post.

J.Pietschmann


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




Translate.java
Description: Binary data

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


Unable to generate PDF file from EJB using FOP

2002-07-10 Thread Amit Rangari


I have written a simple class which takes XML and XSL and translate it
into PDF using FOP (this works fine when run it as a standalone
application) but when I embed this program/logic in a stateless EJB it
doesn't render the content to the output stream. 

I have checked out the class path also, I am using the same setEnv.bat
file to set the environment for running both standalone program as well
as weblogic application server.

Please help me 

Thanks
Amit

-Original Message-
From: RamanaJV [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 09, 2002 9:39 AM
To: [EMAIL PROTECTED]
Subject: RE: Page details support?

I understand that messing around with FOP is not a good idea. But what
to
do, I doesn't get any solution till. I'll put the problem in greater
detail
again.

   I will be having FO templates, that specify the style of the report. 
Let's say the template is like:

?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=11in
page-width=8.5in
margin-top=25pt
margin-bottom=25pt
margin-left=20pt
margin-right=10pt
   fo:region-body margin-top=50pt
  fo:region-before extent=50pt
 fo:region-after extent=25pt
 /fo:simple-page-master
  /fo:layout-master-set

   !-- starts actual layout --
   fo:page-sequence master-reference=first
fo:static-content
flow-name=xsl-region-before
   !-- Static content goes here --
/fo:static-content
fo:flow flow-name=xsl-region-body
fo:block white-space-collapse=false
space-after=12pt
   fo:inline
font-weight=bold##/fo:inline +
/fo:block
/fo:flow
  /fo:page-sequence
/fo:root


There will be templates like above where the hashpart(###)
is
the hole area where the programs fill the data. The data will be got
from
the database and the client program supplies the server with the data
and
the sever program takes the data and for every write call the client
program
says, the server creates a new fo:block element and places the data
supplied in the hash portion. The client proceeds in this fashion. 
   The client program may supply large amount of records, can be
around 15,000 records also. So, it is not advisable to make the user
wait
till all the data is supplied and the entire FO constructed. There is an
assumption made now, say we can show 40 records per page. The client
supplies 40 records to the sever, which renders the page using FOP API.
But,
the problem comes if the data supplied will not fit in the single line.
If
the data spans more than 1 line, then the assumption becomes incorrect
and
the remnant portion of the data ( a small chunk, could be one or two
lines)
comes in the second page. This is not good. 
There actually will be number of templates and client filling
out
the templates. So, I'm trying to find a solution where in which at any
point
of time client should be able to know that
 Still how many lines of display remain?. With that
the
client can hold until the server gives it a ready signal again.

I hope I'm clear now... I'm not finding how to solve the above
problem... I think this type of viewing is common in business
applications...
For now, it is assumed that the page size is 8.5in * 11in
and
portrait mode. Is it possible?

I'll be waiting to hear for a solution...

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 8:54 PM
To: [EMAIL PROTECTED]
Subject: Re: Page details support?


The font classes could help you here, too. But I wonder if that helps
you a lot. Questions like that often indicate that someone is trying to
work around a problem that is actually supposed to be worked out in a
different way. If you experience a deficiency with FOP, first try to
find out, if it's XSL:FO that doesn't provide what you need or if it's
FOP. If it's FOP, tell us what you want to accomplish. We may (!) be
able to help you find another solution that doesn't involve messing
around with FOP

RE: Unable to generate PDF file from EJB using FOP

2002-07-10 Thread RamanaJV


Is it throwing any exceptions or simply the rendering not done?

Ramana.JV.

-Original Message-
From: Amit Rangari [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 12:39 PM
To: [EMAIL PROTECTED]
Subject: Unable to generate PDF file from EJB using FOP



I have written a simple class which takes XML and XSL and translate it
into PDF using FOP (this works fine when run it as a standalone
application) but when I embed this program/logic in a stateless EJB it
doesn't render the content to the output stream. 

I have checked out the class path also, I am using the same setEnv.bat
file to set the environment for running both standalone program as well
as weblogic application server.

Please help me 

Thanks
Amit

-Original Message-
From: RamanaJV [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 09, 2002 9:39 AM
To: [EMAIL PROTECTED]
Subject: RE: Page details support?

I understand that messing around with FOP is not a good idea. But what
to
do, I doesn't get any solution till. I'll put the problem in greater
detail
again.

   I will be having FO templates, that specify the style of the report. 
Let's say the template is like:

?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=11in
page-width=8.5in
margin-top=25pt
margin-bottom=25pt
margin-left=20pt
margin-right=10pt
   fo:region-body margin-top=50pt
  fo:region-before extent=50pt
 fo:region-after extent=25pt
 /fo:simple-page-master
  /fo:layout-master-set

   !-- starts actual layout --
   fo:page-sequence master-reference=first
fo:static-content
flow-name=xsl-region-before
   !-- Static content goes here --
/fo:static-content
fo:flow flow-name=xsl-region-body
fo:block white-space-collapse=false
space-after=12pt
   fo:inline
font-weight=bold##/fo:inline +
/fo:block
/fo:flow
  /fo:page-sequence
/fo:root


There will be templates like above where the hashpart(###)
is
the hole area where the programs fill the data. The data will be got
from
the database and the client program supplies the server with the data
and
the sever program takes the data and for every write call the client
program
says, the server creates a new fo:block element and places the data
supplied in the hash portion. The client proceeds in this fashion. 
   The client program may supply large amount of records, can be
around 15,000 records also. So, it is not advisable to make the user
wait
till all the data is supplied and the entire FO constructed. There is an
assumption made now, say we can show 40 records per page. The client
supplies 40 records to the sever, which renders the page using FOP API.
But,
the problem comes if the data supplied will not fit in the single line.
If
the data spans more than 1 line, then the assumption becomes incorrect
and
the remnant portion of the data ( a small chunk, could be one or two
lines)
comes in the second page. This is not good. 
There actually will be number of templates and client filling
out
the templates. So, I'm trying to find a solution where in which at any
point
of time client should be able to know that
 Still how many lines of display remain?. With that
the
client can hold until the server gives it a ready signal again.

I hope I'm clear now... I'm not finding how to solve the above
problem... I think this type of viewing is common in business
applications...
For now, it is assumed that the page size is 8.5in * 11in
and
portrait mode. Is it possible?

I'll be waiting to hear for a solution...

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 8:54 PM
To: [EMAIL PROTECTED]
Subject: Re: Page details support?


The font classes could help you here, too. But I wonder if that helps
you a lot. Questions like that often indicate that someone is trying to
work around a problem that is actually supposed to be worked out in a
different way. If you

RE: Unable to generate PDF file from EJB using FOP

2002-07-10 Thread Amit Rangari

Simply the rendering not done 

-Original Message-
From: RamanaJV [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 10, 2002 2:55 PM
To: [EMAIL PROTECTED]
Subject: RE: Unable to generate PDF file from EJB using FOP


Is it throwing any exceptions or simply the rendering not done?

Ramana.JV.

-Original Message-
From: Amit Rangari [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 12:39 PM
To: [EMAIL PROTECTED]
Subject: Unable to generate PDF file from EJB using FOP



I have written a simple class which takes XML and XSL and translate it
into PDF using FOP (this works fine when run it as a standalone
application) but when I embed this program/logic in a stateless EJB it
doesn't render the content to the output stream. 

I have checked out the class path also, I am using the same setEnv.bat
file to set the environment for running both standalone program as well
as weblogic application server.

Please help me 

Thanks
Amit

-Original Message-
From: RamanaJV [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 09, 2002 9:39 AM
To: [EMAIL PROTECTED]
Subject: RE: Page details support?

I understand that messing around with FOP is not a good idea. But what
to
do, I doesn't get any solution till. I'll put the problem in greater
detail
again.

   I will be having FO templates, that specify the style of the report. 
Let's say the template is like:

?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=11in
page-width=8.5in
margin-top=25pt
margin-bottom=25pt
margin-left=20pt
margin-right=10pt
   fo:region-body margin-top=50pt
  fo:region-before extent=50pt
 fo:region-after extent=25pt
 /fo:simple-page-master
  /fo:layout-master-set

   !-- starts actual layout --
   fo:page-sequence master-reference=first
fo:static-content
flow-name=xsl-region-before
   !-- Static content goes here --
/fo:static-content
fo:flow flow-name=xsl-region-body
fo:block white-space-collapse=false
space-after=12pt
   fo:inline
font-weight=bold##/fo:inline +
/fo:block
/fo:flow
  /fo:page-sequence
/fo:root


There will be templates like above where the hashpart(###)
is
the hole area where the programs fill the data. The data will be got
from
the database and the client program supplies the server with the data
and
the sever program takes the data and for every write call the client
program
says, the server creates a new fo:block element and places the data
supplied in the hash portion. The client proceeds in this fashion. 
   The client program may supply large amount of records, can be
around 15,000 records also. So, it is not advisable to make the user
wait
till all the data is supplied and the entire FO constructed. There is an
assumption made now, say we can show 40 records per page. The client
supplies 40 records to the sever, which renders the page using FOP API.
But,
the problem comes if the data supplied will not fit in the single line.
If
the data spans more than 1 line, then the assumption becomes incorrect
and
the remnant portion of the data ( a small chunk, could be one or two
lines)
comes in the second page. This is not good. 
There actually will be number of templates and client filling
out
the templates. So, I'm trying to find a solution where in which at any
point
of time client should be able to know that
 Still how many lines of display remain?. With that
the
client can hold until the server gives it a ready signal again.

I hope I'm clear now... I'm not finding how to solve the above
problem... I think this type of viewing is common in business
applications...
For now, it is assumed that the page size is 8.5in * 11in
and
portrait mode. Is it possible?

I'll be waiting to hear for a solution...

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 8:54 PM
To: [EMAIL PROTECTED]
Subject: Re: Page details support?


The font

Re: Unable to generate PDF file from EJB using FOP

2002-07-10 Thread J.Pietschmann

Amit Rangari wrote:
 Simply the rendering not done 

It is hard to guess your problem from such a sparse description.
Some possibilities:
- Are you using IEx as a client? Do you use a URL ending
   in .pdf to access the PDF?
- Have you used a command line client like wget to retrieve
   the PDF? Do you get an error? Do you get an empty
   or corrupted PDF?
- is there anything interesting in the logs of the EJB container?
- Have you tried the servlet example distributed with FOP?
   Do you have prolems there alos?

J.Pietschmann


 -Original Message-
You are supposed to trim unnecessary old quotes, in particular
if there are completely unrelated old messages therein.
Look at the archives:
   http://marc.theaimsgroup.com/?l=fop-devm=102629436519701w=2
Assume someone searches the archive for white-space-collapse
and gets a hit on your post.

J.Pietschmann


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




Problem printing using FOP 0.20.3

2002-06-13 Thread Craig . Malton

Hello,

   I'm having a problem I can't figure out, hoping someone has done
this before.  I have a FOP program to do some printing from a Java.  I
created a Java Swing Applet that uses FOP to do the printing.  I am using
code out of FOP 0.20.3 distribution that is in org.apache.fop.apps.  I used
the same code in PrintStarter to do the printing.  The printing works fine
(the page looks as I would expect) but the really weird thing is that the
output from the print is going to the manual feed on my printer instead of
to the normal output bin.  What this means is each time I print I have to
walk over to the printer and manually feed in the pages to be
printed...obviously not a good solution :)  The same problem occurs when I
use the fop.bat program to do the printing instead of my program.  Has
anyone encountered anything like this before?  Any solutions would be
greatly appreciated.

Also I've tried doing this to multiple printers from multiple desktops.
The strange thing is that the text I'm printing prints fine, just wants to
go through the manual feed.  If I use Java print from a problem that
doesn't use the AWTRenderer then it goes to the correct feed.

Thanks,

Craig Malton



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




Re: Using FOP with xmlspy -- THANKS FOR HELP, QUESTIONANSWERED

2002-03-19 Thread Malcolm Sinclair

Thanks

Malcolm Sinclair


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




Using FOP with xmlspy

2002-03-18 Thread Malcolm Sinclair

Please excuse my asking this question on a developer's forum -- I realise it's 
off-topic.

Can you give me some hints, or can you put me in touch with someone who has 
successfully produced PDFs from .xml files in xmlspy? I have done this quite 
satisfactorily with fop-0.20.3 from the command line, but not from WITHIN xmlspy.

A few details:
   + I'm using the evaluation version of xmlspy,
   + I'm in touch with Altova's support people; they are trying to help, but as yet 
nothing resolved,
   + I'm a tech writer (novice in XML and no Java knowledge whatsoever)

I suspect the root of the problem is my unfamiliarity with XML; however, your 
suggestions could be very helpful just now


Thank you for your time

Malcolm


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




RE: Using FOP with xmlspy

2002-03-18 Thread Savino, Matt C

I know FOP through XMLSpy doesn't work on NT, I think that may apply to
Win98/95 as well.

Matt Savino



 -Original Message-
 From: Malcolm Sinclair [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 18, 2002 3:08 PM
 To: [EMAIL PROTECTED]
 Subject: Using FOP with xmlspy
 
 
 Please excuse my asking this question on a developer's forum 
 -- I realise it's off-topic.
 
 Can you give me some hints, or can you put me in touch with 
 someone who has successfully produced PDFs from .xml files in 
 xmlspy? I have done this quite satisfactorily with fop-0.20.3 
 from the command line, but not from WITHIN xmlspy.
 
 A few details:
+ I'm using the evaluation version of xmlspy,
+ I'm in touch with Altova's support people; they are 
 trying to help, but as yet nothing resolved,
+ I'm a tech writer (novice in XML and no Java knowledge 
 whatsoever)
 
 I suspect the root of the problem is my unfamiliarity with 
 XML; however, your suggestions could be very helpful just now
 
 
 Thank you for your time
 
 Malcolm
 
 
 -
 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: Using FOP with xmlspy

2002-03-18 Thread Joe Sytniak

According to tech support, FOP only works with Win2k

- Original Message - 
From: Savino, Matt C [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 18, 2002 6:11 PM
Subject: RE: Using FOP with xmlspy


 I know FOP through XMLSpy doesn't work on NT, I think that may apply to
 Win98/95 as well.
 
 Matt Savino
 
 
 
  -Original Message-
  From: Malcolm Sinclair [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 18, 2002 3:08 PM
  To: [EMAIL PROTECTED]
  Subject: Using FOP with xmlspy
  
  
  Please excuse my asking this question on a developer's forum 
  -- I realise it's off-topic.
  
  Can you give me some hints, or can you put me in touch with 
  someone who has successfully produced PDFs from .xml files in 
  xmlspy? I have done this quite satisfactorily with fop-0.20.3 
  from the command line, but not from WITHIN xmlspy.
  
  A few details:
 + I'm using the evaluation version of xmlspy,
 + I'm in touch with Altova's support people; they are 
  trying to help, but as yet nothing resolved,
 + I'm a tech writer (novice in XML and no Java knowledge 
  whatsoever)
  
  I suspect the root of the problem is my unfamiliarity with 
  XML; however, your suggestions could be very helpful just now
  
  
  Thank you for your time
  
  Malcolm
  
  
  -
  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: Using FOP with xmlspy

2002-03-18 Thread Malcolm Sinclair

Thanks Matt -- since I'm using NT, that's certainly shortened my suffering!

Malcolm


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




RE: Using FOP with xmlspy

2002-03-18 Thread Art Welch

Is that XMLSpy that only works with Win2k? FOP most definitely is NOT
limited to Win2k.

FOP should work on any platform with full JDK 1.2+ and AWT support.

-Original Message-
From: Joe Sytniak [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 6:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Using FOP with xmlspy


According to tech support, FOP only works with Win2k

- Original Message - 
From: Savino, Matt C [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 18, 2002 6:11 PM
Subject: RE: Using FOP with xmlspy


 I know FOP through XMLSpy doesn't work on NT, I think that may apply to
 Win98/95 as well.
 
 Matt Savino
 
 
 
  -Original Message-
  From: Malcolm Sinclair [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 18, 2002 3:08 PM
  To: [EMAIL PROTECTED]
  Subject: Using FOP with xmlspy
  
  
  Please excuse my asking this question on a developer's forum 
  -- I realise it's off-topic.
  
  Can you give me some hints, or can you put me in touch with 
  someone who has successfully produced PDFs from .xml files in 
  xmlspy? I have done this quite satisfactorily with fop-0.20.3 
  from the command line, but not from WITHIN xmlspy.
  
  A few details:
 + I'm using the evaluation version of xmlspy,
 + I'm in touch with Altova's support people; they are 
  trying to help, but as yet nothing resolved,
 + I'm a tech writer (novice in XML and no Java knowledge 
  whatsoever)
  
  I suspect the root of the problem is my unfamiliarity with 
  XML; however, your suggestions could be very helpful just now
  
  
  Thank you for your time
  
  Malcolm
  
  
  -
  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: Using FOP with xmlspy

2002-03-18 Thread Joe Sytniak

No - it is an xmlspy limitation. To me, it appears that they do not support
the hook into the java vm with anything but win2k.

I too am running NT. FOP from the command line works fine. Cannot call it
from xmlspy.


- Original Message -
From: Art Welch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 18, 2002 6:27 PM
Subject: RE: Using FOP with xmlspy


 Is that XMLSpy that only works with Win2k? FOP most definitely is NOT
 limited to Win2k.

 FOP should work on any platform with full JDK 1.2+ and AWT support.

 -Original Message-
 From: Joe Sytniak [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 18, 2002 6:19 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Using FOP with xmlspy


 According to tech support, FOP only works with Win2k

 - Original Message -
 From: Savino, Matt C [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, March 18, 2002 6:11 PM
 Subject: RE: Using FOP with xmlspy


  I know FOP through XMLSpy doesn't work on NT, I think that may apply to
  Win98/95 as well.
 
  Matt Savino
 
 
 
   -Original Message-
   From: Malcolm Sinclair [mailto:[EMAIL PROTECTED]]
   Sent: Monday, March 18, 2002 3:08 PM
   To: [EMAIL PROTECTED]
   Subject: Using FOP with xmlspy
  
  
   Please excuse my asking this question on a developer's forum
   -- I realise it's off-topic.
  
   Can you give me some hints, or can you put me in touch with
   someone who has successfully produced PDFs from .xml files in
   xmlspy? I have done this quite satisfactorily with fop-0.20.3
   from the command line, but not from WITHIN xmlspy.
  
   A few details:
  + I'm using the evaluation version of xmlspy,
  + I'm in touch with Altova's support people; they are
   trying to help, but as yet nothing resolved,
  + I'm a tech writer (novice in XML and no Java knowledge
   whatsoever)
  
   I suspect the root of the problem is my unfamiliarity with
   XML; however, your suggestions could be very helpful just now
  
  
   Thank you for your time
  
   Malcolm
  
  
   -
   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]



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




Using Fop Within An Application

2002-02-15 Thread Jim Urban

I am trying to use FOP within my application to process and display (in AWT
mode) a FO I create by processing records from a database.  I get to the
point where I have a String object containing the FO but I can't seem to get
FOP to display its AWT window.  Could someone please pass along some source
code that shows how to do this?  I looked at the doc and the example is
incomplete:

Driver driver = new Driver();
driver.setRenderer(new org.apache.fop.render.awt.AWTRenderer(translator));
driver.render(parser, fileInputSource(args[0]));

What is translator?  The doc I have not only doesn't show how to create
one, its written in German!
What is parser?  What parser do I use?  How do I create one?

Thanks for the help,

Jim Urban
Product Manager
Netsteps Inc.
Suite 505E
1 Pierce Pl.
Itasca, IL  60143
Voice:  (630) 250-3045 x2164
Fax:  (630) 250-3046


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




Re: Using Fop Within An Application (AWTStarter with some changes)

2002-02-15 Thread IvanLatysh

Hello, Jim!
You wrote to FOP Dev [EMAIL PROTECTED] on Fri, 15 Feb 2002 14:15:13 -0600:

 JU I am trying to use FOP within my application to process and display
 JU (in AWT mode) a FO I create by processing records from a database. 
 JU I get to the point where I have a String object containing the FO
 JU but I can't seem to get

You know some times ago I did have same problem.
And I did some changes in AWTStarter class. I attach this file.
Also I am using small library to convert SQL Query to XML file.
Seems working fine.

How to use:

AWTStarter awt = new AWTStarter();
awt.run(new File(xml), new File(xsl));

This starter working with FOP. You shouldn't make any changes in FOP.

2 Developers:
If I did brake any License agreements please let me know.
I just want to help.

---
Yours sincerely, Ivan Latysh.
[EMAIL PROTECTED]
http://ivan.yourmail.com



AWTStarter.java
Description: Binary data

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


RE: Using Fop Within An Application (AWTStarter with some changes)

2002-02-15 Thread Jim Urban

 awt.run(new File(xml), new File(xsl));
This line presents a problem for me.  I no have files.  All I have is a
String containing the FO which I received from a call to the server.  Tthe
server runs xml data retrieved from a database through xslt and returns the
output FO to the client for displaying.  I need to process the string
containing the FO and display the results in a window.

Jim

 -Original Message-
 From: IvanLatysh [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 15, 2002 3:53 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Using Fop Within An Application (AWTStarter with some
 changes)


 Hello, Jim!
 You wrote to FOP Dev [EMAIL PROTECTED] on Fri, 15 Feb
 2002 14:15:13 -0600:

  JU I am trying to use FOP within my application to process and display
  JU (in AWT mode) a FO I create by processing records from a database.
  JU I get to the point where I have a String object containing the FO
  JU but I can't seem to get

 You know some times ago I did have same problem.
 And I did some changes in AWTStarter class. I attach this file.
 Also I am using small library to convert SQL Query to XML file.
 Seems working fine.

 How to use:

 AWTStarter awt = new AWTStarter();
 awt.run(new File(xml), new File(xsl));

 This starter working with FOP. You shouldn't make any changes in FOP.

 2 Developers:
 If I did brake any License agreements please let me know.
 I just want to help.

 ---
 Yours sincerely, Ivan Latysh.
 [EMAIL PROTECTED]
 http://ivan.yourmail.com



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




I need examples in using FOP with Tomcat

2002-02-14 Thread Drazen Nikolic

Hello everyone,

I'm new here and I've try to generate PDF files with
FOP v0.17 through JSP page calling the FOP generator,
but it just don't work. 
Does somebody have some examples how to do such a
thing?

And one more question: where and how can I find
xml-fop/examples directory at xml.apache.org?

Thanks in advance.

Best Regards,
Drasko

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Re: How to rotate text 90 degrees using fop, please help me???

2002-01-10 Thread Keiron Liddle

On 2002.01.10 08:57 Manuel Moons wrote:
 I want the text to go from the bottom of the page to the top. But if it 
 goes the other way around I can live with it.
 
 Can you tell me how you did it using svg:text, because I've also tried 
 it but it seemed that fop could not handle the svg inside the xsl:fo 
 document.
 
 So how do I put an svg into my xsl:fo?

You could always look at the examples.
Then you can use almost any type of svg in your document.

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




How to rotate text 90 degrees using fop, please help me???

2002-01-09 Thread Manuel Moons

Does anyone know how I can rotate text 90 degrees, so that it appears 
vertically.  I have used reference-orientation but this is not supported by 
fop.  I also tried embedding SVG but this also was refused by fop, both 
worked fine in Antenna XSL-formatter though.

Can anybody please help me???

Greetings Manuel

_
Download MSN Explorer gratis van http://explorer.msn.nl/intl.asp.


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




Re: How to rotate text 90 degrees using fop, please help me???

2002-01-09 Thread Alex McLintock

 --- Manuel Moons [EMAIL PROTECTED] wrote: 
 Does anyone know how I can rotate text 90 degrees, so that it appears 
 vertically.  I have used reference-orientation but this is not supported by 
 fop.  I also tried embedding SVG but this also was refused by fop, both 
 worked fine in Antenna XSL-formatter though.
 

You need to be a bit more specific. Do you need the letters to appear the right way up 
but
immediately below one another or should the letters be on their side. If the latter 
should they go
down the page or up the page?

I have had this working fine by using SVG text. (I was using it for the axes of an SVG 
chart)
but this was six months ago.

I remember looking into this and seeing that the relevant XSL:FO functionality wasn't 
implemented
in FOP but this was a long time ago.

Alex


=
Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
---
SF and Computing Book News and Reviews: http://news.diversebooks.com/
Get Your XML T-Shirt t-shirt/ at http://www.inversity.co.uk/
COMPETITION : http://news.diversebooks.com/article.pl?sid=01/10/08/1947255

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




RE: How to rotate text 90 degrees using fop, please help me???

2002-01-09 Thread Raúl Carazo

In fact, I'm using Fop 0.20.1 and reference-orientation or direction are
not implemented (yet, they say!!)

Well, I am also looking for an answer, but unluckily. If someone
discover something, make me know...

Salve

- Original Message -
From: Alex McLintock [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 09, 2002 5:24 PM
Subject: Re: How to rotate text 90 degrees using fop, please help me???


 --- Manuel Moons [EMAIL PROTECTED] wrote:
  Does anyone know how I can rotate text 90 degrees, so that it appears
  vertically.  I have used reference-orientation but this is not supported
by
  fop.  I also tried embedding SVG but this also was refused by fop, both
  worked fine in Antenna XSL-formatter though.
 

 You need to be a bit more specific. Do you need the letters to appear the
right way up but
 immediately below one another or should the letters be on their side. If
the latter should they go
 down the page or up the page?

 I have had this working fine by using SVG text. (I was using it for the
axes of an SVG chart)
 but this was six months ago.

 I remember looking into this and seeing that the relevant XSL:FO
functionality wasn't implemented
 in FOP but this was a long time ago.

 Alex


 =
 Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
 OpenWeb Analysts Ltd, http://www.OWAL.co.uk/
 ---
 SF and Computing Book News and Reviews: http://news.diversebooks.com/
 Get Your XML T-Shirt t-shirt/ at http://www.inversity.co.uk/
 COMPETITION : http://news.diversebooks.com/article.pl?sid=01/10/08/1947255

 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts
 http://uk.my.yahoo.com

 -
 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: using fop

2001-10-29 Thread Bruno Polder

Hello,

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


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

init-args:

init:

compile:

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


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


thanks in advance
bruno


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


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

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

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

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

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




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




Re: using fop

2001-10-29 Thread Keiron Liddle

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

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

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




Re: using fop

2001-10-28 Thread Keiron Liddle

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

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

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

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

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




using fop

2001-10-27 Thread Bruno Polder



hi to all

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



Re: FOP in WebSphere and some general notes (Was: Re: Using FOP in Servlet)

2001-10-08 Thread Keiron Liddle

On Fri, 05 Oct 2001 15:32:10 Shkuro, Yuri wrote:
 I totally agree with the suggestion to get rid of as much extra
 libraries as possible.  Our infrastructore guys were very
 perplexed when I told them that I am going to use FOP in my
 project, and, by the way, I need those five extra jars in the
 app server class path.  I don't know how much avalon framework
 is integrated into FOP, but with respect to logkit - logging
 is a simple API, and since FOP already supports pluggable
 loggers, why not indeed make those loggers API driven, instead
 of logkit dependent?

FOP did not support pluggable loggers properly.
There needs to be some logging implementation and having our own, when
there are others around, is not the best thing.

The important things for logging are
- handle threads
- inversion of control

 I was able to use FOP without including jimi.jar, but batik is
 required even though I don't use SVG.  Why is that?  Can't it be
 decoupled somehow and only loaded when SVG is used?

As I have said before, yes it can be decoupled. This will require the user
agent to be implemented and a few other areas to be improved.
The best way to get this done is to help out.
There are a large number of things that need to be done and it seems a
large number of people who want them done. Helping out is a good way to get
these things done.

 YS
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 05, 2001 8:49 AM
 To: [EMAIL PROTECTED]
 Subject: FOP in WebSphere and some general notes (Was: Re: Using FOP in
 Servlet)
 
 
 
 
 Karen Lease wrote:
  Configuration.put(baseDir, SOMEURLSTRING);
 
 Thanks. I meanwhile figured it out that i could use
 SOMEURLSTRING=file:+xslFileName
 
 Some other notes on FOP 0.20.2 in general and using in in an IBM
 WebSphere Server in particular (including problems actually caused
 by Batik):
 - IBM has their own Logging mechanism (though it's primitive). Using
   LogKit is of no real use for me, it just forces me to put logkit.jar
   in the classpath which noticable increases startup time
   (invconvenient in development only, but i *am* developing...). Could
   you use an lightweight interface which belongs to a FOP package, and
   an default implementation which dispates to an LogKit logger?
   Something like the ErrorListener class in JAXP. I could then provide
   my own implementation to the interface without having to pull in the
   whole LogKit. This would also make for an much better separation of
   the libraries, there would be just one class in FOP which uses
   LogKit stuff in the delegation and setup routines.
 - Something similar goes for the avalon framework. I thought i could
   avoid putting the jar in the classpath by not using the Driver class,
   but it still goes in by a remarkably twisted way: somewhere during
   SVG rendering in Batik a batik.bridge.BridgeContext is created, which
   quite unnecessarily creates a (Batik) DocumentLoader (there is no
   document because FOP gets the XML already as SAX event stream), which
   in turn gets a XML Parser name from the SVGUserAgent supplied by FOP
   which gets it from the fop.apps.Driver class. While the primary fault
   is in Batik which should create stuff more lazily (you may forward
   this complaint!), i don't think the fop.apps.Driver should act both
   as central repository for configuration settings and be an Avalon
   loggable at the same time. In fact i'd like to have an interface to
   FOP which resembles slightly more the XSLT TransformerFactory/
   Transformer interfaces, with setting parameters using a Parameters
   object like Java Mail mixed in. The framework stuff including setting
   up a LogKit logger and and all that could be build around that. If
   this catches your curiosity, ask me to write up a more complete
   specification.
 - There is a unfortunate problem with Batik and the IBM class loaders.
   In Websphere, there is an ApplicationServer, a JVM running in its
   own OS process, which can contain several WebApps. Each WebApp may
   have its own classpath settings. At first i added batik.jar (and all
   other jars) to the WebApp specific classpath. Several Batik classes
   have static class variables which register some stuff in the AWT run
   time at class load time. If there is more than one WebAbb using
   Batik, directly or indirectly, the first WebApp has no problems, but
   the WebApp coming second gets errors roughly like instance NNN of
   class name exists. I got around this by adding the jars to the
   ApplicationServer classpath, where they really belong  (but this is
   awkward without permission to mangle the server startup files).
 
 Some minor points:
 - In fop.apps.Driver, the _areaTree variable and related imports and
   statements appear to be defunct and can probably be deleted.
 - FOP gets a null pointer exception if there is no default namespace
   and an element without a namespace prefix slipped into the input

FOP in WebSphere and some general notes (Was: Re: Using FOP in Servlet)

2001-10-05 Thread joerg . pietschmann



Karen Lease wrote:
 Configuration.put(baseDir, SOMEURLSTRING);

Thanks. I meanwhile figured it out that i could use
SOMEURLSTRING=file:+xslFileName

Some other notes on FOP 0.20.2 in general and using in in an IBM
WebSphere Server in particular (including problems actually caused
by Batik):
- IBM has their own Logging mechanism (though it's primitive). Using
  LogKit is of no real use for me, it just forces me to put logkit.jar
  in the classpath which noticable increases startup time
  (invconvenient in development only, but i *am* developing...). Could
  you use an lightweight interface which belongs to a FOP package, and
  an default implementation which dispates to an LogKit logger?
  Something like the ErrorListener class in JAXP. I could then provide
  my own implementation to the interface without having to pull in the
  whole LogKit. This would also make for an much better separation of
  the libraries, there would be just one class in FOP which uses
  LogKit stuff in the delegation and setup routines.
- Something similar goes for the avalon framework. I thought i could
  avoid putting the jar in the classpath by not using the Driver class,
  but it still goes in by a remarkably twisted way: somewhere during
  SVG rendering in Batik a batik.bridge.BridgeContext is created, which
  quite unnecessarily creates a (Batik) DocumentLoader (there is no
  document because FOP gets the XML already as SAX event stream), which
  in turn gets a XML Parser name from the SVGUserAgent supplied by FOP
  which gets it from the fop.apps.Driver class. While the primary fault
  is in Batik which should create stuff more lazily (you may forward
  this complaint!), i don't think the fop.apps.Driver should act both
  as central repository for configuration settings and be an Avalon
  loggable at the same time. In fact i'd like to have an interface to
  FOP which resembles slightly more the XSLT TransformerFactory/
  Transformer interfaces, with setting parameters using a Parameters
  object like Java Mail mixed in. The framework stuff including setting
  up a LogKit logger and and all that could be build around that. If
  this catches your curiosity, ask me to write up a more complete
  specification.
- There is a unfortunate problem with Batik and the IBM class loaders.
  In Websphere, there is an ApplicationServer, a JVM running in its
  own OS process, which can contain several WebApps. Each WebApp may
  have its own classpath settings. At first i added batik.jar (and all
  other jars) to the WebApp specific classpath. Several Batik classes
  have static class variables which register some stuff in the AWT run
  time at class load time. If there is more than one WebAbb using
  Batik, directly or indirectly, the first WebApp has no problems, but
  the WebApp coming second gets errors roughly like instance NNN of
  class name exists. I got around this by adding the jars to the
  ApplicationServer classpath, where they really belong  (but this is
  awkward without permission to mangle the server startup files).

Some minor points:
- In fop.apps.Driver, the _areaTree variable and related imports and
  statements appear to be defunct and can probably be deleted.
- FOP gets a null pointer exception if there is no default namespace
  and an element without a namespace prefix slipped into the input.
  This is because in fop/fo/FOTreeBuilder.java Line 218:
HashMap table = (HashMap)fobjTable.get(uri);
fobjMaker = (FObj.Maker)table.get(localName);
  table is null. I believe this also happens always if the namespace
  URI is not recognized.
- The PixelToMM factor (0.35277...) is repeated remarkably often
  in the source.

Regards
J. Pietschmann




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




Using FOP in Servlet

2001-10-04 Thread Joerg Pietschmann

Hello,
i use FOP in a servlet together with the Saxon XSL processor.
I implemented the communication between the processors as
a SAX event stream. The following code snippet was developed
with FOP 0.20.1, i think with 0.20.2 i could use the Driver
again but i don't want to bother with this yet.

  Transformer transformer=getTransformer(xslFile);
  // setup FOP
  org.apache.fop.system.BufferManager bufferManager
=new org.apache.fop.system.BufferManager();
  org.apache.fop.fo.FOTreeBuilder treeBuilder
=new org.apache.fop.fo.FOTreeBuilder();
  treeBuilder.setBufferManager(bufferManager);
  org.apache.fop.fo.ElementMapping mapping;
  mapping=(org.apache.fop.fo.ElementMapping)Class.forName(
   org.apache.fop.fo.StandardElementMapping).newInstance();
  mapping.addToBuilder(treeBuilder);
   [ more mapping code lifted from Driver.java snipped ]
  org.apache.fop.apps.StreamRenderer streamRenderer
 = new org.apache.fop.apps.StreamRenderer(out,
  new org.apache.fop.render.pdf.PDFRenderer());
  treeBuilder.setStreamRenderer(streamRenderer);
   [ setting up log snipped - a nightmare! ]
  // the transformer gets its input data wia a customized XMLReader
  // from the servlet parameters
  transformer.transform(new SAXSource(new DocXMLReader(),
  new DocServletParameterInputSource(req)),
new SAXResult(treeBuilder));

  byte[] content = out.toByteArray();
  res.setContentType(application/pdf);
  res.setContentLength(content.length);
  res.getOutputStream().write(content);
  res.getOutputStream().flush();

The problem i want help about is the exception
[ERROR]: Could not set base URL for svg
java.net.MalformedURLException: no protocol:
at java.net.URL.init(URL.java:473)
at java.net.URL.init(URL.java:376)
at java.net.URL.init(URL.java:330)
at org.apache.fop.svg.SVGElement.layout(SVGElement.java:143)
at 
org.apache.fop.fo.flow.InstreamForeignObject.layout(InstreamForeignObject.java:198)
at org.apache.fop.fo.flow.Block.layout(Block.java:259)
Fortunately, the file renders fine, the missing information is
aparently not needed.
The SVG is defined in the XSL file. How do i set the base URL for
the SVG element, just in order to pacifiy the software? Should i use
a real file name (for example the name of the XSL file) or is it
sufficient to use ?


J.Pietschmann

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




Re: Using FOP in Servlet

2001-10-04 Thread Karen Lease

Joerg,

I think the easiest way to do this is something like this (taken from
the Fop task in org/apache/fop/tools/anttasks/Fop.java)
 Configuration.put(baseDir, SOMEURLSTRING);
You may want to do the whole configuration initialization process anyway
just to get things like compression and fonts. When running FOP from the
command line, most of the configuration work happens in the Options
class (org.apache.fop.apps), so you might want to look at that too.

Regards,
Karen Lease

Joerg Pietschmann wrote:
 
 Hello,
 i use FOP in a servlet together with the Saxon XSL processor.
 I implemented the communication between the processors as
 a SAX event stream. The following code snippet was developed
 with FOP 0.20.1, i think with 0.20.2 i could use the Driver
 again but i don't want to bother with this yet.
 
[SNIP...]

 The problem i want help about is the exception
 [ERROR]: Could not set base URL for svg
 java.net.MalformedURLException: no protocol:
 at java.net.URL.init(URL.java:473)
 at java.net.URL.init(URL.java:376)
 at java.net.URL.init(URL.java:330)
 at org.apache.fop.svg.SVGElement.layout(SVGElement.java:143)
 at 
org.apache.fop.fo.flow.InstreamForeignObject.layout(InstreamForeignObject.java:198)
 at org.apache.fop.fo.flow.Block.layout(Block.java:259)
 Fortunately, the file renders fine, the missing information is
 aparently not needed.
 The SVG is defined in the XSL file. How do i set the base URL for
 the SVG element, just in order to pacifiy the software? Should i use
 a real file name (for example the name of the XSL file) or is it
 sufficient to use ?
 
 J.Pietschmann
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Fop2PDFServlet using FOP 0.20.1

2001-09-24 Thread MEMMADI Said

Fop2PDFServlet using FOP 0.20.1 
 
 


Hi all,
I need example of servlet using FOP 0.20.1 and wich generate PDF file
from xsl file and xmlString.

I've old code wich don't work now with this last version.

What is the best way xmlString or creating DOM object if I've not xml
file.


Thanks in advance.



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




Concurrency Problem with mutiple pages being generated when using fop

2001-09-12 Thread Gagan Bhalla

I am facing a similar problem to what was described in
http://marc.theaimsgroup.com/?l=fop-devm=100015708206260w=2
and
http://marc.theaimsgroup.com/?l=fop-devm=100019510024180w=2

Except, in my case, fop starts producing too many pages because of the size
of pictures being used, in addition to the table headers described in the
above link. The above link explains this to be a problem in Cocoon's
org.apache.cocoon.formatter.FO2PDFFormatter.format() method. I have looked
at the Cocoon project pages and could not find a fix for this problem. I
have tried getting all pics being used to be less than the size of 1/4 page
and I still get the concurrency problem. Earlier, I was getting the dreaded
OME exception, but that got fixed after applying a patch that we found on
the FAQ's at http://www.owal.co.uk:8090 (which seems to be down for the last
couple of days). I am using fop 0.18 with the memory patch and am running
JDK1.2.2 with -ms128m -mx256m as the options. In the above links, it is
mentioned that this problem of multiple pages being generated is not fixed
even when using fop0.20, therefore I did'nt want to upgrade.  I have tried
increasing the memory option when starting the JVM but that does'nt make
much difference either.

 I don't think the patch for the OME fixes the problem with too many pages
being generated. Is there a patch available to fix that? Thanks.

Gagan


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




[Bug 1424] - error rendering SVG file using FOP 18.1 and later

2001-08-10 Thread bugzilla

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

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

*** shadow/1424 Thu Aug  9 05:13:03 2001
--- shadow/1424.tmp.27533   Fri Aug 10 01:05:42 2001
***
*** 509,511 
--- 509,514 
  rendering areas with effects is a bit difficult.
  If the same results as version 18.0 are required then the effects should be 
  removed from the svg.
+ 
+ --- Additional Comments From [EMAIL PROTECTED]  2001-08-10 01:05 ---
+ *** Bug 2891 has been marked as a duplicate of this bug. ***
\ No newline at end of file

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




Re: Using FOP 0.19-CVS to create PDF

2001-08-09 Thread Alex McLintock

 --- Don Wellington [EMAIL PROTECTED] wrote:  Hi Arved-
 
 It is with FOP-0.19 not the latest CVS.  I am stuck
 behind a firewall, so CVS is not really an option.


I thought that too for some time but using WinCVS I managed to download
the CVS version from CVS. You need to tell WinCVS about your firewall proxies.


Alex

=
Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
SF and Computing Book News and Reviews: http://news.diversebooks.com/
Get Your XML T-Shirt t-shirt/ at http://www.inversity.co.uk/


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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




Re: Using FOP 0.19-CVS to create PDF

2001-08-09 Thread Don Wellington

My firewall does not allow IP tunneling.  Without that
even WinCVS doesn't help.

Don

--- Alex McLintock [EMAIL PROTECTED] wrote:
  --- Don Wellington [EMAIL PROTECTED] wrote:
  Hi Arved-
  
  It is with FOP-0.19 not the latest CVS.  I am
 stuck
  behind a firewall, so CVS is not really an option.
 
 
 I thought that too for some time but using WinCVS I
 managed to download
 the CVS version from CVS. You need to tell WinCVS
 about your firewall proxies.
 
 
 Alex
 
 =
 Alex McLintock[EMAIL PROTECTED]Open Source
 Consultancy in London
 OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
 SF and Computing Book News and Reviews:
 http://news.diversebooks.com/
 Get Your XML T-Shirt t-shirt/ at
 http://www.inversity.co.uk/
 


 Do You Yahoo!?
 Get your free @yahoo.co.uk address at
 http://mail.yahoo.co.uk
 or your free @yahoo.ie address at
 http://mail.yahoo.ie
 

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


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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




Can I use .opf file for creating pdf using fop?????

2001-07-26 Thread rajeev nair

Hi all,
Can anyone help me how i can use .opf file
for creating .pdf using fop.
What are the different steps to follow ?
Is their any fop class which take .opf file as input
and produce .pdf?

thanks in advance.
rajiv

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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




XHTML to PDF using FOP????

2001-07-11 Thread rajeev nair

HELLO,
can anybody help me to convert my XHTMLinto pdf.
the XHTML I'M GIVING BELOW.if I avoid all the anchor
tags(a)tags and table tags and make it pure xsl data
file then i'm easily able to write xslfo file for this
and it is making good pdf.
But for the given Xhtml file how i write xslfo.My real
confusion is where there is table,tr,td tags and also
anchor tags.
Can anyone help me.

?xml version=1.0?
html
head
link rel=stylesheet href=test2.css
type=text/x-oeb1-css/
/head
body
a name=toc
toc
table
tr
td align=left
h2
bContent/b
/h2
/td
/tr
tr
a href=#chapTitle Image/a
/tr
tr
a href=#chap0Page1/a
/tr

tr
a href=#chap1Page2/a
/tr

tr
a href=#chap2Page3/a
/tr

tr
a href=#chap3Page4/a
/tr

tr
a href=#chap4Page5/a
/tr

tr
a href=#chap5Page6/a
/tr

/table
/toc
/a
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/
a name=chap
chap
table border=25
img src=part1.gif/
/table
/chap
/a
br/
br/
br/
br/
br/
br/
a name=chap0
chap0
book3.Click the sheet-tab Score to bring
the worksheet Score to front. Now let us select the
range B4:E7 (figure 10.26 shows the data to be
copied). Click the cell B4, press the Shift key (and
hold it down), click the cell E7, release the Shift
key. Now the range B4:E7 is successfully
selected./book
book4.Choose Edit  Copy (or click the Copy
tool) and the data in the range gets copied to the
clipboard. Also a running, dotted rectangle (also
called marching ants, marquis, or moving boundary)
appears around the selected range. These marching ants
indicate that Paste tool (and command Paste in the
Edit-menu) is enabled. Paste tool remains enabled as
long as marching ants are present. In order to remove
these marching ants simply strike the Esc key. /book
book5.We want to paste this data in the 
Sheet2
of Sales Data.xls therefore, choose Window  Sales Data
(or click the Sales Data icon on the taskbar) in order
to make the workbook Sales Data to be current one.
Then click the sheet-tab Sheet2 to bring the worksheet
Sheet2 to the front. /book
book6.Click the cell B4 and choose Edit  
Paste
(or click the Paste tool). Alternatively, click the
cell B4 and simply strike the Enter key. Also, strike
the Esc key to remove the marching ants. /book
book1When you choose Edit  Cut (or click the Cut
tool) then data in the selected cells is moved to the
clipboard. Before concluding this section, notice:
/book1
table border=1
tr
th
img src=pen.gif/
 

RE: XHTML to PDF using FOP????

2001-07-11 Thread Michiel Verhoef

Hi,

First, there is a weird d element in your last table. I'm no XHTML expert
but it is not HTML AFAIK.

Second, some of the tr are missing td elements. A tr needs a td (at
least, in HTML it does)
so my guess is that your XHTML is not valid HTML. Any xsl that converts
valid HTML to say, fo will give
errors or at least not the desired result..

HTH,

Michiel

$ -Original Message-
$ From: rajeev nair [mailto:[EMAIL PROTECTED]]
$ Sent: woensdag 11 juli 2001 14:15
$ To: [EMAIL PROTECTED]
$ Subject: XHTML to PDF using FOP
$ 
$ 
$ HELLO,
$ can anybody help me to convert my XHTMLinto pdf.
$ the XHTML I'M GIVING BELOW.if I avoid all the anchor
$ tags(a)tags and table tags and make it pure xsl data
$ file then i'm easily able to write xslfo file for this
$ and it is making good pdf.
$ But for the given Xhtml file how i write xslfo.My real
$ confusion is where there is table,tr,td tags and also
$ anchor tags.
$ Can anyone help me.
$ 
$ ?xml version=1.0?
$ html
$   head
$   link rel=stylesheet href=test2.css
$ type=text/x-oeb1-css/
$   /head
$   body
$   a name=toc
$   toc
$   table
$   tr
$   td align=left
$   h2
$   
$ bContent/b
$   /h2
$   /td
$   /tr
$   tr
$   a 
$ href=#chapTitle Image/a
$   /tr
$   tr
$   a 
$ href=#chap0Page1/a
$   /tr
$   
$   tr
$   a 
$ href=#chap1Page2/a
$   /tr
$   
$   tr
$   a 
$ href=#chap2Page3/a
$   /tr
$   
$   tr
$   a 
$ href=#chap3Page4/a
$   /tr
$   
$   tr
$   a 
$ href=#chap4Page5/a
$   /tr
$   
$   tr
$   a 
$ href=#chap5Page6/a
$   /tr
$   
$   /table
$   /toc
$   /a
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   a name=chap
$   chap
$   table border=25
$   img src=part1.gif/
$   /table
$   /chap
$   /a
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   a name=chap0
$   chap0
$   book3.Click the 
$ sheet-tab Score to bring
$ the worksheet Score to front. Now let us select the
$ range B4:E7 (figure 10.26 shows the data to be
$ copied). Click the cell B4, press the Shift key (and
$ hold it down), click the cell E7, release the Shift
$ key. Now the range B4:E7 is successfully
$ selected./book
$   book4.Choose Edit  
$ Copy (or click the Copy
$ tool) and the data in the range gets copied to the
$ clipboard. Also a running, dotted rectangle (also
$ called marching ants, marquis, or moving boundary)
$ appears around the selected range. These marching ants
$ indicate that Paste tool (and command Paste in the
$ Edit-menu) is enabled. Paste tool remains enabled as
$ long as marching ants are present. In order to remove
$ these marching ants simply strike the Esc key. /book
$   book5.We want to 
$ paste this data in the Sheet2
$ of Sales Data.xls therefore, choose Window  Sales Data
$ (or click the Sales Data icon on the taskbar) in order
$ to make the workbook Sales Data to be current one.
$ Then click the sheet-tab Sheet2 to bring the worksheet
$ Sheet2 to the front. /book
$   book6.Click

Drawing lines in PDF using FOP

2001-07-04 Thread Ricardo Coutinho

Hi all,

I have the requirement to draw shapes/lines (horizontal, vertical, diagonal)
based on x/y coordinates passed on to me. Is this possible?

I checked the xslfoRef.pdf that comes with FOP and there was no indication
that this is possible. I have also searched the net and came up with no
references/examples.

If someone has any ideas/examples, I would be grateful if you would pass
them on to me.

Ricardo Coutinho


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




Re[2]: Memory leaks when using FOP 0.19.0 many times

2001-06-29 Thread Eugene Nedzvetsky

Hello Arved,

Friday, June 29, 2001, 2:40:17 AM, you wrote:

AS Can I ask what version of FOP you are using? Recent versions reflect memory 
AS buffering work done by Seshadri GK (not all of it yet...I have a last patch 
AS of his to commit, which is causing me some aggro at the moment); it may be 
AS that your use of FOP can take some advantage of that.

It`s other problem with memory,which occurs when FOP is built-in in
other application.After several start FOP in the application there is
a error Out of memory.It can arise when frequently are used static
variable in FOP.
AS Regards,
AS Arved Sandstrom

-- 
Best regards,
 Eugenemailto:[EMAIL PROTECTED]



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




Re: Memory leaks when using FOP 0.19.0 many times

2001-06-29 Thread Chetan Vig

Hi Arved,

Regarding the same subject. I got the latest patch from Seshadariand it works
great (with FOP 0.19)...however, the problem is every time when u run the driver
(either from an application or a servlet) it writes to a temp/serilaized
filethis makes the process single threaded...If one tries to run multiple
threads at the same time it bombs the server. As a result, I am not able to use
this stuff yet for my users.

We will have to come up with some kind of solution for that.

Thanks,

-Chetan Vig


Arved Sandstrom wrote:

 On Wednesday 27 June 2001 13:35, Mikko Honkala wrote:

   Dear FOP developers,
 
  it seems that there is significant memory leaks in FOP. There must be some
  static structures which keep collecting objects. Attached is a simple java
  program, which converts readme.fo - readme.pdf 100 times in a row. The
  loop looks like this (see the whole program as an attachment): This loop
  eats about 2 MB of memory each iteration. It also slows down after few
  dozen iterations.

 Hi, Mikko

 I've known for months that you guys are working with FOP, and meant to touch
 base before this, to see if there are any avenues or opportunities for
 cooperation. Still, this is as good a reason as any to start resolving issues
 that pertain to your use of FOP with X-Smiles.

 Can I ask what version of FOP you are using? Recent versions reflect memory
 buffering work done by Seshadri GK (not all of it yet...I have a last patch
 of his to commit, which is causing me some aggro at the moment); it may be
 that your use of FOP can take some advantage of that.

 Regards,
 Arved Sandstrom
 --
 Fairly Senior Software Type
 e-plicity (http://www.e-plicity.com)
 Halifax, Nova Scotia
 Wireless * B2B * J2EE * XML

 -
 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: Memory leaks when using FOP 0.19.0 many times

2001-06-28 Thread Arved Sandstrom

On Wednesday 27 June 2001 13:35, Mikko Honkala wrote:

  Dear FOP developers,

 it seems that there is significant memory leaks in FOP. There must be some
 static structures which keep collecting objects. Attached is a simple java
 program, which converts readme.fo - readme.pdf 100 times in a row. The
 loop looks like this (see the whole program as an attachment): This loop
 eats about 2 MB of memory each iteration. It also slows down after few
 dozen iterations.

Hi, Mikko

I've known for months that you guys are working with FOP, and meant to touch 
base before this, to see if there are any avenues or opportunities for 
cooperation. Still, this is as good a reason as any to start resolving issues 
that pertain to your use of FOP with X-Smiles.

Can I ask what version of FOP you are using? Recent versions reflect memory 
buffering work done by Seshadri GK (not all of it yet...I have a last patch 
of his to commit, which is causing me some aggro at the moment); it may be 
that your use of FOP can take some advantage of that.

Regards,
Arved Sandstrom
-- 
Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Halifax, Nova Scotia
Wireless * B2B * J2EE * XML

-
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: 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]




Re: Printing PDF using FOP...

2001-06-19 Thread Hitesh Bagchi

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]




Re: Printing PDF using FOP.

2001-06-16 Thread Hitesh Bagchi

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

Art Welch wrote:

 To use the PCLRenderer you just need to tell the Driver to use the
 PCLRenderer either by passing the symbolic constant for this or by passing
 an instance of the PCLRenderer class. For example:

 fopDriver.setRenderer(Driver.RENDER_PCL);
 or
 fopDriver.setRenderer(new PCLRenderer());

 If you are invoking FOP from the command line then you can use the -pcl
 switch to invoke the PCL Renderer.

 I am not sure what was in the various ZIP files. I would have thought that
 everything should be in there.

 Art

 -Original Message-
 From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 14, 2001 8:28 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Printing PDF using FOP...

 I downloaded the 0.18 version of FOP (Fop-0.18.1-DEV-src.zip).
 In it I did find the PCLRenderer class but found no example explaining how
 to
 use it.
 Also the code I found in the src directory do not contain the
 org.apache.fop.render.pcl package and all the new packages of 0.18 although
 the
 javadocs has them. Did I downloaded the wrong zip file.?
 Can somebody provide me with a code snippet as to how to use PCLRenderer.
 Hitesh..

 Art Welch wrote:

  I think that you will want to upgrade to a newer version of FOP. I believe
  that the PrintCommandLine/AWTRenderer were not functioning in earlier
  versions. The PCLRenderer is also a fairly recent addition.
 
  HTH,
  Art
 
  -Original Message-
  From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, June 13, 2001 8:04 AM
  To: [EMAIL PROTECTED]
  Subject: Printing PDF using FOP...
 
  Hi,
  I am new to fop and I am not sure whether this is the right place to post
  this
  question.
  Actually what I intend to do is:
  Write an application which will generate a pdf file using fop and then
 send
  it
  to the printer without user intervention. I am able to generate the pdf
 file
  using fop. It works perfectly. But I am struggling for the past few days
 as
  to
  how to print the pdf using fop. I went through the mailing list archives
 and
  found some references to AWTRenderer and PCLRenderer but I couldn't work
 out
  a
  solution. Moreover I didn't find the PCLRenderer in fop 0.17. Is it a new
  addition.?
  I tried running the PrintCommandLine program in fop but it always gives me
  an
  error:
  using SAX parser org.apache.xerces.parsers.SAXParser
  using element mapping org.apache.fop.fo.StandardElementMapping
  using element mapping org.apache.fop.svg.SVGElementMapping
  using property list mapping
  org.apache.fop.fo.StandardPropertyListMapping
  using property list mapping org.apache.fop.svg.SVGPropertyListMapping
  building formatting object tree
  WARNING: Unknown formatting object
  http://www.w3.org/1999/XSL/Transform^stylesheet
  FATAL ERROR: null
 
  Can somebody please help. My query is how to send the generated pdf
 document
  to
  the printer to print with the default options.
 
  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]

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




Re: Printing PDF using FOP...

2001-06-15 Thread Hitesh Bagchi

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

Art Welch wrote:

 To use the PCLRenderer you just need to tell the Driver to use the
 PCLRenderer either by passing the symbolic constant for this or by passing
 an instance of the PCLRenderer class. For example:

 fopDriver.setRenderer(Driver.RENDER_PCL);
 or
 fopDriver.setRenderer(new PCLRenderer());

 If you are invoking FOP from the command line then you can use the -pcl
 switch to invoke the PCL Renderer.

 I am not sure what was in the various ZIP files. I would have thought that
 everything should be in there.

 Art

 -Original Message-
 From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 14, 2001 8:28 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Printing PDF using FOP...

 I downloaded the 0.18 version of FOP (Fop-0.18.1-DEV-src.zip).
 In it I did find the PCLRenderer class but found no example explaining how
 to
 use it.
 Also the code I found in the src directory do not contain the
 org.apache.fop.render.pcl package and all the new packages of 0.18 although
 the
 javadocs has them. Did I downloaded the wrong zip file.?
 Can somebody provide me with a code snippet as to how to use PCLRenderer.
 Hitesh..

 Art Welch wrote:

  I think that you will want to upgrade to a newer version of FOP. I believe
  that the PrintCommandLine/AWTRenderer were not functioning in earlier
  versions. The PCLRenderer is also a fairly recent addition.
 
  HTH,
  Art
 
  -Original Message-
  From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, June 13, 2001 8:04 AM
  To: [EMAIL PROTECTED]
  Subject: Printing PDF using FOP...
 
  Hi,
  I am new to fop and I am not sure whether this is the right place to post
  this
  question.
  Actually what I intend to do is:
  Write an application which will generate a pdf file using fop and then
 send
  it
  to the printer without user intervention. I am able to generate the pdf
 file
  using fop. It works perfectly. But I am struggling for the past few days
 as
  to
  how to print the pdf using fop. I went through the mailing list archives
 and
  found some references to AWTRenderer and PCLRenderer but I couldn't work
 out
  a
  solution. Moreover I didn't find the PCLRenderer in fop 0.17. Is it a new
  addition.?
  I tried running the PrintCommandLine program in fop but it always gives me
  an
  error:
  using SAX parser org.apache.xerces.parsers.SAXParser
  using element mapping org.apache.fop.fo.StandardElementMapping
  using element mapping org.apache.fop.svg.SVGElementMapping
  using property list mapping
  org.apache.fop.fo.StandardPropertyListMapping
  using property list mapping org.apache.fop.svg.SVGPropertyListMapping
  building formatting object tree
  WARNING: Unknown formatting object
  http://www.w3.org/1999/XSL/Transform^stylesheet
  FATAL ERROR: null
 
  Can somebody please help. My query is how to send the generated pdf
 document
  to
  the printer to print with the default options.
 
  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]

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




Re: Printing PDF using FOP...

2001-06-15 Thread Petr Andrs

That is interesting, but how can I print with displaying print dialog. 
In my java program I need to to print PDF generated by fop. I need to 
have print dialog displayed and I need acrobat to close automatically 
after printing. I tried acread32.exe /p pdffile, which dispalys print 
dialog but arcorbat reader stays open after printing.

pa

On 15 Jun 2001, at 9:37 Maurice Rice wrote about Re: Printing PDF using FOP... :

 You can use the Acrobat reader to send a pdf file directly to your
 printer.
 
 Try building a command string using the information at
 http://marc.theaimsgroup.com/?l=fop-devm=9865403484w=2.
 
 Execute the command using Runtime.exec().
 
 - Original Message -
 From: Hitesh Bagchi [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, June 15, 2001 7:13 AM
 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: Printing PDF using FOP...

2001-06-15 Thread Art Welch

Actually the output goes to an output stream. Unfortunately sending the
output stream is a little platform dependent. On Windows 2000 I just open an
OutputStream to the desired printer. Under Unix I exec an lp command and
get the output stream for that:

proc = Runtime.getRuntime().exec(lp -d + output +  -o -dp -);
out = proc.getOutputStream();

Similar things can be done at the command line, but I do not remember the
syntax off hand. For windows I think that specifying an URL for the printer
works. I do not remember exactly how I got the command line to print
directly under Unix - maybe specifying stdout for the file name and then
piping the output to lp. I do not use the command line much. For my
application FOP is invoked by a servlet.

HTH,
Art

-Original Message-
From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 7:14 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

Art Welch wrote:

 To use the PCLRenderer you just need to tell the Driver to use the
 PCLRenderer either by passing the symbolic constant for this or by passing
 an instance of the PCLRenderer class. For example:

 fopDriver.setRenderer(Driver.RENDER_PCL);
 or
 fopDriver.setRenderer(new PCLRenderer());

 If you are invoking FOP from the command line then you can use the -pcl
 switch to invoke the PCL Renderer.

 I am not sure what was in the various ZIP files. I would have thought that
 everything should be in there.

 Art

 -Original Message-
 From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 14, 2001 8:28 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Printing PDF using FOP...

 I downloaded the 0.18 version of FOP (Fop-0.18.1-DEV-src.zip).
 In it I did find the PCLRenderer class but found no example explaining how
 to
 use it.
 Also the code I found in the src directory do not contain the
 org.apache.fop.render.pcl package and all the new packages of 0.18
although
 the
 javadocs has them. Did I downloaded the wrong zip file.?
 Can somebody provide me with a code snippet as to how to use PCLRenderer.
 Hitesh..

 Art Welch wrote:

  I think that you will want to upgrade to a newer version of FOP. I
believe
  that the PrintCommandLine/AWTRenderer were not functioning in earlier
  versions. The PCLRenderer is also a fairly recent addition.
 
  HTH,
  Art
 
  -Original Message-
  From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, June 13, 2001 8:04 AM
  To: [EMAIL PROTECTED]
  Subject: Printing PDF using FOP...
 
  Hi,
  I am new to fop and I am not sure whether this is the right place to
post
  this
  question.
  Actually what I intend to do is:
  Write an application which will generate a pdf file using fop and then
 send
  it
  to the printer without user intervention. I am able to generate the pdf
 file
  using fop. It works perfectly. But I am struggling for the past few days
 as
  to
  how to print the pdf using fop. I went through the mailing list archives
 and
  found some references to AWTRenderer and PCLRenderer but I couldn't work
 out
  a
  solution. Moreover I didn't find the PCLRenderer in fop 0.17. Is it a
new
  addition.?
  I tried running the PrintCommandLine program in fop but it always gives
me
  an
  error:
  using SAX parser org.apache.xerces.parsers.SAXParser
  using element mapping org.apache.fop.fo.StandardElementMapping
  using element mapping org.apache.fop.svg.SVGElementMapping
  using property list mapping
  org.apache.fop.fo.StandardPropertyListMapping
  using property list mapping
org.apache.fop.svg.SVGPropertyListMapping
  building formatting object tree
  WARNING: Unknown formatting object
  http://www.w3.org/1999/XSL/Transform^stylesheet
  FATAL ERROR: null
 
  Can somebody please help. My query is how to send the generated pdf
 document
  to
  the printer to print with the default options.
 
  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-13 Thread Justin Buist

Push some raw postscript into it ... if it prints it out nice you have a
Postscript printer.

Next, try PCL ... if it prints it you have a PCL printer.  My money's on
postscript though.

Justin Buist
Trident Technology, Inc.

On Wed, 13 Jun 2001, Hitesh Bagchi wrote:

 Is there a way to know what kind of printer I have.
 Our printer is HP LaserJet 6P/6MP-standard.
 Now how do I know what kind of printer is this.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 


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