Forum How do I...?

Passing a meta-only page to prince and not having it print

trevordevore
I am working on a template system that will combine a number of HTML files together to generate a single PDF document. Since I don't always know which document will be the first one passed to Prince (and thus be the one whose meta information is used in the PDF), I would like to specify the meta information in a separate file that I know will be passed first. This file just includes <title> and <meta> tags. The problem is that a blank page is printed, even though the HTML page has no content.

I'm looking for a solution that allows me to specify the meta information in a file separate from the other content. Is there a way to keep a page from printing?

Trevor DeVore
ScreenSteps
http://www.screensteps.com

mikeday
Currently there is no way to make a document that doesn't generate any PDF pages at all. One possible alternative is that you could use an external JavaScript file to modify the document to supply the metadata instead.