Glen Mazza
d918e59ad0
Took advantage of the Transformer similarities between FO input and
(XSL, XSLT) input to combine the two into InputHandler.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197840 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Glen Mazza
1351bab573
Removed the non-File constructors from the InputHandler subclasses in favor
of JAXP (for embedded use), and standardized FOFileHandler to use a
StreamSource (like XSLTInputHandler). Currently, command Line usage
works only with files, but We may need to expand the constructors here
somewhat again should we provide other input options from the command line.
other options
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197838 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Glen Mazza
3bcfed2d9b
Combined the apps.Driver class into apps.Fop. (195 LOC total.) Primary
benefit is to make Fop self-documenting in external code, also none of the
API ideas called for retention of the Driver class (even if there were
different ideas for its replacement).
Let's try this for a few weeks, if it confuses people too much (or when
the API starts to grow again) we can bring back Driver, possibly under
a different name, apps.FopProcess, perhaps.
See also:
http://marc.theaimsgroup.com/?l=fop-dev&m=108947697611032&w=2
http://marc.theaimsgroup.com/?l=fop-dev&m=108966015504506&w=2
http://marc.theaimsgroup.com/?l=fop-dev&m=108942673103344&w=2
http://marc.theaimsgroup.com/?l=fop-dev&m=108958756030147&w=2
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197827 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Glen Mazza
360f509474
1.) render() methods moved from Driver to XSLTInputHandler and FOFileHandler.
2.) -param command line switch implemented for xml->xslt->pdf processes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197803 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Glen Mazza
b1c93550a8
1.) Moved exclusively to Simon's DefaultHandler object for both Transformer
and SAXParser usage. DefaultHandler implements the ContentHandler interface
so it can be used where the latter was previously used, also it provides more
functionality. [1]
2.) Updated the examples and internal code accordingly.
3.) Renamed ExampleFO2PDFUsingSAX to ...Parser to avoid confusion (both use
SAX.)
[1] http://www.cafeconleche.org/books/xmljava/chapters/ch06s03.html#d0e8440
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197802 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Glen Mazza
af81f828c5
1.) Driver constructor modified to require RenderType, and setter functions
for RenderType and FOUserAgent removed, to allow for better checking of
a valid Driver object at time of construction. (Also, will reduce need to
validate Driver object should it be a parameter to a method.)
2.) Added validity checking of renderType to FOTreeBuilder as well, in
effect decoupling Driver from FOTreeBuilder (the latter can work on its own
now.)
3.) Updated the various examples and the documentation to indicate the
new API.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197801 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Glen Mazza
333b61994a
Removed the Driver.run() method in favor of JAXP.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197790 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Glen Mazza
b3087c3781
Switch to JAXP identity transformation for DOM Document example.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197765 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Glen Mazza
b0449877f6
1. Output constant types (RENDER_PDF, RENDER_PS, etc.) made common between
CommandLineOptions and Driver, and factored into fo.Constants interface.
2. New Driver(AWTRenderer renderer) constructor added in apps.Driver for
the AWTRenderer (which does reloading, unique among the output types.) Note
reloading currently doesn't work--AWTRenderer not yet functional.
3. Driver.hasData() method removed from API--a search on when it was implemented
dates it to 2001, when reset() was coded. Unsure of its need, and so
removed until we have user requests for it.
4. Renderers abstracted away from API in favor of just calling .setRenderer(int Rendertype),
and configuring user-configurable options in FOUserAgent.
5. Driver.setRenderer(String <renderer class name>) also dropped. If external user
need for it, can be re-implemented fairly easily via a "renderer override" string in FOUserAgent, for which FOTreeHandler can read and use instead.
6. Validity checking added to fo:flow, and convenience functions defining the "%block;"
parameter entity and neutral containers as defined in 6.2 of spec [1] added to FObj.
[1] http://www.w3.org/TR/2001/REC-xsl-20011015/slice6.html#section-N9447-Formatting-Object-Content
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197745 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Glen Mazza
8a045dbc8d
1.) Moved the CommandLineOptions' InputHandler object into FOUserAgent, allowing
for a no-parameter constructor for AWTRenderer (like the other renderers). (Code is
not yet ideal in AWTRenderer, but will do the task.)
2.) AWT renderer handling now more similar to the other renderers
(simplifications in Driver, Fop).
3.) Driver.getRenderer() removed from API. (Renderer configuration now mostly
done through FOUserAgent, and setup of renderer prior to calling setRenderer().)
4.) Validity checking added to region-after, -start, -end, and -before.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197744 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Glen Mazza
585cd35bc7
Change of file to use Commons-logging.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197477 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Jeremias Maerki
4334b4f382
Applied Apache License Version 2.0 by following the instructions at http://www.apache.org/dev/apply-license.html.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197391 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Jeremias Maerki
f375715f4b
Applied Apache License Version 2.0 by following the instructions at http://www.apache.org/dev/apply-license.html.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197384 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Jeremias Maerki
d1699f53b7
Adapt to changes in Commons IO's APIs.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197334 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Jeremias Maerki
a54d46b762
Basic functionality tests for PS and RTF besides PDF. Still no detailed output checking, only checking that no exception is thrown.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196997 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Joerg Pietschmann
41ab38708a
Redfactored generic FOP test to self-contained JUnit test.
More to add.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196940 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Joerg Pietschmann
164d432566
Fixed Testcase.
Some style changes.
Replace FIXME with TODO
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196939 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Joerg Pietschmann
9fcd51db22
SAX filter providing a MD5 checksum for ensuring XML input integrity.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196925 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jeremias Maerki
f651f86849
Initial set of test cases
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196604 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
William Victor Mote
a369435ba9
test for the text-transform function
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195700 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
William Victor Mote
728652fb0a
white-space and line-ending cleanup
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195675 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
William Victor Mote
273947ee0d
white-space and line-ending cleanup
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195674 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
William Victor Mote
39393ac8d3
convert tabs to spaces
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195640 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Keiron Liddle
20e40c41be
improved layout a bit, added some more examples of scaling
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195438 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Keiron Liddle
af6f615d12
test for images with errors
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195106 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Keiron Liddle
5b83ed0542
changed to a format jimi can handle, no alpha and packed
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195098 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Keiron Liddle
e1e850fe0e
added test, currently not handled, for a transparency factor on whole image
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195052 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Keiron Liddle
c248894e0c
added eps image type
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195051 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Keiron Liddle
883bc52bb5
fixed master-name and a test setup problem
as suggested by: Peter Kullmann <p.kullmann@arenae.ch>
fixed line endings
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195040 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Keiron Liddle
1e75d91790
added a few more text tests
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195005 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Keiron Liddle
895ac33295
improved patterns, the contents should be visible now
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194992 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Keiron Liddle
00e397fb0c
embedding svg in instream-foreign-object with alignment and scaling
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194970 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Keiron Liddle
1fd01e65ec
some test images and fo with alignment, viewports etc.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194967 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Keiron Liddle
9091d3250a
added some more complicated fills
tests use of resources inside patterns
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194931 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Keiron Liddle
f4a8acc94a
more svg tests with transparency, patterns and images
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194908 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Keiron Liddle
6f3726ff5a
put decent glyphs for font
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194890 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Keiron Liddle
e01a715246
some svg test, links and text
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194883 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Keiron Liddle
cbdfc6975e
synced with branch
master-name changed to master-reference
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194596 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Keiron Liddle
e052f0e8b0
added some tests with invalid xml or unknown namespaces
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194495 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Keiron Liddle
e8ebf0309d
fixed some text wrapping problems
and improved the wrapping test
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194482 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Steve Coffman
6b627081fe
This adds avalon and logkit to the path to allow execution.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194434 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Keiron Liddle
a9a672d20a
put bugtests back in here
still needs catagorisation and cleanup
now all these can be part of the build test target
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194267 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Keiron Liddle
ac2ee9f42b
fixed classpath for batik jar
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194255 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Keiron Liddle
819ffe38fd
added some simple test files with blocks
also a script to create pdf from test suites
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194245 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
arved
96ef52e858
K. Liddle: testing support
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194237 13f79535-47bb-0310-9956-ffa450edef68
23 years ago