On 17 April 2015 at 23:15, Brian Sidebotham <[email protected]> wrote: > On 17 April 2015 at 13:44, Lex Trotman <[email protected]> wrote: >> oops hit the wrong button :) >> >> On 17 April 2015 at 21:43, Brian Sidebotham <[email protected]> >> wrote: >>> >>> >>> On Friday, April 17, 2015 at 12:39:26 PM UTC+1, Brian Sidebotham wrote: >>>> >>>> Hi, >>>> >>>> I'm coupling CMake and a2x --fop to compile documentation for the KiCad >>>> open source project. Everything is working, but I need to specify an output >>>> filename that's different to the input filename. How can I do that? >>>> >>>> At the moment, I can use the a2x --destination-dir option to guide the >>>> output to the binary output of our source tree, but I cannot modify the >>>> name, which I need to do because there are several languages involved. >>>> >>>> I don't see any options in a2x for this? >>>> >>>> Best Regards, >>>> >>>> Brian. >>> >>> >>> I should just say, when using a2x with dblatex, I just add --dblatex-opts >>> "-o outputname.pdf" to the a2x options and this works well. Unfortunately >>> this can't work for FOP. >> >> This https://xmlgraphics.apache.org/fop/1.1/running.html seems to >> suggest that a fop option -pdf outfile should work. >> >> Cheers >> Lex >> > > Hi Lex, > > Thanks for the quick response. You're correct, but a2x is already > using that to define the output filename, and therefore I cannot > decide on a different output name through --fop-opts, instead I need > to define an output filename for a2x. > > For example, if I run a2x with --fop and --verbose, this is how a2x is > calling fop with no --fop-opts setting as an example: > > a2x: executing: fop -fo > C:\Users\Brian.sidebotham\Github\BrianSidebotham\kicad-doc\build-fop\src\CvPcb\CvPcb-pl.fo > -pdf > C:\Users\Brian.sidebotham\Github\BrianSidebotham\kicad-doc\build-fop\src\CvPcb\CvPcb-pl.pdf > > I know the above appears correct, but I really need control of the > output filename. >
Since you are using cmake why not set --destination-dir to a tempdir, then copy the resulting pdf to the right location with your new name? Cheers Lex > Best Regards, > > Brian. > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/asciidoc. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/d/optout.
