You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by tr...@pg.ebx.com on 2001/04/25 03:09:57 UTC

PostScript


can anyone tell where i can find an example for generating postscript file
from xml.

thank you




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: PostScript

Posted by Jeremias Maerki <je...@outline.ch>.
> Thanks for your reply. I have some question to ask you and hope that you
> can help me:
> 
> 1) So,  is there any requirement that should use when generate XML to Ps?
> 
> 2) can you give me and example of command line for generate ps from xml?
> 
> 3) I'm a new in XML and XSL, so can you give a simple example for generate
> ps by using xml and xslt?

I think, first of all, you should familiarize yourself with XML and XSLT
before going on creating Postscript files. Maybe some articles at
http://www.vbxml.com might help you. I think there are a few good books
around, too. You will realize that XSLT can output three kinds of
formats: XML, HTML and text files. Postscript is a text file format. But
as I mentioned before: If you don't know Postscript (means: You're just
a Postscript user, not a Postscript programmer) it's probably best not
to work only with XSLT, but instead use XSL:FO as an intermediate format
to create PDF files and then convert them to Postscript. On how to work
with FOP please have a look at the documentation and the samples to get
started. 

I hope this to help you rather than confuse you any more. Just trying to
get you on the right track... Go for PDF and then convert the PDFs to
postscript using Acrobat Reader or Ghostscript.

Jeremias Märki

mailto:jeremias.maerki@outline.ch

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


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: PostScript

Posted by Jeremias Maerki <je...@outline.ch>.
> can anyone tell where i can find an example for generating postscript file
> from xml.

There are several ways:
- You could create an XSLT which transforms your XML directly into
Postscript. (Only nice for very simple things such as print banners).
- Create a PDF using XSLT and XSL:FO (FOP) and then use Acrobat Reader 
(on Unix, does not work for Windows) or Ghostscript to convert the PDF
into Postscript.

An example command line (using Acrobat Reader) could be:
acroread -toPostScript -level2 -fast -size a4 mydocument.pdf

- Another possibility is to have a Postscript Renderer for FOP which,
unfortunately, is not yet available. But I'm still working on it as I
promised a few weeks ago.

Jeremias Märki

mailto:jeremias.maerki@outline.ch

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


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org