Forum How do I...?

Specify computed page size

Johann
I want to send Prince generated PDF to a printing service to get a paper copy. The cover is a separate file that prints front and back page (including spine).
I want to compute he page width of the cover (= twice the page width of the book + spine, depending on the page count) using CSS variables - but that did not work!

Do you support computed page sizes? If yes, is there an example?

- - -
Johann

mikeday
I don't think Prince supports calc() or variables on @page size property at the moment no, you might need to use JavaScript to do this.
Johann
OK - thanks.
But it seems to be a reasonable use case, maybe you could add it to the road map?

- - -
Johann