[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fop-user
Subject:    Re: post 1.1 config changes
From:       Mehdi Houshmand <med1985 () gmail ! com>
Date:       2012-11-08 9:56:46
Message-ID: CALmsGz39aWVWOUXrhpNKOdRWA8zFU_aR2-KMSogvAi5t7j5OgQ () mail ! gmail ! com
[Download RAW message or body]

Hi Jason,

I don't think anyone has, or if they have, they haven't published it to the
community.

Hope that helps,

Mehdi


On 8 November 2012 09:53, Jason Harrop <jharrop@gmail.com> wrote:

> Hi Mehdi
>
> Thanks for your reply.  I'm happy I can write configuration code for
> current SVN head.  But my question is whether anyone has produced/shared
> configuration code which works with both current SVN head, and FOP 1.1 ie
> using reflection as necessary.
>
> If not, we may just wait for the next release of FOP, and support only
> that.
>
> thanks .. Jason
>
>
>
> On Thu, Nov 8, 2012 at 8:44 PM, Mehdi Houshmand <med1985@gmail.com> wrote:
>
>> Hi Jason,
>>
>> The backwards incompatibility of this API has been discussed quite a lot,
>> and I'm sorry you're having these issues. If you're looking for examples
>> for how to configure the new FopFactory, I'd say look in the source [1],
>> there are plenty of examples on how to do it, there's also quite a bit of
>> information on the wiki [2].
>>
>> Sorry for the inconvenience,
>>
>> Mehdi
>>
>> [1]
>> http://svn.eu.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/
>> [2] http://wiki.apache.org/xmlgraphics-fop/FopFactoryConfiguration
>>
>>
>> On 8 November 2012 01:54, Jason Harrop <jharrop@gmail.com> wrote:
>>
>>> I maintain the docx4j project
>>>
>>> I reported https://issues.apache.org/bugzilla/show_bug.cgi?id=54094 which
>>> was apparently fixed in July, but didn't make it into FOP 1.1 (just
>>> released).
>>>
>>> So, I thought I'd test a FOP nightly (20121107) to verify it has been
>>> fixed.
>>>
>>> But config seems to have changed extensively post 1.1
>>>
>>> Post 1.1, I can see FopFactoryBuilder, mentioned at
>>> http://wiki.apache.org/xmlgraphics-fop/FopFactoryConfiguration which
>>> contains
>>>
>>>     public FopFactoryBuilder setConfiguration(Configuration cfg) {
>>>         fopFactoryConfigBuilder.setConfiguration(cfg);
>>>         return this;
>>>     }
>>>
>>> but that class didn't make it into 1.1 (it has FopFactoryConfigurator)
>>>
>>> So, Is it feasible/sensible to try to be interchangeable between FOP 1.1
>>> and whatever is to come?  Has someone written code which facilitates this?
>>>
>>> Please excuse if there are posts on this topic already.
>>>
>>> thanks .. Jason
>>>
>>>
>>>
>>
>

[Attachment #3 (text/html)]

Hi Jason,<div><br></div><div>I don&#39;t think anyone has, or if they have, they \
haven&#39;t published it to the community.</div><div><br>Hope that \
helps,</div><div><br></div><div>Mehdi</div><div class="gmail_extra"><br><br> <div \
class="gmail_quote">On 8 November 2012 09:53, Jason Harrop <span dir="ltr">&lt;<a \
href="mailto:jharrop@gmail.com" target="_blank">jharrop@gmail.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"> Hi Mehdi<div><br></div><div>Thanks for your reply.  \
I&#39;m happy I can write configuration code for current SVN head.  But my question \
is whether anyone has produced/shared configuration code which works with both \
current SVN head, and FOP 1.1 ie using reflection as necessary.</div>

<div><br></div><div>If not, we may just wait for the next release of FOP, and support \
only that.</div><div><br></div><div>thanks .. Jason<div><div class="h5"><br> \
<br><br><div class="gmail_quote">On Thu, Nov 8, 2012 at 8:44 PM, Mehdi Houshmand \
<span dir="ltr">&lt;<a href="mailto:med1985@gmail.com" \
target="_blank">med1985@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">

Hi Jason,<div><br></div><div>The backwards incompatibility of this API has been \
discussed quite a lot, and I&#39;m sorry you&#39;re having these issues. If \
you&#39;re looking for examples for how to configure the new FopFactory, I&#39;d say \
look in the source [1], there are plenty of examples on how to do it, there&#39;s \
also quite a bit of information on the wiki [2].</div>


<div><br></div><div>Sorry for the \
inconvenience,</div><div><br></div><div>Mehdi</div><div><br></div><div>[1] <a \
href="http://svn.eu.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/" \
target="_blank">http://svn.eu.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/</a></div>



<div>[2] <a href="http://wiki.apache.org/xmlgraphics-fop/FopFactoryConfiguration" \
target="_blank">http://wiki.apache.org/xmlgraphics-fop/FopFactoryConfiguration</a></div><div><div><div \
class="gmail_extra"> <br><br><div class="gmail_quote">On 8 November 2012 01:54, Jason \
Harrop <span dir="ltr">&lt;<a href="mailto:jharrop@gmail.com" \
target="_blank">jharrop@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">I maintain the docx4j project <div><br></div><div>I reported \
<a href="https://issues.apache.org/bugzilla/show_bug.cgi?id=54094" \
target="_blank">https://issues.apache.org/bugzilla/show_bug.cgi?id=54094</a> which \
was apparently fixed in July, but didn&#39;t make it into FOP 1.1 (just \
released).</div>



<div><br></div><div>So, I thought I&#39;d test a FOP nightly (20121107) to verify it \
has been fixed.</div><div><br></div><div>But config seems to have changed extensively \
post 1.1</div><div><br></div><div>Post 1.1, I can see FopFactoryBuilder, mentioned at \
<a href="http://wiki.apache.org/xmlgraphics-fop/FopFactoryConfiguration" \
target="_blank">http://wiki.apache.org/xmlgraphics-fop/FopFactoryConfiguration</a> \
which contains</div>



<div><br></div><div><div>    public FopFactoryBuilder setConfiguration(Configuration \
cfg) {</div><div>        fopFactoryConfigBuilder.setConfiguration(cfg);</div><div>    \
return this;</div><div>    }</div></div><div>


<br>
</div><div>but that class didn&#39;t make it into 1.1 (it has \
FopFactoryConfigurator)</div><div><br></div><div>So, Is it feasible/sensible to try \
to be interchangeable between FOP 1.1 and whatever is to come?  Has someone written \
code which facilitates this?  </div>



<div><br></div><div>Please excuse if there are posts on this topic already.  \
</div><div><br></div><div>thanks .. Jason</div><div><br></div><div><br></div> \
</blockquote></div><br></div> </div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic