Vincent Hennebert
efec634548
Fed up with all those trailing whitespaces. Let's remove them all (once... and for all?)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@679326 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Jeremias Maerki
94473ec6c2
Only update the generated files if any source file is newer than the generated ones.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@679164 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
f00c931cf4
My bad.. copy paste error I introduced which broke forrest.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@679060 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
c9bcad782a
Minor optimization.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@679044 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
3b346e852a
Lets free a little memory in every BlockParent :).. Commented out the unused private member variable 'orientation'.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@678730 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Vincent Hennebert
06569aa4b2
Hacked CommandLineOptions so that it accepts '-' as a specification of stdin/stdout.
Made it work also when infile is specified without any option ('fop - -pdf res.pdf')
TODO Investigate the adoption of Apache Commons CLI
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@678699 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
9728efe0d3
Desynchronized createFontKey() and removed single use of static TRIPLETS_TYPE in fontLookup() following a suggestion by Jeremias Ingo Maas' threading issue (http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/200807.mbox/%3C000a01c8eb4b$42166e60$a701010a@ebp01422%3E).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@678691 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
b41cc26d21
Renamed fname to more correct name fontKey.
Made createFontKey() in FontInfo synchronized which should hopefully fix Ingo Maas's threading problem (http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/200807.mbox/%3C000a01c8eb4b$42166e60$a701010a@ebp01422%3E ).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@678477 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
88f3ad3fca
Removed unnecessary storing of byte[] nameBytes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@677973 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
a73a3bc67a
Ok, I am much happier with this fix now, it doesn't feel like a temporary hack anymore :).
I have revised the fontLookup() algorithm in FontInfo so it now first tries to find matching font triplets by iterating over all the font family names *without substitutions*, if this fails it then iterates over all the font family names looking for matching font triplets *with substitutions* rather then just take the last one in the font family name list with substitutions.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@677863 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
6222c4e186
I'm not really happy with this workaround, it is a bit of a hack (as Symbol and ZapfDingbats are not available) but it does prevent the IllegalArgumentException from being thrown.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@677679 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
4b5106d96a
Undoing this change for now until a better fix can be found as it breaks 4 unit tests.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@677668 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
b9bfec2baf
Unused imports.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@677652 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
de2ba920a3
Moved font setup stuff from setupFontInfo() in AFPRenderer and delegated this stuff to an AFPFontCollection class.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@677651 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
4ae2169ed9
An optimization and improved readability of fontLookup() call.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@677650 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
52c0e86bb4
A minor optimization.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@677649 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
3d11078f8d
ZapfDingbats and Symbol is not always available on the AFPRenderer so we can't have these as default font family properties unfortunately.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@677648 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Jeremias Maerki
856c36d54a
fonts package must not depend on the render package. Refactored to restore that rule.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@677543 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Jeremias Maerki
5c318f6e49
Removed stray System.out.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@677405 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Jeremias Maerki
cc047c8507
Worked around a bug in Xalan 2.4.0 (bundled with Sun Java 1.4.2_xx) where file URLs like file:/C:/.... got converted to file:\C:\.... on Windows causing a FileNotFoundException.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@677404 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Chris Bowditch
d096632288
A nit: clarify message so its more meaningful to end user
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@676608 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Andreas L. Delmelle
820d869977
Another attempt at avoiding build issues (?)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@676397 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Jeremias Maerki
4870fca2c0
null is not correct here, an empty String needs to be used for the default namespace. Saxon 9 fails with a NullPointerException otherwise. Xalan is more tolerant.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@676307 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Andreas L. Delmelle
485f17edb3
Replace occurrences of File.toURL() by File.toURI().toURL() (recommended as of Java 6, where File.toURL() is deprecated)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@676297 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Jeremias Maerki
c19ce7b1d5
Attempt to fix a potential build problem.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@676161 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Jeremias Maerki
50a1132974
Ignore FindBugs preference file from Eclipse.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@675854 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Jeremias Maerki
ae33ef905d
Check the result of mkdirs() to see if the target directory could be created.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@675845 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Jeremias Maerki
54ed90041d
Added support for piping:
- input from stdin (-imagein not supported)
- output to stdout
Syntax: fop -xml # -xsl mystylesheet.xsl -pdf #
(reads the XML from stdin and sends the generated PDF to stdout)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@675698 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Jeremias Maerki
4bb070539c
Beware! An evil tab character! But it's been eliminated. ;-)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@675604 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Vincent Hennebert
9fe5a36b19
Bugzilla #45369: footnotes were rendered at the top of the region-body when using the intermediate format
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@675590 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
04393114d8
Duplicated operation scaleX and scaleY replaced simply with scale.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@675501 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
bc4f046684
Whoops.. default value should be true :).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@675258 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
dc4fd68795
Added throwexceptions attribute to FOP ant task. This works around the problem with executing examples/fo/build.xml.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@675253 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
1ab3367b2a
Added newAFP target for producing a set of AFP files from the examples.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@675246 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
d6c51426f5
Minor javadoc cleanup.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@675231 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Clay Leeds
99bd3bc278
One more minor update.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674602 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Clay Leeds
68d3ceee18
updated info.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674599 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Andreas L. Delmelle
ab8786c3d1
Fixed typo
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674564 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Andreas L. Delmelle
35a4d8664d
Added the change to the FONode interface committed in r670341
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674561 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Andreas L. Delmelle
4568253c9c
Correct indentation
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674540 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Luca Furini
03cbc16503
Fixing absolute positioning of block-containers: bottom and right distances were not taken into account
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674489 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
582c66f47c
Refactored this class, moving much of its behaviour to the base AbstractXMLRenderer class.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674487 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
cb94c4d9fa
Cleaned up some javadocs.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674486 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
f99340c416
Added new AbstractXMLRenderer base class.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674484 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
f3b94debbf
Added PDF encryption parameter support in configuration.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674471 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
8a24f31029
Added new set accessor method for EncryptionParams.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674470 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Adrian Cumiskey
7fd75252c0
Possible NullPointerException avoided
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674468 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Andreas L. Delmelle
9cfe03d613
Fixed error; inadvertently switched the condition with r674272...
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674325 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Andreas L. Delmelle
04277b1c8f
Extracted conversion methods for String to int[] or double[] to a utility class.
Made AreaTreeParser.getAttributeAsXXX() methods static to stress their utility character, and removed the private parseRect() in favor of getAttributeAsRectangle2D().
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674276 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Andreas L. Delmelle
1cdbc49c96
Simplified implementation of Area.getTraitAsBoolean()
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674273 13f79535-47bb-0310-9956-ffa450edef68
16 years ago