This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 270702 - WikiText to add PDF output capability
Summary: WikiText to add PDF output capability
Status: RESOLVED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: David Green CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 258349 278250
Blocks:
  Show dependency tree
 
Reported: 2009-03-31 23:23 EDT by David Green CLA
Modified: 2013-08-10 19:55 EDT (History)
3 users (show)

See Also:


Attachments
initial cut of FO builder (13.58 KB, patch)
2009-04-02 12:21 EDT, David Green CLA
no flags Details | Diff
mylyn/context/zip (1017 bytes, application/octet-stream)
2009-04-02 12:21 EDT, David Green CLA
no flags Details
implementation refined (17.12 KB, patch)
2009-04-03 01:23 EDT, David Green CLA
no flags Details | Diff
sample of generated output (644.83 KB, application/octet-stream)
2009-04-03 01:24 EDT, David Green CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Green CLA 2009-03-31 23:23:48 EDT
PDF as an output format, implemented as a DocumentBuilder.   The feature would include

* a menu contribution *WikiText -> Generate PDF*
* an ant task *wikitext-to-pdf*

The PDF implementation would likely require one or more bundles from orbit.
Comment 1 Jörg Thönnes CLA 2009-04-01 05:46:26 EDT
Good idea, but I would think that the e.g. DITA tools will also generate PDF?

Actually, I do not use DITA so far, but we plan to use it as a replacement for the curent OpenOffice documents.
Comment 2 David Green CLA 2009-04-01 11:42:32 EDT
(In reply to comment #1)
> Good idea, but I would think that the e.g. DITA tools will also generate PDF?

Yes, actually both DITA and DocBook can produce PDF.  So a toolchain involving WikiText and DocBook XSL would be a viable alternative.  The idea here is to eliminate the complexity of a multi-process conversion, and enable transforms from within the Eclipse UI.
Comment 3 Steffen Pingel CLA 2009-04-01 14:58:27 EDT
David, we'll need to submit a CQ for Mylyn (even if Batik has already been approved for other projects and is available in Orbit). Let me know once you need it and we can go through the process.
Comment 4 David Green CLA 2009-04-01 15:25:04 EDT
(In reply to comment #3)
> David, we'll need to submit a CQ for Mylyn (even if Batik has already been
> approved for other projects and is available in Orbit). Let me know once you
> need it and we can go through the process.

Steffen, let's get it started.  What do you need from me?
Comment 5 Steffen Pingel CLA 2009-04-01 16:10:25 EDT
1. Determine the CQs of all required Orbit bundles. It's usually easiest to get the from here: http://download.eclipse.org/tools/orbit/downloads/drops/I20090320075422/ .

2. File a request for reuse from https://dev.eclipse.org/portal/myfoundation/portal/portal.php for each CQ.

3. Document approved CQs in the Mylyn IP log and at http://wiki.eclipse.org/index.php/Mylyn/Libraries.

4. Add the Orbit bundles to map file in the releng project (there is a script that does that).
Comment 6 Jörg Thönnes CLA 2009-04-02 03:48:59 EDT
(In reply to comment #2)
> Yes, actually both DITA and DocBook can produce PDF.  So a toolchain involving
> WikiText and DocBook XSL would be a viable alternative.  The idea here is to
> eliminate the complexity of a multi-process conversion, and enable transforms
> from within the Eclipse UI.

Yes, it is definitely a good idea, looking forward to the implementation.
Comment 7 David Green CLA 2009-04-02 12:21:01 EDT
Created attachment 130720 [details]
initial cut of FO builder

created a rough draft of an XSL-FO document builder.  XSL-FO is the logical starting point when producing PDF output.  Also it has no dependencies on 3rd party libraries, so could conceivably be used without FOP or Batik.
Comment 8 David Green CLA 2009-04-02 12:21:06 EDT
Created attachment 130721 [details]
mylyn/context/zip
Comment 9 David Green CLA 2009-04-03 01:23:22 EDT
Created attachment 130790 [details]
implementation refined

new implementation can handle images and spans and blocks of various types, links, etc.
Comment 10 David Green CLA 2009-04-03 01:24:21 EDT
Created attachment 130791 [details]
sample of generated output
Comment 11 David Green CLA 2009-04-03 01:27:08 EDT
outstanding items:

* configurability (fonts, hyperlink colors, etc.)
* spacing for list items
* title page
* header/footer
* CSS support
* page numbering
Comment 12 David Green CLA 2009-04-09 00:43:54 EDT
looking over bug 258349 (add Batik 1.7 PDF transcoder) and the existing orbit bundles there appear to be some issues that need resolving:

# org.apache.batik bundles in orbit (1.7) don't include the PDF transcoder
# the CQ for adding the PDF transcoder has lost its backing from the requesting project(s) for Galileo
# the CQ only covers the FOP portions that are included in the FOP jar that is distributed with batik, which doesn't include all of FOP
# Batik 1.7 is listed as a 'normal' dependency of FOP

To me it appears as if to use FOP we need Batik.  The existing Batik CQ doesn't cover enough of FOP for it to be useful for us.  Thus we have a couple of choices that I see:

# try to convince the existing CQs to expand to cover all of FOP
## provide project backing to those CQs to be brought forward
# create new orbit CQs to cover all of FOP/Batik
# create a CQ for Mylyn to use Batik and FOP outside of Orbit

It looks to me as though this is all too late for Galileo due to the IP cut-off.
Comment 13 David Green CLA 2009-04-29 19:22:08 EDT
Until the IP issues can be resolved PDF capability can be found on the "Textile-J project site":https://textile-j.dev.java.net/builds/wikitext/
Comment 14 Mik Kersten CLA 2009-04-30 19:31:44 EDT
David: Good compromise for the time being.  Fyi, CDT ends up needing to make similar add-ons for things that have not passed review or are unable to pass review (e.g., GPL).
Comment 15 David Green CLA 2009-05-01 11:52:18 EDT
(In reply to comment #14)
> David: Good compromise for the time being.  Fyi, CDT ends up needing to make
> similar add-ons for things that have not passed review or are unable to pass
> review (e.g., GPL).

Thanks for the feedback.  I agree: it gives people immediate access to the feature, providing opportunities for use and feedback while we're blocked elsewhere.
Comment 16 David Green CLA 2013-08-10 19:55:34 EDT
closing due to lack of demand.  PDF can be produced using the following technique: http://greensopinion.blogspot.ca/2009/04/mylyn-wikitext-produces-pdf.html