Re: Help required

2004-10-20 Thread Glen Mazza
Best to use the FOP-USER list for these questions, the
same people are on both list, but actually more can
help you on FOP-USER.  Also, please make your subject
line meaningful to help for later archive retrieval.

Glen


--- Sanket Desai [EMAIL PROTECTED] wrote:

 Hi there,
 
 Can anyone guide me how to add hyphenation
 for Japanese
 language? I have got .tex file for SJIS i.e.
 SJIS.tex, but according
 to FOP's documentation, I need to convert it in .xml
 file. I don't
 know how to convert it. So, please guide for the
 same.
 
 regards,
 
 Sanket.
 



RE: Help with the sample FopServlet

2004-01-07 Thread Andreas L. Delmelle
 -Original Message-
 From: John Austin [mailto:[EMAIL PROTECTED]
 
snip /
 I forget some of the servlet details too. I was a bit surprised by the
 assertion that placing readme.fo in $TOMCAT_ROOT/bin worked.

Yeah, puzzled me a bit as well in the OP. So there was my calculated guess.

snip /
 
 I meant to post that to fop-dev but the 'reply-to' address pointed to
 you.

I see... Well, no harm done in any case. Better now?


Cheers,

Andreas


Re: help with upload the ssh key

2004-01-01 Thread J.Pietschmann
Peter Herweg wrote:
now that i got an cvs.apache.org account i'd need some help with uploading
the ssh key.
...
I also tried to convert my public key file into OpenSSH format, or create a
new public/private key pair using ssh-keygen but nothing works.
I also tried to generate a new public/private key pair with gpg. That works
but there is no private key file generated, which i have to pass to
putty/plink.
Do i even have to use gpg?
No. GPG/PGP is for encrypting/signing files and mails. There are currently
three widely used public key schemes: GPG/PGP/OpenPGP, X.509 (certificates)
and SSH, each using its own format for storing keys and associated information.
Confused?
Or do i just have to copy the public key file
into a directory?
Yes. It depends on whether you generated a DSA or a RSA key. I got a DSA
key and uploaded it into the _file_ ~/.ssh/authorized_keys2 (the name is
important and different from the filename used by ssh-keygen, on purpose,
you can use multiple public keys by concatenating them into this file)
The .ssh directory and the file should be world readable.
Do a web search on ssh keygen, there are a few tutorials. I got mine
working this way, after nearly biting bits off my keyboard.
J.Pietschmann


Re: help with upload the ssh key

2004-01-01 Thread Glen Mazza
--- J.Pietschmann [EMAIL PROTECTED] wrote:
 Peter Herweg wrote:
  now that i got an cvs.apache.org account i'd need
 some help with uploading
  the ssh key.
 ...

Which tool did you finally use to create the SSH key,
and where do you run it?

  I also tried to generate a new public/private key
 pair with gpg. 

Joerg, from what you're saying below, this is what we
use for our apache.org email address only, correct?

 That works
  but there is no private key file generated, which
 i have to pass to
  putty/plink.
  
  Do i even have to use gpg?
 
 No. GPG/PGP is for encrypting/signing files and
 mails. There are currently
 three widely used public key schemes:
 GPG/PGP/OpenPGP, X.509 (certificates)
 and SSH, each using its own format for storing keys
 and associated information.
 Confused?
 

Yes.  What is this SSH key for--Do we use ssh keygen
directly on cvs.apache.org to generate the DSA/RSA key
you're mentioning?  The newbie pages do not seem to
give any instruction on this.

Thanks,
Glen


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/


Re: help with upload the ssh key

2004-01-01 Thread J.Pietschmann
Glen Mazza wrote:
Which tool did you finally use to create the SSH key,
and where do you run it?
Cygwin ssh-keygen.

Joerg, from what you're saying below, this is what we
use for our apache.org email address only, correct?
I'm not sure what you mean here.

Yes.  What is this SSH key for--Do we use ssh keygen
directly on cvs.apache.org to generate the DSA/RSA key
you're mentioning?  The newbie pages do not seem to
give any instruction on this.
Hmm, someone should write it up in the wiki.
The key is generated on the local machine. The private key
is stored in a location determined by the ssh client you
use. In order to get the public key onto the target machine,
log in, create the ~/.ssh directory, then scp the public key
to the appropriate file.
Private keys on remote machines not under your control are a
no-no.
J.Pietschmann


Re: Help!!!

2003-03-11 Thread J.Pietschmann
Sidhartha Tripathy wrote:
hi 
i am using some unicode fonts in xml file and finally displaying that in pdf file  using fop

but i for some fonts i am getting squares i have downloaded unicode fonts and registered that in fop.

these are the fonts
#xff63;  #xFF80;  #xFF93; #8225;
is there any solutions for that ?? another character that is also not coming is endash #8211;.
Check whether your font has a glyph for the mentioned characters.
At least the #xff63; etc. seem to be fairly unusual (ASCII variants,
full width). The double #8225; (double dagger) shouldn't have
a problem with a proper Unicode font. I think none of the characters
will work with the any of the default fonts.
J.Pietschmann

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


Re: Help with Forrest

2003-03-01 Thread Peter B. West
Jeremias,

Thanks for the Sourceforge reference.  It seems that the software is in 
the process of being donated to Apache, and is in the process of finding 
its way in to Alexandria.  It is currently unavailable there because of 
licencing issues.

I will ask on forrest-dev.

Peter

