From: Andy S. <an...@ru...> - 2007-07-14 21:09:49
|
On Saturday 14 July 2007 04:37, Patrick Wright wrote: > I've written our user's guide using Xilize, and using Flying Saucer, > can generate PDF from that. FS uses CSS to control all layout and > formatting, and for PDF output, restricts itself to CSS marked as > "print" media. > > I'd like to have two different versions, one in size A4 and one in US > Letter. The page size is specified by CSS, which is either embedded or > linked in. Question is, how could I create two different versions of > the same doc where only one value (a CSS string) changes? Can I > somehow pass in variables to replace during generation? I took this as an opportunity to extend the Xilize documentation. See http://xilize.sourceforge.net/HowTo/index.html The section titled "using system properties to control output" might be a solution for you. Let me know if it's not clear or doesn't help. (I'm not entirely clear on what you need.) Andy |