You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Siarhei Baidun <s....@sam-solutions.net> on 2005/07/26 15:47:03 UTC

fop contribution

Hello
Do not know exactly the person that is responsible for such issue as mine. 
So I decided to write to fop-dev.
Our company has been sucessfully using FOP for several years.
As our customers required extended functionality and FOP had several bugs 
and restrictions, 3 years ago we created our own FOP branch.
Those days we were in a hurry and did not consider the issue of commitment 
of our modifications to Apache.

Now we have troubles with our FOP branch support because we have to 
constantly merge it with Apache's FOP. Having now necessary resources we'd 
like very much to commit our changes to Apache.

There are two main features we have implemented in the FOP:
1. the insertion of exeternal PDF documents into the rendered PDF document.
The mechanism is similar on the images insertion, we use 
fo:external-graphics element and put content-type property equals to "pdf"

For example,

<fo:external-graphics content-type="pdf" file="c:\test\testfile.pdf"/>
An external PDF file is inserted into rendered PDF document AS-IS, also 
there is a possibility to insert page range, not the whole external PDF.

For external PDF uploading we use the third-party library Etymon Pj 
(http://www.etymon.com/epub.html) .
It is under GNU GPL license .

2. MathML 2.0 support.
To implement MathML support, we also used the  third-party library named 
JEuclid.
But we can consider the case of MathML support implementation fully inside 
of FOP project, without JEuclid usage.
It would be not very expensive in human/time resources as our guys almost 
fully re-implemented JEuclid.

Some other features and bugs fixes were made.

3 years ago we based our FOP branch on the Apacehe FOP version 0.20.4rc.
As FOP maintenance branch is not being developed, we'd like to make 
contributions on the main branch.

Coule you please advise on the steps on how to contribute. I guess there 
should be some code compliance rules and some agreements with Apache.
Also in case our customers will port their applications on new FOP we could 
participate in FOP contribution more actively and push forward its success.

--
Thanks in advance,
Siarhei Baidun 


Re: fop contribution

Posted by The Web Maestro <th...@gmail.com>.
Jeremias,

I'm impressed with your fluency in English... :-p

On Jul 26, 2005, at 7:10 AM, Jeremias Maerki wrote:
<snip>
> I hope that helps. If you have any further questions, don't hesitate to
> ask.
>
> Jeremias Maerki

Regards,

Web Maestro Clay
-- 
<th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet


Re: fop contribution

Posted by Siarhei Baidun <s....@sam-solutions.net>.
Jeremias,
thanks for explanations.

As "commit" I meant "contribute" of course. I'm already aware of the rule 
that commit rights are awarded by voting.

Btw, I contacted JEuclid founder Stephan Michels yesterday. Unfortunately I 
received no reply at the moment.
Will try to contact another project admin.

--
Siarhei Baidun

>
> On 27.07.2005 15:49:02 Siarhei Baidun wrote:
>> Jeremias,
>> we consider the signing of the CCLA (corporate) , not ICLA (individual).
>
> The ICLA is mandatory for each person that intends to submit a
> contribution to an ASF project. The CCLA is only necessary if you work
> for a company and you want to make sure everything is 100% waterproof.
>
> At the ASF no company can be a contributor. It's always an individual
> that does the actual contribution. The CCLA is simply there to make
> certain that you are entitled as an employee of that company to make
> contributions to the ASF.
>
>> Could you please advise if ICLAs have to be signed along with CCLA for 
>> those
>> employees who would commit to Apache?
>                     ^^^^^^^^
>
> I don't want to be a nitpicker but at first, you can only submit patches
> as a contributor. Commit rights have to be earned and are proposed to
> you by the existing committers. Just to avoid any false expectations.
>
> Jeremias Maerki
> 


Re: fop contribution

Posted by Jeremias Maerki <de...@greenmail.ch>.
On 27.07.2005 15:49:02 Siarhei Baidun wrote:
> Jeremias,
> we consider the signing of the CCLA (corporate) , not ICLA (individual).

The ICLA is mandatory for each person that intends to submit a
contribution to an ASF project. The CCLA is only necessary if you work
for a company and you want to make sure everything is 100% waterproof.

At the ASF no company can be a contributor. It's always an individual
that does the actual contribution. The CCLA is simply there to make
certain that you are entitled as an employee of that company to make
contributions to the ASF.

> Could you please advise if ICLAs have to be signed along with CCLA for those 
> employees who would commit to Apache?
                     ^^^^^^^^

I don't want to be a nitpicker but at first, you can only submit patches
as a contributor. Commit rights have to be earned and are proposed to
you by the existing committers. Just to avoid any false expectations.

Jeremias Maerki


Re: fop contribution

Posted by Siarhei Baidun <s....@sam-solutions.net>.
> I've just had a closer look into the JEuclid project. There seems
> absolutely no activity lately. 

That's true

>I'd recommend the following approach:
> 
> Contact the original authors and tell them that there is interest to do
> some work on JEuclid, mainly to make it fit for use in FOP and to
> address the additional requirements you and Vincent have. Try to work
> with them to integrate the change you've already done within the JEuclid
> project in SourceForge. Like this we can gauge if this project is really
> good enough to be adopted into the ASF. If I can see that this is the
> case I'll gladly help to get it into the Incubator if the JEuclid people
> are willing to do that. Since I don't need MathML support myself and I'm
> deep in other things I can't take the lead here. I can help where FOP
> code is concerned but, at this stage, nothing more.

Lets do so.
We'll contact the authors and try to commit our code to source forge.

--
Siarhei Baidun

Re: fop contribution

Posted by Siarhei Baidun <s....@sam-solutions.net>.
Jeremias,
we consider the signing of the CCLA (corporate) , not ICLA (individual).

Could you please advise if ICLAs have to be signed along with CCLA for those 
employees who would commit to Apache?

--
Thanks,
Siarhei Baidun 


Re: fop contribution

Posted by Jeremias Maerki <de...@greenmail.ch>.
I've just had a closer look into the JEuclid project. There seems
absolutely no activity lately. I'd recommend the following approach:

Contact the original authors and tell them that there is interest to do
some work on JEuclid, mainly to make it fit for use in FOP and to
address the additional requirements you and Vincent have. Try to work
with them to integrate the change you've already done within the JEuclid
project in SourceForge. Like this we can gauge if this project is really
good enough to be adopted into the ASF. If I can see that this is the
case I'll gladly help to get it into the Incubator if the JEuclid people
are willing to do that. Since I don't need MathML support myself and I'm
deep in other things I can't take the lead here. I can help where FOP
code is concerned but, at this stage, nothing more.

On 27.07.2005 15:02:18 Siarhei Baidun wrote:
> > Any volunteers to start talking to the JEuclid guys? I can serve as
> > sponsoring member.
> 
> Well, think me or somebody from our company could do it. 
> If you'd like to talk yourself - no problem.


Jeremias Maerki


Re: fop contribution

Posted by Siarhei Baidun <s....@sam-solutions.net>.
> Right. For example we could provide an additional extension element
> under fo:root which would involve extending its contents from:
> 
> (layout-master-set,declarations?,page-sequence+)
> 
> to:
> 
> (layout-master-set,declarations?,(page-sequence|fox:external-document)+)
> 
> This way it would be possible to freely mix content.
> 
> fox:external-document could have the following attributes:
> - content-type ("application/pdf" in case of PDF files)
> - src (URL to the PDF to be included)

have no objections. lets have it through fox: extension element.

> Any volunteers to start talking to the JEuclid guys? I can serve as
> sponsoring member.

Well, think me or somebody from our company could do it. 
If you'd like to talk yourself - no problem.
 
> Please don't do it this way. Please create an implementation of an
> XMLHandler. Do it the same way SVG/Batik-support is implemented.

Ok.
Did not dig into the detaild of SVG support implementation.
But ok, for the sake of consistency lets do in the same way as SVG done.
 


Re: fop contribution

Posted by Jeremias Maerki <de...@greenmail.ch>.
On 27.07.2005 12:35:16 Siarhei Baidun wrote:
> > Ah, I see. But in that case external-graphic is probably not the right
> > element to use as it is an inline-level element.
> 
> Any other ideas?
> The problem is XSL-FO specification does not describes the case of embedding 
> external PDF files, so there is no special element there.

Right. For example we could provide an additional extension element
under fo:root which would involve extending its contents from:

(layout-master-set,declarations?,page-sequence+)

to:

(layout-master-set,declarations?,(page-sequence|fox:external-document)+)

This way it would be possible to freely mix content.

fox:external-document could have the following attributes:
- content-type ("application/pdf" in case of PDF files)
- src (URL to the PDF to be included)

> > iText is able to handle that, yes.
> 
> Ok, we'll launch investigation of iText applicability instead of Pj.

You may also want to look around. I think someone mentioned having
written an iText Renderer (for 0.20.5) already.

> > Provided, we get the licensing issues right, yes. This would include
> > contacting the original authors of JEuclid if you based your code on it.
> > Furthermore, bringing in a whole subproject such as JEuclid would
> > involve going through the Apache Incubator. But let's first get some
> > opinions on that move (see my other thread).
> 
> I agree that it would be nicer to keep extensions out-of-the-box.
> I'd vote to have a separate subproject under XML Graphics for MathML support 
> as well.

Any volunteers to start talking to the JEuclid guys? I can serve as
sponsoring member.

> To have working sources ready-to-use in the nearest future, I'd suggest the 
> following steps:
> 1/ Implement support of MathML in FOP based on existing JEuclid project.
> It would require minor implementation on the side of FOP - say, add MMLArea 
> element and some code in PDFRenderer (renderMMLArea() method ) -  as we have 
> done it now.

Please don't do it this way. Please create an implementation of an
XMLHandler. Do it the same way SVG/Batik-support is implemented.

> Obviously, the impementation would require JEuclid jar archive.
> To make FOP sources compilable in case of absence of JEuclid jar, and build 
> script could be modified a bit to foresee such case.

Initial feedback from a few committers indicates that you can simply
put the JEuclid jar in the lib directory and work from there. Due to its
license we can easily redistribute it.

> 2/ Bring JEuclid under ASF (of cource in case founders accept such step) .

I'm sure that's no problem. But it'll take some effort, especially from
the original authors. And someone has to talk to them.

> 3/ Commit our changes that have been made  during several months to JEuclid 
> project.
> 
> Step 1/ we could launch right now.
> 
> 
> > No, the ASF policy was recently changed (or rather clarified) so you
> > would need to submit a CLA for any contribution bigger than a trivial 
> > bugfix
> > on an existing file, i.e. for new files, even if you're not yet a
> > committer.
> 
> Ok, no problem.
> Could you please give a link or send CLA template?

http://www.apache.org/licenses/ (scroll to bottom)

> How can we send it to Apache - via fax?

Yes. The number is on the form.


Jeremias Maerki


Re: fop contribution

Posted by Siarhei Baidun <s....@sam-solutions.net>.
> Ah, I see. But in that case external-graphic is probably not the right
> element to use as it is an inline-level element.

Any other ideas?
The problem is XSL-FO specification does not describes the case of embedding 
external PDF files, so there is no special element there.

> iText is able to handle that, yes.

Ok, we'll launch investigation of iText applicability instead of Pj.

> Provided, we get the licensing issues right, yes. This would include
> contacting the original authors of JEuclid if you based your code on it.
> Furthermore, bringing in a whole subproject such as JEuclid would
> involve going through the Apache Incubator. But let's first get some
> opinions on that move (see my other thread).

I agree that it would be nicer to keep extensions out-of-the-box.
I'd vote to have a separate subproject under XML Graphics for MathML support 
as well.

To have working sources ready-to-use in the nearest future, I'd suggest the 
following steps:
1/ Implement support of MathML in FOP based on existing JEuclid project.
It would require minor implementation on the side of FOP - say, add MMLArea 
element and some code in PDFRenderer (renderMMLArea() method ) -  as we have 
done it now.

Obviously, the impementation would require JEuclid jar archive.
To make FOP sources compilable in case of absence of JEuclid jar, and build 
script could be modified a bit to foresee such case.

2/ Bring JEuclid under ASF (of cource in case founders accept such step) .

3/ Commit our changes that have been made  during several months to JEuclid 
project.

Step 1/ we could launch right now.


> No, the ASF policy was recently changed (or rather clarified) so you
> would need to submit a CLA for any contribution bigger than a trivial 
> bugfix
> on an existing file, i.e. for new files, even if you're not yet a
> committer.

Ok, no problem.
Could you please give a link or send CLA template?
How can we send it to Apache - via fax?

--
Siarhei Baidun
s.baidun@sam-solutions.net
 


Re: fop contribution

Posted by Jeremias Maerki <de...@greenmail.ch>.
On 26.07.2005 16:51:35 Siarhei Baidun wrote:
> >> 1. the insertion of exeternal PDF documents into the rendered PDF 
> >> document.
> >> The mechanism is similar on the images insertion, we use
> >> fo:external-graphics element and put content-type property equals to 
> >> "pdf"
> >>
> >> For example,
> >>
> >> <fo:external-graphics content-type="pdf" file="c:\test\testfile.pdf"/>
> >> An external PDF file is inserted into rendered PDF document AS-IS, also
> >> there is a possibility to insert page range, not the whole external PDF.
> >
> > This sounds quite interesting and has been asked for a few times. A
> > simpler use case would be simply to be able to add PDF pages to a
> > FOP-generated document, possibly through a custom extension.
> 
> I may have expressed the idea not very clearly.
> We do add PDF pages to a FOP-generated document, except we do not use 
> extension pight now.
> We modified PDFRenderer  A BIT and particulary have added there the method
> renderExternalPage(...)

Ah, I see. But in that case external-graphic is probably not the right
element to use as it is an inline-level element.

> >> For external PDF uploading we use the third-party library Etymon Pj
> >> (http://www.etymon.com/epub.html) .
> >> It is under GNU GPL license .
> >
> > This is a problem. Apache software can't include or use GPL-licensed
> > software. A different approach would be to extend our own PDF library
> > to support parsing PDF or to use iText (which is MPL 1.1 licensed and
> > therefore usable for us). But the latter option would probably mean to
> > rewrite the whole PDFRenderer to use iText with all the implications
> > that arise with this. That's why I'd personally prefer extending our own
> > PDF library. But that is open for discussion.
> 
> To extend PDF library is the perfect solution.
> But it might take a long time and we need the working solution asap.
> So as a temporary solution we can consider the use of iText instead of Pj. 
> Right now I do not think such substitution is a bit problem.
> If iText is able to parse PDF document and if it provides the API to 
> retrieve PDF entities (e.g. Pages, resources, objects)  - no problem.
> Should say again, in case of the present implementation PDFRenderer is 
> affected in a little extent.

iText is able to handle that, yes.

> >> 2. MathML 2.0 support.
> > Are you aware of the MathML extension in the FOP repository?
> > http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/examples/mathml/
> 
> Have just had a look on it and was really surprised - it uses JEuclid!
> Just would like to say that we have been developing MathML support for 
> several month and made a deep tests for it.
> During development we were modifying JEuclid and have almost re-written it. 
> We can now consider the case of the implementation of mathML sub-project in 
> the scope of FOP (as PDF library)

Provided, we get the licensing issues right, yes. This would include
contacting the original authors of JEuclid if you based your code on it.
Furthermore, bringing in a whole subproject such as JEuclid would
involve going through the Apache Incubator. But let's first get some
opinions on that move (see my other thread).

> > If you plan to contribute anything larger than a bugfix on an existing
> > file we will need a CLA (contributor license agreement) for each person
> > that contributes to the project (to be sent to the ASF secretary). In
> > addition to that it may be necessary to submit a CCLA (corporate
> > contributor license agreement). Please see the following link for more
> > information:
> > http://www.apache.org/licenses/
> >
> > Code conventions are found here:
> > http://xml.apache.org/fop/dev/conventions.html
> >
> > Before you start to work on anthing bigger, please tell us what it is so
> > we can give some guidance and make sure there aren't any big
> > disappointments. Contributions should be sent to us using Bugzilla
> > entries which we will review and commit to the repository once
> > everything is fine. People contributing substantially to the project
> > (code, documentation, support etc.) over a longer period of time are
> > eligible to become a committer which includes write-access to the
> > code-repository, voting right and stuff like that. More infos on how
> > that works under:
> > http://xmlgraphics.apache.org/charter.html
> > http://www.apache.org/foundation/faq.html
> 
> Ok,
> we are ready to provide you our source code for features I outlined above 
> through Bugzilla.
> 
> As I understand, the license agreement (CLA) is requried when the issue of 
> becoming a contributor will arise (after several sucessfull contributions 
> through Bugzilla, as you wrote).

No, the ASF policy was recently changed (or rather clarified) so you
would need to submit a CLA for any contribution bigger than a trivial bugfix
on an existing file, i.e. for new files, even if you're not yet a
committer.


Jeremias Maerki


Re: fop contribution

Posted by Siarhei Baidun <s....@sam-solutions.net>.
>> 1. the insertion of exeternal PDF documents into the rendered PDF 
>> document.
>> The mechanism is similar on the images insertion, we use
>> fo:external-graphics element and put content-type property equals to 
>> "pdf"
>>
>> For example,
>>
>> <fo:external-graphics content-type="pdf" file="c:\test\testfile.pdf"/>
>> An external PDF file is inserted into rendered PDF document AS-IS, also
>> there is a possibility to insert page range, not the whole external PDF.
>
> This sounds quite interesting and has been asked for a few times. A
> simpler use case would be simply to be able to add PDF pages to a
> FOP-generated document, possibly through a custom extension.

I may have expressed the idea not very clearly.
We do add PDF pages to a FOP-generated document, except we do not use 
extension pight now.
We modified PDFRenderer  A BIT and particulary have added there the method
renderExternalPage(...)

>> For external PDF uploading we use the third-party library Etymon Pj
>> (http://www.etymon.com/epub.html) .
>> It is under GNU GPL license .
>
> This is a problem. Apache software can't include or use GPL-licensed
> software. A different approach would be to extend our own PDF library
> to support parsing PDF or to use iText (which is MPL 1.1 licensed and
> therefore usable for us). But the latter option would probably mean to
> rewrite the whole PDFRenderer to use iText with all the implications
> that arise with this. That's why I'd personally prefer extending our own
> PDF library. But that is open for discussion.

To extend PDF library is the perfect solution.
But it might take a long time and we need the working solution asap.
So as a temporary solution we can consider the use of iText instead of Pj. 
Right now I do not think such substitution is a bit problem.
If iText is able to parse PDF document and if it provides the API to 
retrieve PDF entities (e.g. Pages, resources, objects)  - no problem.
Should say again, in case of the present implementation PDFRenderer is 
affected in a little extent.

>> 2. MathML 2.0 support.
> Are you aware of the MathML extension in the FOP repository?
> http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/examples/mathml/

Have just had a look on it and was really surprised - it uses JEuclid!
Just would like to say that we have been developing MathML support for 
several month and made a deep tests for it.
During development we were modifying JEuclid and have almost re-written it. 
We can now consider the case of the implementation of mathML sub-project in 
the scope of FOP (as PDF library)


> If you plan to contribute anything larger than a bugfix on an existing
> file we will need a CLA (contributor license agreement) for each person
> that contributes to the project (to be sent to the ASF secretary). In
> addition to that it may be necessary to submit a CCLA (corporate
> contributor license agreement). Please see the following link for more
> information:
> http://www.apache.org/licenses/
>
> Code conventions are found here:
> http://xml.apache.org/fop/dev/conventions.html
>
> Before you start to work on anthing bigger, please tell us what it is so
> we can give some guidance and make sure there aren't any big
> disappointments. Contributions should be sent to us using Bugzilla
> entries which we will review and commit to the repository once
> everything is fine. People contributing substantially to the project
> (code, documentation, support etc.) over a longer period of time are
> eligible to become a committer which includes write-access to the
> code-repository, voting right and stuff like that. More infos on how
> that works under:
> http://xmlgraphics.apache.org/charter.html
> http://www.apache.org/foundation/faq.html

Ok,
we are ready to provide you our source code for features I outlined above 
through Bugzilla.

As I understand, the license agreement (CLA) is requried when the issue of 
becoming a contributor will arise (after several sucessfull contributions 
through Bugzilla, as you wrote).

--
Siarhei Baidun 


Re: fop contribution

Posted by Jeremias Maerki <de...@greenmail.ch>.
On 26.07.2005 15:47:03 Siarhei Baidun wrote:
> Hello
> Do not know exactly the person that is responsible for such issue as mine. 

Not a single person, but the whole FOP developer community and
eventually the XML Graphics project management committee (PMC). But you
found exactly the right spot to write to.

> So I decided to write to fop-dev.
> Our company has been sucessfully using FOP for several years.
> As our customers required extended functionality and FOP had several bugs 
> and restrictions, 3 years ago we created our own FOP branch.
> Those days we were in a hurry and did not consider the issue of commitment 
> of our modifications to Apache.
> 
> Now we have troubles with our FOP branch support because we have to 
> constantly merge it with Apache's FOP. Having now necessary resources we'd 
> like very much to commit our changes to Apache.

That's very good news.

> There are two main features we have implemented in the FOP:
> 1. the insertion of exeternal PDF documents into the rendered PDF document.
> The mechanism is similar on the images insertion, we use 
> fo:external-graphics element and put content-type property equals to "pdf"
> 
> For example,
> 
> <fo:external-graphics content-type="pdf" file="c:\test\testfile.pdf"/>
> An external PDF file is inserted into rendered PDF document AS-IS, also 
> there is a possibility to insert page range, not the whole external PDF.

This sounds quite interesting and has been asked for a few times. A
simpler use case would be simply to be able to add PDF pages to a
FOP-generated document, possibly through a custom extension.

> For external PDF uploading we use the third-party library Etymon Pj 
> (http://www.etymon.com/epub.html) .
> It is under GNU GPL license .

This is a problem. Apache software can't include or use GPL-licensed
software. A different approach would be to extend our own PDF library
to support parsing PDF or to use iText (which is MPL 1.1 licensed and
therefore usable for us). But the latter option would probably mean to
rewrite the whole PDFRenderer to use iText with all the implications
that arise with this. That's why I'd personally prefer extending our own
PDF library. But that is open for discussion.

> 2. MathML 2.0 support.
> To implement MathML support, we also used the  third-party library named 
> JEuclid.
> But we can consider the case of MathML support implementation fully inside 
> of FOP project, without JEuclid usage.
> It would be not very expensive in human/time resources as our guys almost 
> fully re-implemented JEuclid.

Are you aware of the MathML extension in the FOP repository?
http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/examples/mathml/

> Some other features and bugs fixes were made.
> 
> 3 years ago we based our FOP branch on the Apacehe FOP version 0.20.4rc.
> As FOP maintenance branch is not being developed, we'd like to make 
> contributions on the main branch.

That would be extremely welcome and just at the right time!!!

> Coule you please advise on the steps on how to contribute. I guess there 
> should be some code compliance rules and some agreements with Apache.
> Also in case our customers will port their applications on new FOP we could 
> participate in FOP contribution more actively and push forward its success.

Most of the basic information for contributors is found here:
http://xml.apache.org/fop/dev/index.html

If you plan to contribute anything larger than a bugfix on an existing
file we will need a CLA (contributor license agreement) for each person
that contributes to the project (to be sent to the ASF secretary). In
addition to that it may be necessary to submit a CCLA (corporate
contributor license agreement). Please see the following link for more
information:
http://www.apache.org/licenses/

Code conventions are found here:
http://xml.apache.org/fop/dev/conventions.html

Before you start to work on anthing bigger, please tell us what it is so
we can give some guidance and make sure there aren't any big
disappointments. Contributions should be sent to us using Bugzilla
entries which we will review and commit to the repository once
everything is fine. People contributing substantially to the project
(code, documentation, support etc.) over a longer period of time are
eligible to become a committer which includes write-access to the
code-repository, voting right and stuff like that. More infos on how
that works under:
http://xmlgraphics.apache.org/charter.html
http://www.apache.org/foundation/faq.html

I hope that helps. If you have any further questions, don't hesitate to
ask.

Jeremias Maerki