Made Service a stand-alone class so it can be reused.
Made XMLHandler discoverable through the Service class.
Moved XMLHandler collection into new XMLHandlerRegistry class.
Adjusted the Renderers and XMLHandler to the above changes.
This should make it easier to write certain FOP extensions. The changes were triggered by my work on the FOP extension for Barcode4J for the FOP Trunk.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225143 13f79535-47bb-0310-9956-ffa450edef68
Merge of branch Temp_KnuthStylePageBreaking back into HEAD.
Temp_KnuthStylePageBreaking branch and HEAD have been tagged prior to the merge, so merging uncommitted work from the branch should be easier.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198627 13f79535-47bb-0310-9956-ffa450edef68
- Mode on BorderProps controls painting behaviour.
- Extended toString() on BorderProps
- Painting the borders already works for all three modes (separate, collapsing-inner and collapsing-outer)
- ATM only inner borders are painted.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198432 13f79535-47bb-0310-9956-ffa450edef68
Extend the user agent to pipe title, author and keywords through to the PDF. A title on the user agent will override any title info gathered from fo:title elements.
Implemented the rest of the border styles. Now uses clipping while painting the borders to paint nicer edges. Some of this code should later be extracted into utility classes so other renderers can use the same code.
First version of text-decoration support (no colors, yet, PDF rendering may not be optimal, yet, but the rest seems to work)
This change may kill what text-decoration support already was in the RTF renderer. This will need to be fixed later.
Some javadoc and style touch-ups.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198314 13f79535-47bb-0310-9956-ffa450edef68
Early preloading of images (during FO tree building). This wasn't consistent before (bg-images were loaded by the renderer).
background-position-* implemented where possible (area IPD and BPD must be set for percentages to work)
Fixed placement bug for images (bad rounding or coordinates).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198302 13f79535-47bb-0310-9956-ffa450edef68
Added support for fetching bitmap resolution (only implemented for JFIF-compliant JPEG files for now, all other remain at 72dpi as before)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198294 13f79535-47bb-0310-9956-ffa450edef68
PDFState was cleaned up, simplified and refactored to support a "break-out" mechanism that allows to temporarily break out of the current viewport context.
Support for sending comments to the PDF stream for debugging purposes.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198290 13f79535-47bb-0310-9956-ffa450edef68
Switched to start|end-indent-oriented calculation.
Improved line painting in the PDFRenderer.
Some improvements in BlockContainerLayoutManager (but still WIP ATM).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198259 13f79535-47bb-0310-9956-ffa450edef68
Obtained from:
Submitted by:
Reviewed by:
More XSL 1.1-like terms for PDF bookmarks used, minor bug in TableLayoutManagerMaker fixed.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198209 13f79535-47bb-0310-9956-ffa450edef68
Obtained from:
Submitted by:
Reviewed by:
1.) Removed unneeded enumeration interfaces from fo.Constants.
2.) Appended EN_ to enumeration constants to make them better S&R'able throughout app.
3.) Added an EN_INHERIT enumeration constant (although not currently used in the system.)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198175 13f79535-47bb-0310-9956-ffa450edef68
Obtained from:
Submitted by:
Reviewed by:
1.) Changed OffDocumentItem from an interface to an abstract base class.
2.) Removed the "extensions" package.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198105 13f79535-47bb-0310-9956-ffa450edef68
New line breaking algorithm, patch 29124, submitted by Luca
Furini. This patch implements the algorithm for most but not yet all
inline layout managers.
For the algorithm, see D.E. Knuth and M.F. Plass, "Breaking paragraphs
into lines", Software, Practice and Experience 11 (1981) 1119-1184;
reprinted in: D. E. Knuth, "Digital typography", CSLI Lecture Notes
Number 78 (CLSI Publications, Stanford, CA, USA) pp. 67-155.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197907 13f79535-47bb-0310-9956-ffa450edef68
1.) Moving renderer-specific customization variables (producer, creator, create date) to FOUserAgent, those renderers which can work with these values can read them from passed-in FOUserAgent instance.
For area.Blocks created in BlockLayoutManager.getParentArea(), I set the
width of the Block to that of its parent block.
This fixes a layout problem where
<fo:table-cell><fo:block border-bottom="1pt solid black">some text</ ></ >
was causing a line to draw across the entire page, because the cell width present in
fo:table-cell's Block was not copied into the inner fo:block's Block. (This problem did not
occur if the border-bottom attribute was set in fo:table-cell.)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197539 13f79535-47bb-0310-9956-ffa450edef68
PDFRenderer does not presently support out-of-order rendering (e.g.,
a 10 page document that has an "ending page" fo:page-number-citation in use
will have page 10 printed first, then pages 1-9). Turning this value to false
has the pages generate in correct order.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197534 13f79535-47bb-0310-9956-ffa450edef68