Jeremias Maerki wrote:
Not a specialist on Forrest or Cocoon, yet, but I think it probably
needs among other things an additional map:match element with a custom
stylesheet, such as the one for the compliance document. So if you
converted the HTML to XHTML you could probably write an XSLT stylesheet
to add the JavaScript stuff. Just what's going though my head. I hope it
helps anyway. Probably best if you asked on Forrest mailing list, too.
Is this what you're looking for? http://sourceforge.net/projects/javasrc/
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
Lord, to whom shall we go?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


Re: Help with Forrest

2003-02-28 Thread Jeremias Maerki
Not a specialist on Forrest or Cocoon, yet, but I think it probably
needs among other things an additional map:match element with a custom
stylesheet, such as the one for the compliance document. So if you
converted the HTML to XHTML you could probably write an XSLT stylesheet
to add the JavaScript stuff. Just what's going though my head. I hope it
helps anyway. Probably best if you asked on Forrest mailing list, too.

Is this what you're looking for? http://sourceforge.net/projects/javasrc/

On 28.02.2003 16:55:12 Peter B. West wrote:
 I have been able to eliminate the need for frames in my documantation by 
 getting dynamic inline frames to work in NS7.0, Mozilla 1.2.1 and IE6. 
 This requires that a javascript file be included in each of the affected 
 files.  I need some advice on how best to get this to work with Forrest. 
   Do I need to include some form of redundant lining to the htmlized 
 code files?  Can I otherwise express such files (with javascript: links) 
 in XML?  Does anyone know how I can get JavaSRc that Nicola mentioned.
 
 I would like to clean up the documentation as much as possible.



Jeremias Maerki


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



Re: Help! About font problem.

2002-11-21 Thread Oleg Tkachenko
Yueshu Jesse wrote:

In order to resolve the display ... problem, I embed a truetype 
font by setting up userconfig.xml and call new Option in program. So, 
the PDF file created by FOP can show the foreign words correctly. But at 
this time, there are some unbreak text block displaying out of the body 
region. Somebody help me please.
Without seeing an example I understand nothing from your explanation. Provide 
a small fo snippet, which illustrates your problem. And post it to fop-user 
list, please.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


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



RE: help!!!

2002-08-13 Thread Rhett Aultman

Rewriting FOP in C++ is not impossible, though it may be quite difficult.  I'm really 
not sure what the rest of your questions are, but I'd say it's going to take you quite 
a while to complete a project like that, and if your boss is telling you and you alone 
to rewrite FOP in C++, and you are only 22 with only one year of programming 
experience, there is either a labor shortage in your office or your boss' project 
management skills aren't stellar.

What you might want to consider is showing your boss ways you can integrate FOP in its 
current implementation without rewriting it in C++.  For example, if you're performing 
PDF generation with FOP from a C++ program, just write your source data to a file, 
fork a process that runs FOP on that file, and then read the resulting file in.  Maybe 
it's not as elegant as having a pure C++ solution (though I find nothing about C++ 
elegant), but it will work with fewer bugs, and whereas it'll take you a long time to 
rewrite FOP in C++, this method would take you less than a day to implement.

-Original Message-
From: ehoo [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 9:58 PM
To: [EMAIL PROTECTED]
Subject: help!!!


Hello master-hand:

I using JAVA only one year!

My boss order me analyse FOP,and rewrite in C++;I think it's impossible!

Now,I want to know.How long time I can find out the design about FOP complete? 
Otherwise I am 22 old,  experience less one year!

Can you help me???  


[EMAIL PROTECTED]
2002-08-13


_

Do You Yahoo!? 

ÒøÐоÞÍ·¾Û»áÖÐÔ­ ´óÀËÌÔ¡®½ð¡¯Ë­½«Ð¦°Á

http://sweepstakes.yahoo.com/bank_surveywave2/


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


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




Re: help!!!

2002-08-13 Thread Mark Malone

I think the new boss advice is more useful ;)  New boss would say 
Take existing, make faster, short time to market! This can't be real.

-M

On Tuesday, August 13, 2002, at 05:28  AM, Rhett Aultman wrote:

 Rewriting FOP in C++ is not impossible, though it may be quite 
 difficult.  I'm really not sure what the rest of your questions are, 
 but I'd say it's going to take you quite a while to complete a project 
 like that, and if your boss is telling you and you alone to rewrite FOP 
 in C++, and you are only 22 with only one year of programming 
 experience, there is either a labor shortage in your office or your 
 boss' project management skills aren't stellar.

 What you might want to consider is showing your boss ways you can 
 integrate FOP in its current implementation without rewriting it in 
 C++.  For example, if you're performing PDF generation with FOP from a 
 C++ program, just write your source data to a file, fork a process that 
 runs FOP on that file, and then read the resulting file in.  Maybe it's 
 not as elegant as having a pure C++ solution (though I find nothing 
 about C++ elegant), but it will work with fewer bugs, and whereas it'll 
 take you a long time to rewrite FOP in C++, this method would take you 
 less than a day to implement.

 -Original Message-
 From: ehoo [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 12, 2002 9:58 PM
 To: [EMAIL PROTECTED]
 Subject: help!!!


 Hello master-hand:

   I using JAVA only one year!

   My boss order me analyse FOP,and rewrite in C++;I think it's 
 impossible!

   Now,I want to know.How long time I can find out the design about 
 FOP complete? Otherwise I am 22 old,  experience less one year!
   
 Can you help me???

 
 [EMAIL PROTECTED]
   2002-08-13


 _

 Do You Yahoo!?

 银行巨头聚会中原 大浪淘‘金’谁将笑傲

 http://sweepstakes.yahoo.com/bank_surveywave2/


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


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



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




RE: help!!!

2002-08-13 Thread Rhett Aultman

On the contrary, that's how bosses are.  Don't even get me started on mine.

-Original Message-
From: Mark Malone [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 1:59 PM
To: [EMAIL PROTECTED]
Subject: Re: help!!!


I think the new boss advice is more useful ;)  New boss would say 
Take existing, make faster, short time to market! This can't be real.

-M

On Tuesday, August 13, 2002, at 05:28  AM, Rhett Aultman wrote:

 Rewriting FOP in C++ is not impossible, though it may be quite 
 difficult.  I'm really not sure what the rest of your questions are, 
 but I'd say it's going to take you quite a while to complete a project 
 like that, and if your boss is telling you and you alone to rewrite FOP 
 in C++, and you are only 22 with only one year of programming 
 experience, there is either a labor shortage in your office or your 
 boss' project management skills aren't stellar.

 What you might want to consider is showing your boss ways you can 
 integrate FOP in its current implementation without rewriting it in 
 C++.  For example, if you're performing PDF generation with FOP from a 
 C++ program, just write your source data to a file, fork a process that 
 runs FOP on that file, and then read the resulting file in.  Maybe it's 
 not as elegant as having a pure C++ solution (though I find nothing 
 about C++ elegant), but it will work with fewer bugs, and whereas it'll 
 take you a long time to rewrite FOP in C++, this method would take you 
 less than a day to implement.

 -Original Message-
 From: ehoo [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 12, 2002 9:58 PM
 To: [EMAIL PROTECTED]
 Subject: help!!!


 Hello master-hand:

   I using JAVA only one year!

   My boss order me analyse FOP,and rewrite in C++;I think it's 
 impossible!

   Now,I want to know.How long time I can find out the design about 
 FOP complete? Otherwise I am 22 old,  experience less one year!
   
 Can you help me???

 
 [EMAIL PROTECTED]
   2002-08-13


 _

 Do You Yahoo!?

 银行巨头聚会中原 大浪淘‘金’谁将笑傲

 http://sweepstakes.yahoo.com/bank_surveywave2/


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


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



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




Re: help to get started on WebSphere 3.5

2002-04-03 Thread J.Pietschmann

[EMAIL PROTECTED] wrote:
 
 I have to generate PDF letters files. To do that I have decided to use 
 FOP files as letter templates supplying
 variables(name, address...) via XML. It is going to be a batch job, 
 running main method developing
 with Visual Age, WebSphere 3.5. Is anyone has examples?
 Most importantly, I have no idea what libraries to download, where to 
 install and how to configure.

You are asking for something big. Moreover, i can't
quite figure out what your actual requirements are.

The easiest way seems to be to contact your friendly
IBM support.
Other than that it would be useful to know:
1. How much experience do you have in running WebSphere
  and deploying code for WebSphere?
2. How much experience do you have in Java programming
  in general and in servlet/JSP stuff in particular?
3. How extensive have you already dealt with XML stuff?
4. How much experience do you have in developing
  XSLT/XSLFO?
5. How much experience do you have in running FOP?
6. What do you mean by batch job? Conventionally
  this is not used in assiciation with a web application
  server.

J.Pietschmann


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




RE: help to get started on WebSphere 3.5

2002-04-03 Thread Jason . West

This is how I do it Websphere 4.

Using Websphere Application developer I put the jar files
into the WEB-INF/lib directory in my war file. If using VAJ
just add some entries to the WS Testenvironment classpath to
where these are.

I then used the code examples in the docs.

here is a little code snippet 
( it's contextual to my program and I use the oracle xml/xslt
  engines as well. )

import org.apache.fop.apps.Driver;
import org.apache.fop.apps.Version;
import org.apache.fop.apps.XSLTInputHandler;

import org.apache.log.*;


if ( sUseFOP.equals(Y) ) {
XMLDocumentFragment foDocFrag =
processor.processXSL(xsl, resultXML);
XMLDocument foDoc = new XMLDocument();
foDoc.appendChild( foDocFrag);
renderXML((Document) foDoc, response, outW);
} else {
processor.processXSL(xsl, resultXML, outW);
}


HTH, Jason


-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 1:34 PM
To: [EMAIL PROTECTED]
Subject: Re: help to get started on WebSphere 3.5


[EMAIL PROTECTED] wrote:
 
 I have to generate PDF letters files. To do that I have decided to use 
 FOP files as letter templates supplying
 variables(name, address...) via XML. It is going to be a batch job, 
 running main method developing
 with Visual Age, WebSphere 3.5. Is anyone has examples?
 Most importantly, I have no idea what libraries to download, where to 
 install and how to configure.

You are asking for something big. Moreover, i can't
quite figure out what your actual requirements are.

The easiest way seems to be to contact your friendly
IBM support.
Other than that it would be useful to know:
1. How much experience do you have in running WebSphere
  and deploying code for WebSphere?
2. How much experience do you have in Java programming
  in general and in servlet/JSP stuff in particular?
3. How extensive have you already dealt with XML stuff?
4. How much experience do you have in developing
  XSLT/XSLFO?
5. How much experience do you have in running FOP?
6. What do you mean by batch job? Conventionally
  this is not used in assiciation with a web application
  server.

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]




Re: help to get started on WebSphere 3.5

2002-04-03 Thread John . Y . Cherny

Hi, thank you for your response.
I was asked to generate response letters offline. The letters will have a standard text with an exception of
things like first name, last name, address etc. Because the letters are uniformed I have decided to have 
some sort of letter template and during the FOP process to plug in variables into the prearranged slots.
The generated letters will be send as an attachment in form of PDF files to our clients. That is the scope.
I have decided to use xsl-fo to create my letter templates and create DOM document that will consist
purely of variable data that I will get from the data base. By running FOP I am planning to generate PDF files.
I do have few years in developing with java/jsp. I did generate letters before using PdfLib.
I am novice with XML, XSL, FOP. I about to create the following projects in our repository:
Xerces(xerces.jar), Xalan(xalan.jar), FOP(fop.jar) and logkit(logkit.jar). I am not sure if I need anything else.
I am going to use an embedded FOP and run it in the MAIN method.
I would appreciate any help.
John Cherny.







J.Pietschmann [EMAIL PROTECTED]
04/03/02 10:34 AM
Please respond to fop-dev


To:[EMAIL PROTECTED]
cc:
Subject:Re: help to get started on WebSphere 3.5


[EMAIL PROTECTED] wrote:
 
 I have to generate PDF letters files. To do that I have decided to use 
 FOP files as letter templates supplying
 variables(name, address...) via XML. It is going to be a batch job, 
 running main method developing
 with Visual Age, WebSphere 3.5. Is anyone has examples?
 Most importantly, I have no idea what libraries to download, where to 
 install and how to configure.

You are asking for something big. Moreover, i can't
quite figure out what your actual requirements are.

The easiest way seems to be to contact your friendly
IBM support.
Other than that it would be useful to know:
1. How much experience do you have in running WebSphere
 and deploying code for WebSphere?
2. How much experience do you have in Java programming
 in general and in servlet/JSP stuff in particular?
3. How extensive have you already dealt with XML stuff?
4. How much experience do you have in developing
 XSLT/XSLFO?
5. How much experience do you have in running FOP?
6. What do you mean by batch job? Conventionally
 this is not used in assiciation with a web application
 server.

J.Pietschmann


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





RE: help to get started on WebSphere 3.5

2002-04-03 Thread John . Y . Cherny

Hi Jason,
Thanks a million for code example.
Unfortunately I cannot use Websphere Application Developer, because we have troubles with
Websphere 4. I have to use Visual Age 3.5. As a matter of fact I do use WSAD to check syntax of
my XMLs. I am about to import few .jars: xerces.jar, xalan.jar, fop.jar, logkit.jar. Is there anything else
I need to create and configure?

Thanks again. John Cherny.







[EMAIL PROTECTED]
04/03/02 10:36 AM
Please respond to fop-dev


To:[EMAIL PROTECTED]
cc:
Subject:RE: help to get started on WebSphere 3.5


This is how I do it Websphere 4.

Using Websphere Application developer I put the jar files
into the WEB-INF/lib directory in my war file. If using VAJ
just add some entries to the WS Testenvironment classpath to
where these are.

I then used the code examples in the docs.

here is a little code snippet 
( it's contextual to my program and I use the oracle xml/xslt
 engines as well. )

import org.apache.fop.apps.Driver;
import org.apache.fop.apps.Version;
import org.apache.fop.apps.XSLTInputHandler;

import org.apache.log.*;


if ( sUseFOP.equals(Y) ) {
  XMLDocumentFragment foDocFrag =
  processor.processXSL(xsl, resultXML);
  XMLDocument foDoc = new XMLDocument();
  foDoc.appendChild( foDocFrag);
  renderXML((Document) foDoc, response, outW);
} else {
  processor.processXSL(xsl, resultXML, outW);
}


HTH, Jason


-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 1:34 PM
To: [EMAIL PROTECTED]
Subject: Re: help to get started on WebSphere 3.5


[EMAIL PROTECTED] wrote:
 
 I have to generate PDF letters files. To do that I have decided to use 
 FOP files as letter templates supplying
 variables(name, address...) via XML. It is going to be a batch job, 
 running main method developing
 with Visual Age, WebSphere 3.5. Is anyone has examples?
 Most importantly, I have no idea what libraries to download, where to 
 install and how to configure.

You are asking for something big. Moreover, i can't
quite figure out what your actual requirements are.

The easiest way seems to be to contact your friendly
IBM support.
Other than that it would be useful to know:
1. How much experience do you have in running WebSphere
 and deploying code for WebSphere?
2. How much experience do you have in Java programming
 in general and in servlet/JSP stuff in particular?
3. How extensive have you already dealt with XML stuff?
4. How much experience do you have in developing
 XSLT/XSLFO?
5. How much experience do you have in running FOP?
6. What do you mean by batch job? Conventionally
 this is not used in assiciation with a web application
 server.

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]





