Adding a function to run a script after the export sounds like a suitable way to get the full export process done.
Also I would go for the solution of two different templates to choose between text and titles only.
I think using a regexp for padding the pages would work, too.
The only thing I can't figure out yet is how to tell pdflatex how to call the outputfile. Would make scripting things easier.
Also I still think this is just a interim solution and we should look into different, more elegant, templating mechanisms with less external dependencies (LaTeX) for creating PDFs.
Adding a function to run a script after the export sounds like a suitable way to get the full export process done.
Also I would go for the solution of two different templates to choose between text and titles only.
I think using a regexp for padding the pages would work, too.
The only thing I can't figure out yet is how to tell pdflatex how to call the outputfile. Would make scripting things easier.
Also I still think this is just a interim solution and we should look into different, more elegant, templating mechanisms with less external dependencies (LaTeX) for creating PDFs.