Well, that is pretty much the big picture.

        Java has an API defined for implementing a PrintService and
DocPrintJobs.

        Java's default PrintServices rely on lpr.

        I have build a true IPP client that fits into Java's PrintService
Architecture.

        In doing this I would like to support the DocFlavor
SERVICE.FORMATTED.PRINTABLE and PAGEABLE.

        For the interface Printable and Pageable I have to provide a
Graphics Object

        for the user to draw into to format the print document.

        I tried to use PDFDocumentGraphics, but could not control the number
of pages.

        Also, PDFGraphics2D does not support all drawing functions into PDF.

        THe SVGGraphics2D object supports way more functions.

        Also the way I designed, I could control the number of pages
generated.


        I will try the SVG.text suggestion.

        I have tried the fo:external suggestion, and will try again, cause
of an error I have found

        recently in my code.

        I will also look back into the PS way of formatting.

        

        But this is the big picture, provide a true IPP client using Java's
pre-defined print architecture.




-----Original Message-----
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: Friday, May 09, 2003 3:28 PM
To: [EMAIL PROTECTED]
Subject: Re: PostScript



On 09.05.2003 18:26:11 Leet, Ethan C wrote:
> 
> 
>       <fo:external-graphic src="someimage.png" blah blah..../>
> 
>       Does it have to be a png ?

No. That was just an example.

>       I am creating the SVG with the SVGGraphics2D.

Not sure, but why don't you try to render directly with
PDF(Document)Graphics2D or PS(Document)Graphics2D?

Maybe it would help if you gave us the full context of what you're
trying to do. Maybe we can come up with a good suggestion.

>       I am supporting a 2D Graphics print formatter.
> 
>       I wanted to format the graphics into PDF, but the images are not
> clear or text is jumbled.

Can you be more specific? It may help if we knew how this jumbled text
looks like. Can you post a small one-page example?

>       So I am trying to render to PS.

...which is likely to be of lesser quality than the PDF way.

>       The SVG document is created in live mememory, I used the
> instream-foriegn-object, cause I could dump the created SVG into 
> the XSL-FO document I was building.

So you actually have other content than bitmap images in that SVG you
generate? Somehow I don't get it, yet.

>       If I want to use the <fo:external-graphic then I must first dump the
> SVG to a tmp file so the PSRender will load it, right ??

I can't tell. Let's have the big picture first.

>       Like I said, when I tried this FOP locks up ??
> 
>       The tmp file is closed.
> 
>       
> 
>       Basically I need a way to provide a Graphics2D object for the
> Printable of Pageable interfaces
>       for printing, then format this data to some printer language, PDF,
> PS, PCL.
> 
>       Any ideas or help or advice ??

Some people use PDFDocumentGraphics2D to create PDF. That would make the
intermediate step over SVG superfluous. See PDFTranscoder.java for an
example. I would try the code from the redesign because it's probably
better.


Jeremias Maerki


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

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

Reply via email to