Re: help to get started on WebSphere 3.5

2002-04-03 Thread J.Pietschmann

[EMAIL PROTECTED] wrote:
 I am novice with XML, XSL, FOP.

I suppose you already downloaded the latest binary release of FOP.
First get some experience in running FOP by running some of the
examples from the distribution from the command line. Check the
documentation in the distribution for how to do this.

If you got around this, start developing you own FO file to gain
some more experience. Question related to FO design can be asked
on the XSL list (http://www.mulberrytech.com/xsl/xsl-list) or,
if they are FOP specific, on the FOP-user list.

After you have some working FO, design your input XML for the
variable date and start to generate them using XSLT.
Question related to XSLT design can be asked on the XSL list
exclusively. For questions about XML design check out the FAQs,
tutorials and lists listed on http://www.xml.org first.
Check the documentation for how to run FOP using an XSL
transformation.

If you got some working XSLT code you can run it from the command
line, start to embed FOP into your application. There is a file
embedding.html delivered with FOP with some hints. Look also
into the FOP servlet example in docs/examples/embedding. You don't
run any MAIN method. There are also recurring issues you can find in
the archives of the FOP lists
  http://marc.theaimsgroup.com/?l=fop-userr=1w=2#
  http://marc.theaimsgroup.com/?l=fop-devr=1w=2#

For deploying FOP, you need all the jar files from the lib directory
as well as fop.jar itself. If you want to deploy them as part of
a WebSphere application, there are some pitfalls. I think they
have been written about on the list, check the archives mentioned
above.

HTH
J.Pietschmann


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




Re: help to get started on WebSphere 3.5

2002-04-03 Thread John . Y . Cherny

Thanks for advice.
I've looked at number of messages regarding running FOP in MAIN but I couldn't find any reasoning why.
In any case I took your warning, talked to my lead, and we are thinking of calling EJB to run FOP there.
What do think? 







J.Pietschmann [EMAIL PROTECTED]
04/03/02 10:34 AM
Please respond to fop-dev


To:[EMAIL PROTECTED]
cc:
Subject:Re: help to get started on WebSphere 3.5


[EMAIL PROTECTED] wrote:
 
 I have to generate PDF letters files. To do that I have decided to use 
 FOP files as letter templates supplying
 variables(name, address...) via XML. It is going to be a batch job, 
 running main method developing
 with Visual Age, WebSphere 3.5. Is anyone has examples?
 Most importantly, I have no idea what libraries to download, where to 
 install and how to configure.

You are asking for something big. Moreover, i can't
quite figure out what your actual requirements are.

The easiest way seems to be to contact your friendly
IBM support.
Other than that it would be useful to know:
1. How much experience do you have in running WebSphere
 and deploying code for WebSphere?
2. How much experience do you have in Java programming
 in general and in servlet/JSP stuff in particular?
3. How extensive have you already dealt with XML stuff?
4. How much experience do you have in developing
 XSLT/XSLFO?
5. How much experience do you have in running FOP?
6. What do you mean by batch job? Conventionally
 this is not used in assiciation with a web application
 server.

J.Pietschmann


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





Re: Help with footer only on first page - please help

2002-01-30 Thread ewitness - Ben Fowler

At 8:50 am +0200 25/1/02, [EMAIL PROTECTED] wrote:
Hi all,

Could someone please help me with the correct way to implement a footer only
on the first page?

I believe that you need to establish two sequences of master pages,
and use one (which has the footer) on the first page, and the
other for the remainder.

This might be an FAQ. You can certinly find helpful info
on the web exempli gratia
URL: http://www.dpawson.co.uk/xsl/sect3/headers.html 

Ben

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




RE: HELP WITH FONTS PLEASE!

2001-12-25 Thread Gorka Echevarría



Thank you very much Claus,

IT WORKS!!

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  To: [EMAIL PROTECTED] 
  Sent: Friday, December 21, 2001 12:45 
  PM
  Subject: Re: HELP WITH FONTS 
PLEASE!
  
  Hey Gorka.
  
  Try this before you declare the Driver. It should work
  userConfigFile = new File(userConfig);options = new 
  Options(userConfigFile);
  
  Claus Nielsen
  
  Gorka Echevarría [EMAIL PROTECTED]02-11-2001 12:24Please respond to 
  fop-devTo: "Lista-FOP" [EMAIL PROTECTED]cc: bcc: Subject: HELP WITH FONTS 
  PLEASE!
  Hi all,Ihave a problem to generate a pdf document from a servlet 
  appling fonts that are not included by default in the Fop 
  especification.If I execute Fop from the command line, I have no problem 
  at all, and it works perfectly.I know how to especify the file 
  "userconfig.xml" in the command line - "Fop -c conf/userconfig.xml", but I 
  don´t know how to do it in the servlet to allow the use of diferent kinds 
  of font in the xsl-fo file.My source code in the servlet looks like 
  this:   
  ByteArrayOutputStream out = new 
  ByteArrayOutputStream(); 
  response.setContentType("application/pdf"); 
  Driver driver = new 
  Driver(); 
  driver.setRenderer(Driver.RENDER_PDF); 
  driver.setOutputStream(out); 
  driver.render(input.getParser(), 
  input.getInputSource()); 
  byte[] content = 
  out.toByteArray(); 
  response.setContentLength(content.length); 
  response.getOutputStream().write(content); 
  response.getOutputStream().flush();I've read the document fonts.pdf 
  already (thank you very much Sergei) and I have read the page http://xml.apache.org/fop/fonts.htmlbut i have found no solution.Can anyboy help me 
  please?Gorka 
  Echevarría VélezBILBOMÁTICA, S.A.[EMAIL PROTECTED]- 
  To unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
  commands, email: [EMAIL PROTECTED]


Re: HELP: PDF generation hangs

2001-11-27 Thread Joerg Pietschmann

Vladimir Sneblic [EMAIL PROTECTED] wrote:
 I have a problem when I try to generate a PDF file from a FOP file that
 contains an SVG image. It doesn't matter if the image is inline or if it's
 stored as a separate file. My problem is that the PDF file gets generated
 but for some reason the java thread hangs, i.e. even though the work is
 finished it doesn't stop executing. Has anyone else encountered this
 problem?

This is a well known problem with the Java runtime, which should
be fixed in JDK 1.4 (along with a few other major annoynaces).
What probably happens is that Batik uses AWT functionality for
SVG rendering, which often (but not always) causes the graphics
subsystem to create an additional thread, which will still run
after the main thread expires. This may also depend on the platform
and the underlying graphics system.
A temporary fix is to add System.exit(0) to the main functions
of applications which use FOP (or Batik). JDK 1.4 was still beta
last time i checked, you may want to try it anyway.

HTH
J.Pietschmann

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




RE: Help in XML Rendering to PostScript

2001-06-26 Thread Art Welch

The code looks correct to me. I am just about out of ideas on this. If other
applications are able to print to this printer successfully, then this
should work. Have you tried the PS renderer yet? The JDK printing API should
not come in to play on this. We are sending the print data directly to the
printer. I am still a little suspicious that something between FOP and the
printer is filtering the stream. As a sanity check I would try connecting
the printer locally to see if it works any better.

Sorry I could not be more helpful,
Art

-Original Message-
From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:58 AM
To: [EMAIL PROTECTED]
Subject: Re: Help in XML Rendering to PostScript


I tried setting the PJL ENTER LANGUAGE = PCL
and then sending the output to the printer but the printer printed the same
old
junk characters it was doing earlier
Here is my piece of code:
--
--

  FileOutputStream fos = new FileOutputStream(Melstar\\Melprn);
  fos.write(\033%-12345X@PJL ENTER LANGUAGE = PCL\r\n.getBytes());
  Driver driver = new Driver();
  driver.setRenderer(Driver.RENDER_PCL);
  driver.addElementMapping(org.apache.fop.fo.StandardElementMapping);
  driver.addElementMapping(org.apache.fop.svg.SVGElementMapping);
  driver.addPropertyList(org.apache.fop.fo.StandardPropertyListMapping);
  driver.addPropertyList(org.apache.fop.svg.SVGPropertyListMapping);
  driver.setOutputStream(fos);
  driver.buildFOTree(parser, new InputSource(args[0]));
  driver.format();
  driver.render();
  fos.write(\033%-12345X@PJL ENTER LANGUAGE = POSTSCRIPT\r\n.getBytes());
  fos.close();



I used the jdk 1.4 beta which has much better printing support than it's
predecessors and used it's
new java printing service API to query my printer. Whichever way I query my
printer it always tells
me that the supported file format to print is gif, jpeg and png.
If I try to set the DocFlavor as POSTSCRIPT or PDF it throws me an
exception.
I hitting a dead end it seems.

Thanks,
Hitesh


Art Welch wrote:

 I think that it is probably most likely that something is altering the
 escape characters in the print stream before the printer gets it. The text
 renderer of course has no escape characters in it's output.

 If your printer was PS only then the plain text output would not have
 printed correctly either (unless something interpreted it for the
printer).
 PCL however will print plain text properly (depending on line feeds and
form
 feeds being appropriate).

 OK! I just did some more looking on the HP site and it looks like the 6MP
 should support both PCL and PostScript. If the default is PS and you want
to
 leave the printer that way then you may need to use the PJL commands to
 switch the language in software (see
 http://www.hp.com/cposupport/printers/support_doc/bpl01378.html). If you
 want to try this, after you open the file output stream you would write
the
 enter language PCL command \033%-12345X@PJL ENTER LANGUAGE = PCL\r\n to
 the output stream before giving the stream to Driver. After Driver has
 rendered the PCL you could reset the language to PS before closing the
 stream with \033%-12345X@PJL ENTER LANGUAGE = POSTSCRIPT\r\n.

 I hope that this solves the problem for you,
 Art

 -Original Message-
 From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 22, 2001 3:56 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Help in XML Rendering to PostScript

 also if I use
 driver.setRenderer(Driver.RENDER_TXT);
 and send the output to the printer straight away the printer is able to
 understand
 the output and is able to print the text output. But the quality of the
 output
 falls far short of what a pdf output can provide.

 Thanks,
 Hitesh

 Hitesh Bagchi wrote:

  I used the following piece of code to send the pcl output to the
 printer(HP
  Laser Jet 6P/6MP network printer):
 
FileOutputStream fos = new FileOutputStream(Melstar\\Melprn);
Driver driver = new Driver();
driver.setRenderer(Driver.RENDER_PCL);
driver.addElementMapping(org.apache.fop.fo.StandardElementMapping);
driver.addElementMapping(org.apache.fop.svg.SVGElementMapping);
 
driver.addPropertyList(org.apache.fop.fo.StandardPropertyListMapping);
driver.addPropertyList(org.apache.fop.svg.SVGPropertyListMapping);
driver.setOutputStream(fos);
driver.buildFOTree(parser, new InputSource(args[0]));
driver.format();
driver.render();
 
  And everything went smoothly.
  Only the printer printed a lot of junk characters like you would get if
 you
  write the pcl output to a file and send the file to a printer as a text
 file.
  Does it mean my printer do not understand pcl output.
 
  Thanks,
  Hitesh
 
  Art Welch wrote:
 
   I am not sure if I have the syntax exactly correct (and I do not have
 FOP
   installed on my

Re: Help in XML Rendering to PostScript

2001-06-22 Thread Hitesh Bagchi

also if I use
driver.setRenderer(Driver.RENDER_TXT);
and send the output to the printer straight away the printer is able to understand
the output and is able to print the text output. But the quality of the output
falls far short of what a pdf output can provide.

Thanks,
Hitesh


Hitesh Bagchi wrote:

 I used the following piece of code to send the pcl output to the printer(HP
 Laser Jet 6P/6MP network printer):

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

 And everything went smoothly.
 Only the printer printed a lot of junk characters like you would get if you
 write the pcl output to a file and send the file to a printer as a text file.
 Does it mean my printer do not understand pcl output.

 Thanks,
 Hitesh

 Art Welch wrote:

  I am not sure if I have the syntax exactly correct (and I do not have FOP
  installed on my Windows 2000 or NT workstations at the moment), but in the
  past I have successfully printed directly to a network printer, just by
  opening a file stream to it. For example in your example only the first line
  would need to change something like:
 
  FileOutputStream fos = new
  FileOutputStream(hostname\\printername);
 
  For a local printer you should be able to do something like:
 
  FileOutputStream fos = new FileOutputStream(lpt1);
 
  HTH,
  Art
 
  -Original Message-
  From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 21, 2001 12:35 AM
  To: [EMAIL PROTECTED]
  Subject: Re: Help in XML Rendering to PostScript
 
  I am using windows NT and I am trying to print the PCL output directly to
  the
  printer which is a
  HP Laser Jet 6P/6MP network printer from my application. Here is my piece of
  code :
  --
  ---
 
  FileOutputStream fos = new FileOutputStream(../temp/tTest.pcl);
  Driver driver = new Driver();
  driver.setRenderer(Driver.RENDER_PCL);
  driver.addElementMapping(org.apache.fop.fo.StandardElementMapping);
  driver.addElementMapping(org.apache.fop.svg.SVGElementMapping);
  driver.addPropertyList(org.apache.fop.fo.StandardPropertyListMapping);
  driver.addPropertyList(org.apache.fop.svg.SVGPropertyListMapping);
  driver.setOutputStream(fos);
  driver.buildFOTree(parser, new InputSource(args[0]));
  driver.format();
  driver.render();
  
  ---
 
  Now instead of printing to the Test.pcl file I want to send the output
  directly
  to the HP Laser Jet 6P/6MP
  printer on the network.
 
  Thanks,
  Hitesh
 
  Art Welch wrote:
 
   I thought that I had answered a question about direct printing PCL
  recently.
   If you will tell me what platform you are using (Windows/Unix) and how you
   are invoking FOP (application or command line). I will try to answer this.
  
   Art
  
   -Original Message-
   From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
   Sent: Saturday, June 16, 2001 1:50 AM
   To: [EMAIL PROTECTED]
   Subject: Re: Help in XML Rendering to PostScript
  
   Hello,
   Can somebody tell me how to stream PCL output to a network printer without
   writing to a file.
  
   Thanks,
   Hitesh
  
   [EMAIL PROTECTED] wrote:
  
Hello,
   
I am fairly new to FOP and to Java as well.  I am wondering if anyone
  has
written a rendering to convert an XML stream to Postscript with FOP
   (similar
to the PCL or PDF renderer) - I am in desperate need of a mechanism to
  do
this.  We have a current Java app that converts an XML stream into PDF,
   but
printing through Adobe Acrobat is too resource intensive on the lower
  end
machines.  I have tried converting to PCL and then streaming to a port,
which works pretty well, but is not a 100% compatibile (PCL beng only
  HP)
   
If anyone knows of a way to convert an XML to PS format using a custom
  FOP
piece they've written, or knows of a better mechanism, I'd be forever
grateful!
   
Thanks very much,
   
Tony
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED

RE: Help in XML Rendering to PostScript

2001-06-22 Thread avespa

In terms of the solution for streaming to an LPT port or network printer, is
there a way to catch an error if this fails?  Lets say I have a network
printer and it is offline, how can I know if it worked or not?  It's a blind
process.

Thanks!



-Original Message-
From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 3:56 AM
To: [EMAIL PROTECTED]
Subject: Re: Help in XML Rendering to PostScript


also if I use
driver.setRenderer(Driver.RENDER_TXT);
and send the output to the printer straight away the printer is able to
understand
the output and is able to print the text output. But the quality of the
output
falls far short of what a pdf output can provide.

Thanks,
Hitesh


Hitesh Bagchi wrote:

 I used the following piece of code to send the pcl output to the
printer(HP
 Laser Jet 6P/6MP network printer):

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

 And everything went smoothly.
 Only the printer printed a lot of junk characters like you would get if
you
 write the pcl output to a file and send the file to a printer as a text
file.
 Does it mean my printer do not understand pcl output.

 Thanks,
 Hitesh

 Art Welch wrote:

  I am not sure if I have the syntax exactly correct (and I do not have
FOP
  installed on my Windows 2000 or NT workstations at the moment), but in
the
  past I have successfully printed directly to a network printer, just by
  opening a file stream to it. For example in your example only the first
line
  would need to change something like:
 
  FileOutputStream fos = new
  FileOutputStream(hostname\\printername);
 
  For a local printer you should be able to do something like:
 
  FileOutputStream fos = new FileOutputStream(lpt1);
 
  HTH,
  Art
 
  -Original Message-
  From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 21, 2001 12:35 AM
  To: [EMAIL PROTECTED]
  Subject: Re: Help in XML Rendering to PostScript
 
  I am using windows NT and I am trying to print the PCL output directly
to
  the
  printer which is a
  HP Laser Jet 6P/6MP network printer from my application. Here is my
piece of
  code :
 
--
  ---
 
  FileOutputStream fos = new FileOutputStream(../temp/tTest.pcl);
  Driver driver = new Driver();
  driver.setRenderer(Driver.RENDER_PCL);
 
driver.addElementMapping(org.apache.fop.fo.StandardElementMapping);
  driver.addElementMapping(org.apache.fop.svg.SVGElementMapping);
 
driver.addPropertyList(org.apache.fop.fo.StandardPropertyListMapping);
  driver.addPropertyList(org.apache.fop.svg.SVGPropertyListMapping);
  driver.setOutputStream(fos);
  driver.buildFOTree(parser, new InputSource(args[0]));
  driver.format();
  driver.render();
 

  ---
 
  Now instead of printing to the Test.pcl file I want to send the output
  directly
  to the HP Laser Jet 6P/6MP
  printer on the network.
 
  Thanks,
  Hitesh
 
  Art Welch wrote:
 
   I thought that I had answered a question about direct printing PCL
  recently.
   If you will tell me what platform you are using (Windows/Unix) and how
you
   are invoking FOP (application or command line). I will try to answer
this.
  
   Art
  
   -Original Message-
   From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
   Sent: Saturday, June 16, 2001 1:50 AM
   To: [EMAIL PROTECTED]
   Subject: Re: Help in XML Rendering to PostScript
  
   Hello,
   Can somebody tell me how to stream PCL output to a network printer
without
   writing to a file.
  
   Thanks,
   Hitesh
  
   [EMAIL PROTECTED] wrote:
  
Hello,
   
I am fairly new to FOP and to Java as well.  I am wondering if
anyone
  has
written a rendering to convert an XML stream to Postscript with FOP
   (similar
to the PCL or PDF renderer) - I am in desperate need of a mechanism
to
  do
this.  We have a current Java app that converts an XML stream into
PDF,
   but
printing through Adobe Acrobat is too resource intensive on the
lower
  end
machines.  I have tried converting to PCL and then streaming to a
port,
which works pretty well, but is not a 100% compatibile (PCL beng
only
  HP)
   
If anyone knows of a way to convert an XML to PS format using a
custom
  FOP
piece they've written, or knows of a better mechanism, I'd be
forever
grateful

RE: Help in XML Rendering to PostScript

2001-06-20 Thread Art Welch

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

Art

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


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

Thanks,
Hitesh

[EMAIL PROTECTED] wrote:

 Hello,

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

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

 Thanks very much,

 Tony

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


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

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




RE: Help in XML Rendering to PostScript

2001-06-20 Thread avespa

Hello,

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

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

Tony

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


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

Art

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


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

Thanks,
Hitesh

[EMAIL PROTECTED] wrote:

 Hello,

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

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

 Thanks very much,

 Tony

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


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

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

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




Re: Help in XML Rendering to PostScript

2001-06-20 Thread Hitesh Bagchi

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

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

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

Thanks,
Hitesh

Art Welch wrote:

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

 Art

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

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

 Thanks,
 Hitesh

 [EMAIL PROTECTED] wrote:

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

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

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


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




Re: Help in XML Rendering to PostScript

2001-06-19 Thread Arved_37

Quoting Jeremias Maerki [EMAIL PROTECTED]:

 I've started a Postscript renderer some time ago. It produces Level 2
 Postscript and DSC comments. It's certainly not production ready, though.
 The whole SVG stuff is missing and it would have to be updated for the
 current CVS version. If it helped you I could update the code to fit
 with the current CVS version and post it to be integrated with FOP. You
 would have to give me a week or so to do that. Just tell me. Also
 depends on the comitters if they want the code in the current status...

Whatever status the code is in, if you are reasonably happy with the design
behind it, please feel free to submit it. The last thing we try (or want) to do
is to foster an impression that people have to provide code-complete modules;
as long as it compiles and doesn't break other code, we are happy to have it.

The whole point of open-source is that we try to get code in early and often.
That way other people can look at it, and take it into account, and maybe work
with it, too. It also insures against the possibility that you, or anyone, just
never has the time to really finish the job, and every time you look at what you
have you want to improve it, and it never actually sees the light of day.

I am as guilty as anyone, of holding off on submitting things into CVS until I
have finished works of art. And I really get bit with the improvement bug I
described above. :-) But this is just not the way to do things in open-source,
as a rule.

So, in summary, please feel free to submit what you have. What you can do in any
case is make it clear that you wish to remain the prime on that piece of code,
and that if anyone else wishes to work on it they should coordinate with you.

 But since you're new to Java I doubt that it will help you much because
 you would have to improve the code yourself (or find someone to do it
 for you).

Regards,
Arved Sandstrom


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


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




Re: Help in XML Rendering to PostScript

2001-06-19 Thread Hitesh Bagchi

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

Thanks,
Hitesh

[EMAIL PROTECTED] wrote:

 Hello,

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

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

 Thanks very much,

 Tony

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


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




Re: Help in XML Rendering to PostScript

2001-06-18 Thread Jeremias Maerki

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

I've started a Postscript renderer some time ago. It produces Level 2
Postscript and DSC comments. It's certainly not production ready, though.
The whole SVG stuff is missing and it would have to be updated for the
current CVS version. If it helped you I could update the code to fit
with the current CVS version and post it to be integrated with FOP. You
would have to give me a week or so to do that. Just tell me. Also
depends on the comitters if they want the code in the current status...
But since you're new to Java I doubt that it will help you much because
you would have to improve the code yourself (or find someone to do it
for you).

Have you tried Ghostscript for the conversion? I don't know, but it
might be worth a try.

Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch


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




RE: Help in XML Rendering to PostScript

2001-06-18 Thread avespa

Hello,

It is for a company in South American, and the low end platforms are either
P133/32 or P200/64 - launching it in Adobe Acrobat to print takes a long
time/

-Original Message-
From: Alex McLintock [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 11:36 AM
To: [EMAIL PROTECTED]
Subject: Re: Help in XML Rendering to PostScript



--- [EMAIL PROTECTED] wrote:  Hello,
 I have tried converting to PCL and then streaming to a port,
 which works pretty well, but is not a 100% compatibile (PCL beng only HP)

IMHO a large number of printers are PCL compatible nowadays - even those 
not made by HP.
 
I'd say they were more common than postscript - 

Why are you doing this on low spec machines?

Alex



=
Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
DR WHO COMPETITION:
http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104
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]

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