It should be possible to produce the contents of a File as the body of a page, e.g. as:

define page publicationpdf(pub: Publication) {
var pdf := getPDF(pub, principal())

The page definition above works, but does not reproduce a PDF file correctly. Perhaps a getContentAsBinary() method would do the job?

Submitted by Eelco Visser on 15 May 2011 at 20:59

Log in to post comments