• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: generation of pdf output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: generation of pdf output


  • Subject: Re: generation of pdf output
  • From: Thomas Ganter <email@hidden>
  • Date: Sun, 23 Nov 2003 20:34:51 +0100

Hi Mike,

I had the same problem a while back, and then implemented my "own" framework and classes to handle dynamic, template-based PDF generation. My solution suits me very well, I now can generate a PDF file for almost every component I want by providing additional, xml:fo templated beside the html templates.

It has been written for my own needs, but knowing it is not generic enough to run anywhere else without customisation, have nevertheless also published all this as Open Source (GPL).

The idea was to use the WebObjects template engine but only substitute the html for the xml:fo master if a certain property in the class is set. The rest, WebObjects magically does for me.

Am 23.11.2003 um 18:31 schrieb Michael Warner:

I am trying to figure out how to generate a .pdf file within WO.
I have looked through list archives but have found nothing that uses
contemporary .jar builds available from Apache.
I have the big picture and I have a specific xml file that I have created.
I need to know:
(a) which .jar files to use.

I did the following: I identified all neccessary jar files until I was able to run FOP from within a WO application by selectively copying the jar's to the extensions folder. Then I wrapped them all up into one framework (I call that one FOP.framework). The latter goes into the standard framework location. The result is about 5MB in size, but I can provide you with a download link if you like. Alternatively, I could also name all the files inside this custom fop.jar.


(b) where/how to locate these files so the WebObjects can find them.

See above.

(c) what the import statements in the .java file will look like.

See, for example, here:
http://www.familie-ganter.de/cvsweb/_cvsweb.cgi/WebObjects/ PrometheusPDF/PDFComponent.java?rev=1.9&content-type=text/x-cvsweb- markup


(URL all one line)

There also are classes that handle streaming the result into the browser, and another class that does background rendering and email attachment generation.

(d) exact syntax associated with the Logger.

See above.

if an example of how to do this already exists I will be happy to study it.

Thanks,

Mike W.

Hope that helps,

- Thomas
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >generation of pdf output (From: Michael Warner <email@hidden>)

  • Prev by Date: Re: generation of pdf output
  • Next by Date: Re: Session locks up and will not die - maybe a MySQL bug
  • Previous by thread: Re: generation of pdf output
  • Next by thread: Re: generation of pdf output
  • Index(es):
    • Date
    • Thread