Forum How do I...?

how do I use multiple lines for my configuration file?

tomjohnson1492
When I call Prince from the command line, I have a lot of html files from different sources that I'm bringing together. The doc says to use this format:

prince doc1.html doc2.html -o out.pdf


What if I have 100 html files that I'm compiling? Can I separate them on to different lines, like this:

prince 
doc1.html 
doc2.html 
-o out.pdf


I tried that and it doesn't work.

Also, because I'm pulling these html files from a jekyll site, I have to use the preview mode and use the full url, so the input really looks like this:

prince http://127.0.0.1:4000/mysite/doc1.html http://127.0.0.1:4000/mysite/doc2.html -o out.pdf


Rather than listing the file root each time, I wanted to use the fileroot command like this:

prince --fileroot=http://127.0.0.1:4000/mysite/ doc1.html doc2.html -o out.pdf


However, when I try this, I get an input file not found error msg.

I was looking for some sample inputs in the doc. This page lists a lot of the information: http://www.princexml.com/doc/9.0/command-line/. However, I don't see any examples of how to actually integrate the commands. Thanks.
mikeday
The --fileroot option will only apply to URLs used within your documents, but the files listed on the command-line will be interpreted exactly as-is.

You could use the --input-list argument and put the list of input documents in a separate file, one per line, like this:
prince --input-list=files.txt -o out.pdf

where files.txt contains:
http://127.0.0.1:4000/mysite/doc1.html
http://127.0.0.1:4000/mysite/doc2.html
...
tomjohnson1492
cool, thanks!