Bug 41271 - PDF is not default mode for ant task fop in 0.93
Summary: PDF is not default mode for ant task fop in 0.93
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: trunk
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-31 05:13 UTC by Jens Stanstrup
Modified: 2012-04-01 06:37 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Stanstrup 2006-12-31 05:13:05 UTC
 
Comment 1 Simon Pepping 2007-01-01 11:08:08 UTC
Jens,

Can you give a more detailed description? The summary is very short. I am not
sure what you mean by the default mode for the ant task.

Simon
Comment 2 Jens Stanstrup 2007-01-01 14:05:41 UTC
Simon.

According to

  http://xmlgraphics.apache.org/fop/0.92/anttask.html

the default for the format attribute is "application/pdf". However if I do not
explicit thefine the attribute, then the fop ant task complains abut the null
format.

In 0.20.5, the default format was application/pdf

Regardsm

Jens
Comment 3 Simon Pepping 2007-01-02 12:05:21 UTC
(In reply to comment #2)
> Simon.
> 
> According to
> 
>   http://xmlgraphics.apache.org/fop/0.92/anttask.html
> 
> the default for the format attribute is "application/pdf".

In revision 332791 the method determineRenderer(String format) has fallen victim
to a refactoring action, and with it the ability to omit the format, or use the
longer formats application/pdf etc.

I will make a note of this in the known issues of version 0.93, and on the
upcoming page http://xmlgraphics.apache.org/fop/0.93/anttask.html.

I will leave a fix to some later moment in the trunk version.

Thanks for reporting the problem.
Comment 4 Simon Pepping 2007-01-02 12:22:52 UTC
(In reply to comment #3)
> In revision 332791 the method determineRenderer(String format) has fallen victim
> to a refactoring action, and with it the ability to omit the format, or use the
> longer formats application/pdf etc.

That is not quite correct. The MIME-type formats are still possible.

Also, a fix for the default format seems easy, so I committed it in revision
491926 to the trunk. If you can test it positively, I will add it to the branch
as well.
Comment 5 Simon Pepping 2007-01-03 12:40:49 UTC
(In reply to comment #4)
> Also, a fix for the default format seems easy, so I committed it in revision
> 491926 to the trunk. If you can test it positively, I will add it to the branch
> as well.
Done. The fix will be in release 0.93.
Comment 6 Glenn Adams 2012-04-01 06:37:59 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed