On May 7, 12:00 am, Stuart Rackham <[email protected]> wrote:
> On 07/05/12 15:52, Tong Sun wrote:
>
> > Hi,
>
> > How to control the generated pdf page size when using asciidoc's a2x --fop?
> > I want to change from the default A4 to letter page size.
>
> > I found this,
>
> >ftp://ftp.uni-magdeburg.de/pub/mirror/hpux.ask.uni-karlsruhe.de/PostS...
>
> > which says,
>
> > *-a4, -letter, -legal*
> > choose upon paper sizes. The default is*-a4.*
>
> > but found that it does not work with the a2x from asciidoc:
>
> > $ a2x --fop -letter . . .
> > a2x: error: no such option: -l
>
> You need to pass the option in --fop-opts e.g.
>
> a2x --fop-opts "-letter" ...
Thanks Stuart,
The fop doesn't seem to have the "-letter" option:
a2x -v --fop --fop-opts "-letter" letter-sample.txt
. . .
a2x: executing: fop -letter -fo /tmp/letter-sample.fo -pdf /tmp/letter-
sample.pdf
. . .
SEVERE: Exception
java.lang.IllegalArgumentException: Error creating InputHandler
object.
at
org.apache.fop.cli.CommandLineOptions.createInputHandler(CommandLineOptions.java:
849)
at
org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:
167)
at org.apache.fop.cli.Main.startFOP(Main.java:154)
at org.apache.fop.cli.Main.main(Main.java:197)
a2x: ERROR: fop -letter -fo /tmp/letter-sample.fo -pdf /tmp/letter-
sample.pdf returned non-zero exit status 1
Thanks.
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.