There is indeed a bug. For now you can do this:
fop xslfo.fo -print 1
note: I don't know if it will print... I can confirm it does send the
job to the printer, but in my case the page comes blank. the issue may
be with the printer or with FOP...
On 5/16/12 6:16 PM, pr4321 wrote:
> I am getting the following error when using to print an .fo file with usig
> fop.
>
> C:\>fop xslfo.fo -print
> May 16, 2012 10:32:37 PM org.apache.fop.cli.Main startFOP
> SEVERE: Exception
> java.lang.ArrayIndexOutOfBoundsException: 2
> at
> org.apache.fop.cli.CommandLineOptions.parsePrintOutputOption(CommandL
> ineOptions.java:559)
> at
> org.apache.fop.cli.CommandLineOptions.parseOptions(CommandLineOptions
> .java:325)
> at
> org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:1
> 62)
> at org.apache.fop.cli.Main.startFOP(Main.java:158)
> at org.apache.fop.cli.Main.main(Main.java:205)
>
>
> XSLFO.fo file content:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <fo:root xmlns:fo="
http://www.w3.org/1999/XSL/Format">
>
> <fo:layout-master-set>
> <fo:simple-page-master master-name="A4">
> <fo:region-body />
> </fo:simple-page-master>
> </fo:layout-master-set>
>
> <fo:page-sequence master-reference="A4">
> <fo:flow flow-name="xsl-region-body">
> <fo:block text-indent="80mm" space-before="0mm">REPORT STATUS</fo:block>
> <fo:block text-indent="80mm" space-before="0mm">--------------</fo:block>
> </fo:flow>
> </fo:page-sequence>
>
> </fo:root>
>
>
> COMMAND IS;C:\>fop xslfo.fo -print
>
> anyone please solve my problem
>
> Regards,
> Murali
---------------------------------------------------------------------
To unsubscribe, e-mail:
fop-users-unsubscribe@...
For additional commands, e-mail:
fop-users-help@...