W3C home > Mailing lists > Public > www-xsl-fo@w3.org > June 2007

Re: Embbeded postscript in xsl fo

From: Jeremias Maerki <dev@jeremias-maerki.ch>
Date: Thu, 14 Jun 2007 23:02:49 +0200
To: www-xsl-fo@w3.org
Message-Id: <20070614225201.A412.DEV@jeremias-maerki.ch>

I'm not aware of any FO implementation that has a full PostScript
interpreter built-in, because that's just what you'd need to do cover
your requirement. FOP doesn't have one. What FOP can do is embed an EPS
graphic in a PDF. This image will never be shown in Acrobat Reader but
it would be printed if sent to a PostScript printer and if the
respective setting in Acrobat is enabled. But that feature has been
deprecated starting with PDF 1.4 and it's probably not what you want.

I see a couple of possible work-arounds:
- Use Adobe Illustrator (or a similar tool) to convert the PostScript
into SVG. That's a manual process.
- Use GhostScript to convert the PostScript to TIFF or PNG. This can
easily be automated but you already found pstoedit which uses
GhostScript so you probably tried that already.

On 14.06.2007 15:17:20 pmk wrote:
> 
> Hi!
> 
> Is it possible to embed and present the contents of a ps-file inside an
> xsl-fo template and then render everything as PDF?
> If yes,  is there any fo-processor that supports this? 
> 
> I have tried to get an answer to this but didn't succeed.
> 
> I'm using FOP ( 0.20.5 and have tested a lot with 0.93 also. )
> 
> One thing I've tried is to convert ps to svg using 'pstoedit' and then embed
> the svg file in the xsl-fo but I didnt get the svg-output to work correct
> using this program and also it woould bu much better if ps was supported
> directly....
> 
> 
> Best regards 
> 
> 
> -- 
> View this message in context: http://www.nabble.com/Embbeded-postscript-in-xsl-fo-tf3921695.html#a11120047
> Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
> 
> 



Jeremias Maerki
Received on Thursday, 14 June 2007 21:02:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:14 GMT