You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by pr4321 <pr...@gmail.com> on 2012/05/16 19:16:07 UTC
getting error when use -print
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
--
View this message in context: http://old.nabble.com/getting-error-when-use--print-tp33859521p33859521.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: getting error when use -print
Posted by pr4321 <pr...@gmail.com>.
thanks you its working
lmpmbernardo wrote:
>
>
> 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@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/getting-error-when-use--print-tp33859521p33865382.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: getting error when use -print
Posted by pr4321 <pr...@gmail.com>.
actually i installed bullzip free pdf printer as default printer.
when i give the command
fop xslfo.fo -print 1
it will send to bullzip pdf printer it gives the output in pdf format,but
when i change my default
printer to epson fx-2175 it prints an empty page but in bullzip pdf printer
it shows the matter..
any reply
lmpmbernardo wrote:
>
>
> 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@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/getting-error-when-use--print-tp33859521p33868502.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: getting error when use -print
Posted by Luis Bernardo <lm...@gmail.com>.
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@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org