Mehdi Houshmand
fb20c15fa4
Moved the FOUserAgent into the constructor of the Renderers
This breaks the public API but for good reasons:
1) the user-agent is essential for configuring the renderers
2) instantiation of the constructor is always followed by call to "setUserAgent()" (in the examples)
3) simplifies the API and reduces mutability of the Renderers
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1234877 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Mehdi Houshmand
cfd456f554
Bugzilla#52499: non embeddable TTF fonts -- throw exception if trying to embed
Submitted by: Luis Bernardo
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1234761 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Mehdi Houshmand
07953c4cf1
Amended a non-ASCII character in a comment
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1234748 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Chris Bowditch
70182e47ba
added svn:eol-style=native property to recently added new files
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1233854 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Chris Bowditch
cb5ef63bdc
use of £ was causing some cross platform issues since it's part of the ASCII extended character set. Swapped it for a Unicode reference to resolve the problem.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1233427 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Chris Bowditch
1095a4956c
remove remaining duplicates with the help of xslt provided by Pascal Sancho
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1233411 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Chris Bowditch
6c9666b140
Bugzilla #52416:
Suppress unnecessary "font not found warnings" when generating AFP with raster fonts
Submitted by: Luis Bernardo
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1233393 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Chris Bowditch
b30c82eb93
remove some duplicate exclusions
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1232955 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Chris Bowditch
311236e507
resolve findbug warnings
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1232905 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Chris Bowditch
39d7a6a55d
Bugzilla #51209:
SVG text in AFP creates miscoded GOCA text
Submitted by: Luis Bernardo
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1232845 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Chris Bowditch
fb1489b30e
Bugzilla #50391:
Add support for different flow-name of fo:region-body in FOP
Submitted by: Peter Hancock
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1229622 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Chris Bowditch
0cc4cbb9f0
Bugzilla #51644:
Tagged PDF performance improvement + tests
Submitted by: Mehdi Houshmand
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1228243 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Vincent Hennebert
89eb2ae7a4
Removed file that became empty in rev. 1198853
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1221326 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Simon Pepping
5086f073c0
Rename fop.cmd to fop.bat and let fop.cmd call fop.bat
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1210863 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Vincent Hennebert
f8c8032b12
Bugzilla #52206: small performance improvements by declaring some class members as static
Patch by Alexis Giotis, applied with minor modifications
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1210477 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Vincent Hennebert
c6fb066a02
Removed the DOM representation of the structure tree.
The structure tree is now directly converted into corresponding PDF objects.
When going the IF route, the structure tree is stored in the form of SAX events that will be re-played when it's time to stream them into the output. This may still change.
* Extracted RFC3066 methods from XMLUtil into new LanguageTags class that can be re-used in a non-XML context.
* Dropped support for accessibility in the old Area Tree XML.
* Added support for the xml:lang property on fo:root, so that the global language can be set for the document without retrieving the language from the first page-sequence.
* Renamed StructureTreeBuilder into more appropriate StructureTreeEventHandler (same for applicable sub-classes)
* Renamed StructureTreeBuildingFOEventHandler into FO2StructureTreeConverter and added test case
* Added test cases for classes in the StructureTreeEventHandler hierarchy
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ImproveAccessibility@1205935 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Vincent Hennebert
89b7968a92
Added build/fop-hyph.jar to standard-junit-classpath so that hyphenation tests can run when the "source" en.xml and de.xml are stored in the hyph/ directory
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1205046 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Mehdi Houshmand
d955d844f8
Changed the error handling for AFP fonts such that errors are passed to the AFPEventProducer.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1204579 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Mehdi Houshmand
96f6f23137
Bugzilla #52197: Improved support for AdobeStandardEncoding encoded AFM files for type1 fonts
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1204488 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Mehdi Houshmand
69e5c269a3
Added mockito JAR for use in unit tests to mock classes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1204457 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Vincent Hennebert
07f082ad3d
Bugzilla #52151: added ant script to get JaCoCo code coverage
Patch by Mehdi Houshmand, applied with changes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1203749 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Mehdi Houshmand
3d2b970d8e
Bugzilla #52177: Changed the AFP double-byte characterset builder to a singleton, this now matches the behaviour of the single byte characterset builder
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1203719 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Chris Bowditch
32ad33cda1
Bugzilla #51592: TTFFontLoader ignores the useKerning attribute used with fonts
Patch submitted by Mehdi Houshmand (mehdi1985 at gmail.com)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1203163 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Vincent Hennebert
02303acdd9
Bugzilla 52136: Added to build file JUnit target that uses a regex to run all of the test cases.
Patch by Mehdi Houshmand, applied with minor modifications
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1198853 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Peter Hancock
fd263a114c
Bugzilla#52089: Allow JPEG images to be embedded in an AFP document as
is, without being decoded and encoded. It also allows lossy JPEG compression.
Patch by Jeremias Maerki and Mehdi Houshmand.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1195952 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Vincent Hennebert
b073a605e4
Removed the FO document pre-processing step that was adding ptr and creating a reduced FO tree.
* Removed addPtr.xsl and reduceFOTree.xsl
* Implemented Common Accessibility properties on objects that support them
* Added a special implementation of FOEventHandler to build the structure tree
* Added mockito library and its dependencies
* Added mocks for some FO nodes and properties
* Removed FOTreeUnitTester and converted it into a re-usable FODocumentParser class
* Re-worked table FO test cases accordingly
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ImproveAccessibility@1188205 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Jeremias Maerki
54a4751b61
Allow to switch to a different page size in mid-document.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1188123 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Vincent Hennebert
29ecb2d96c
Created new branch for improvements of the Accessibility feature
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ImproveAccessibility@1187234 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Vincent Hennebert
ae7c3b4bd8
Cache the schema for the XML namespace to a local directory. This avoids downloading it from the W3C website every time the IF test cases are run.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1186858 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Peter Hancock
9860d5a133
Bugzilla#512010: Simplification of the build.
Reduced code duplication and layout engine tests.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1186070 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Jeremias Maerki
87f892d9d8
Restored PDFDocumentGraphics2D functionality.
Bugfix: NPE after PDFDocumentGraphics2D.create() due to missing font setup and other missing initializations.
Bugfix: Properly handle state in PDFGraphics2D.drawString().
Added an example class demonstrating the use of PDFDocumentGraphics2D.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1183620 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Peter Hancock
25d268f166
Bugzilla#51962: Bugfix for when the last simple-page-master referenced in a page-sequence-master is not chosen when force-page-count=odd.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1181660 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Vincent Hennebert
91c66d9742
Bugzilla #51928: Upgraded all tests to JUnit 4
Patch by Mehdi Houshmand, applied with minor cosmetics and error fixes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1178747 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Peter Hancock
7d33c81a0a
Fixed a findbugs warning introduced in rev#1177251
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1178350 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Peter Hancock
5fac6eaf12
Fix FO tree hierarchy: BasicLink shouldn't inherit from Inline
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1177251 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Simon Pepping
0a4a0fdf2e
Various small fixes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1177228 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Peter Hancock
eebad9b8a3
Bugzilla#48696 version 4: Bugfix for color model in IOCA IDE structure parameter for 4- and 8-bit grayscale images.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1175808 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Peter Hancock
677accf2e9
Bugzilla#51760: PS images stored as an embedded file which has no length limit.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1175764 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Peter Hancock
a4b5668e88
PDFFactory responsible for asdigning name to a subset font.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1175754 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Vincent Hennebert
2f433908c6
Proper fix for Bugzilla #51789: no non-ascii characters permitted
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1169780 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Vincent Hennebert
a9ecadc9d8
Bugzilla #51790: source file contains non-ascii character
Removed @author tags
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1169766 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Vincent Hennebert
bc91753c04
Bugzilla #51789: removed non-ascii characters in source files
Patch submitted by Christopher Yeleighton
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1169758 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Peter Hancock
de056bce77
Bugzill#51530: Improved support for EBCDIC encoded double byte fonts fo AFP.
Submitted by: Mehdi Houshmand <med1985.at.gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1165223 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Peter Hancock
2b875243ac
Bugzilla#51205: Corrected typographical errors in AFPBase12FontCollection.
Submitted by: Mehdi Houshmand <med1985.at.gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1165195 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Peter Hancock
355eb32c4a
Improved fix for bugzilla#48062
Bug relates to PCL painter thread safetly. Previous fix in rev 895012 worked by synchronizing methods of a static instance of Java2DFontMetrics. This fix uses a unique instance for per thread.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1161612 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Simon Pepping
ff8d999ad2
Only some values of the format property are supported; change requested by Glenn Adams
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1161419 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Jeremias Maerki
dd1bee20f4
Fixed favicon.ico problem.
Fixed trademark statement in skinconf.xml.
Fixed validation issue in skinconf.xml.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1160886 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Peter Hancock
937d2cbd25
Fixed a bug in AFP where an ArrayOutofBoundsException is throwqn when embedding a Page Segment.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1160298 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Peter Hancock
c3e956474f
Fixed checkstyle warnings
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1160172 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Vincent Hennebert
5ed41f9cfc
Removed debug output to System.out
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1155396 13f79535-47bb-0310-9956-ffa450edef68
12 years ago