aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/afp
Commit message (Collapse)AuthorAgeFilesLines
* Merge from Trunk revisions 744927 - 763662.Jeremias Maerki2009-04-1413-231/+351
|\ | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@764744 13f79535-47bb-0310-9956-ffa450edef68
| * bug fix: 46867: afp:invoke-medium-map extension not working in the AFP RendererChris Bowditch2009-03-211-6/+13
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@756894 13f79535-47bb-0310-9956-ffa450edef68
| * Added full URI resolution support for AFP fonts.Jeremias Maerki2009-03-102-6/+34
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@752133 13f79535-47bb-0310-9956-ffa450edef68
| * EventProducer update didn't get adjusted when AFPEventProducer was moved.Jeremias Maerki2009-03-021-1/+0
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@749272 13f79535-47bb-0310-9956-ffa450edef68
| * AFP Output: Tag Logical Element (TLE) is now also allowed on ↵Jeremias Maerki2009-03-023-20/+41
| | | | | | | | | | | | fo:page-sequence (page group level). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@749258 13f79535-47bb-0310-9956-ffa450edef68
| * AFP: Backported IMM (Invoke Medium Map) to AFPRenderer.Jeremias Maerki2009-03-021-2/+17
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@749251 13f79535-47bb-0310-9956-ffa450edef68
| * Added support for adding extension elements and foreign attributes on ↵Jeremias Maerki2009-03-019-192/+248
| | | | | | | | | | | | | | | | | | | | fo:page-sequence. AFP: Added support for Invoke Medium Map (IMM). AFP: Fixed a bug adding TLEs in DataStream (TLEs were added to the page group instead of to the page). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@748981 13f79535-47bb-0310-9956-ffa450edef68
| * Removed unnecessary setContext methodVincent Hennebert2009-02-251-6/+0
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@747741 13f79535-47bb-0310-9956-ffa450edef68
| * ";mode=painter" MIME suffix removed from all new IFDocumentHandler ↵Jeremias Maerki2009-02-231-2/+1
| | | | | | | | | | | | | | | | | | implementations. Changed RendererFactory to prefer IFDocumentHandler over Renderer if available. A setting on RendererFactory allows to to prefer Renderer over IFDocumentHandler if necessary for compatibility. (not yet tied into CLI or configuration) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@747010 13f79535-47bb-0310-9956-ffa450edef68
* | Bugzilla #46705:Jeremias Maerki2009-02-192-5/+5
|/ | | | | | | | | | | | | | | Accessibility and Tagged PDF Support Submitted by: Jost Klopfstein <jost.klopfstein.at.gmail.com> Changes to patch by jeremias: - Some style fixes - Various simplifications - Removal of dead code - Addressed some issues raised in Bugzilla (work in progress) - Fixed a couple of bugs on leader handling detected while testing (an NPE remains in leader_leader-pattern_use-content.xml) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@745949 13f79535-47bb-0310-9956-ffa450edef68
* Fixed copy/paste mistakes.Jeremias Maerki2009-02-161-7/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@744874 13f79535-47bb-0310-9956-ffa450edef68
* Moved area tree example to package embedding/atxml.Jeremias Maerki2009-02-061-6/+0
| | | | | | | | | | | | | | Created a new concatenation example for the new IF in package embedding/intermediate. Exchanged IFRendererMaker with IFSerializerMaker. Removed unused method getConfigurator() from document handler makers. Extracting original nested IFException in IFParser's parse() method. Removed obsolete IFSerializerConfiguration. Now covered by PrintRendererConfigurator. Delegating FontInfo setter calls to mimic handlers in IFSerializer. Fixed a bug in RendererFactory for the case when FOUserAgent.setDocumentHandlerOverride() is used. Added a generic IFDocumentHandler proxy class (IFDocumentHandlerProxy). Added a simple IFConcatenator helper class for simple IF concatenations (experimental). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@741576 13f79535-47bb-0310-9956-ffa450edef68
* Performance improvements and file-size reductions by introducing ↵Jeremias Maerki2009-02-052-31/+118
| | | | | | | | | letter-spacing and word-spacing attributes in new IF (as mentioned on fop-dev). Allow to control whether kerning information is loaded from fonts. Started support for AFP font embedding (incomplete and currently disabled) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@741165 13f79535-47bb-0310-9956-ffa450edef68
* Merge from Trunk revisions 740276 - 741103.Jeremias Maerki2009-02-058-20/+92
|\ | | | | | | | | | | Hooked in the new AFP resource level defaults into the IF-size of the image handlers. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@741120 13f79535-47bb-0310-9956-ffa450edef68
| * AFP Output: Added a configuration option to override the resource level ↵Jeremias Maerki2009-02-056-27/+86
| | | | | | | | | | | | defaults in the code. The chosen defaults in code may not always be the best. For example, a user reported that they can't use print-level images for some reason and it is not possible to switch on inlining for background images. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@741068 13f79535-47bb-0310-9956-ffa450edef68
* | Merge from Trunk revisions 735029 - 740275.Jeremias Maerki2009-02-031-15/+62
|\| | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@740340 13f79535-47bb-0310-9956-ffa450edef68
| * Moved MonochromeBitmapConverter from PCL to utility package for later reuse ↵Jeremias Maerki2009-01-281-12/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in AFP. Moved BitmapImageUtil to a subpackage under util. Added support for creating (hard) page segments for images when working in bi-level mode. Include Image Object (IOB) is a newer feature and not supported everywhere. Since page segments cannot be scaled, they have to be generated for each distinctive target size. Bugfix: Reduced maximum chunk sizes for GraphicsData and ImageObject to conform to interchange set 1. Bugfix: Removed PresentationSpaceResetMixingTriplet which is not allowed in interchange set 1. Bugfix: Removed invalid byte in IDE Structure Parameter. Added support for creating FS10 images for bi-level bitmaps for better interoperability. Disabled optional and unnecessary name in ImageSegment. This name is never referenced. Refactored environment groups a bit to avoid duplicate data structures due to subclassing. Added explicit MappingOptionTriplet for image scaling. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@738453 13f79535-47bb-0310-9956-ffa450edef68
* | Fixed an image inversion problem.Jeremias Maerki2009-01-221-0/+3
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@736610 13f79535-47bb-0310-9956-ffa450edef68
* | Merge from Trunk revisions 731480 - 735028.Jeremias Maerki2009-01-161-19/+71
|\| | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@735038 13f79535-47bb-0310-9956-ffa450edef68
| * Added in support for subtractive mode in 1-bit images. This should further ↵Jeremias Maerki2009-01-151-4/+6
| | | | | | | | | | | | | | | | reduce AFP file sizes for certain images. We need to change the way the AFP library works in the long term. Adding one boolean flag causes changes in 5 different classes. That can't be it. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@734754 13f79535-47bb-0310-9956-ffa450edef68
| * Extracted some bitmap handling functions from the PCL implementation into ↵Jeremias Maerki2009-01-151-17/+73
| | | | | | | | | | | | | | | | | | | | | | new BitmapImageUtil class. Added limited support for more efficient image encoding in AFP. Where possible the raw image data from the RenderedImage is used. Limitations include: - missing support for color lookup tables (IndexColorModel) - monochrome images: additive/subtractive flag is not supported by the AFP library, yet. Images with fewer bits per pixel than specified in the configuration are no longer blown up to 4, 8 or even 24 bits. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@734737 13f79535-47bb-0310-9956-ffa450edef68
* | Added support for the AFP Extensions.Jeremias Maerki2009-01-162-11/+78
| | | | | | | | | | | | | | Added default font setup. Added a last-resort font selection fallback for cases where an IF file was not created with the right font set. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@735028 13f79535-47bb-0310-9956-ffa450edef68
* | Added support for fixed-width spaces.Jeremias Maerki2009-01-131-30/+34
| | | | | | | | | | | | Better handling of unmappable characters. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@734105 13f79535-47bb-0310-9956-ffa450edef68
* | Added border and leader painting for the AFPPainter.Jeremias Maerki2009-01-121-11/+72
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@733787 13f79535-47bb-0310-9956-ffa450edef68
* | Fixed bitmap image placement in SVG.Jeremias Maerki2009-01-121-2/+6
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@733746 13f79535-47bb-0310-9956-ffa450edef68
* | Started new IF implementation for AFP (incomplete, supporting filled rects, ↵Jeremias Maerki2009-01-1117-157/+1406
| | | | | | | | | | | | | | | | | | text and images). Work in progress! Moved PTOCA (presentation text) command sequence production into the new "ptoca" package. The PtocaBuilder class allows more flexible command sequence production than if you have to pass in an "info object". git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@733456 13f79535-47bb-0310-9956-ffa450edef68
* | Merge from Trunk revisions 724690 - 728025.Jeremias Maerki2008-12-192-2/+2
|\| | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@728031 13f79535-47bb-0310-9956-ffa450edef68
| * Bugzilla #46369:Chris Bowditch2008-12-102-2/+2
| | | | | | | | | | | | | | Restored support for AFP Extensions (TLE, NOP, Overlays and Page Segments) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@725308 13f79535-47bb-0310-9956-ffa450edef68
* | Merge from Trunk revisions 719662 - 724689.Jeremias Maerki2008-12-0982-12320/+2326
|\| | | | | | | | | | | Conflict for ImageHandler interface resolved by renaming Trunk's ImageHandler to ImageHandlerBase and extending the other ImageHandler from that. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@724729 13f79535-47bb-0310-9956-ffa450edef68
| * Batik's DOMUtilities.deepCloneDocument() doesn't propagate the document URI ↵Jeremias Maerki2008-12-081-2/+2
| | | | | | | | | | | | which makes relative image URIs fail. Fixes one of our unit tests. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@724310 13f79535-47bb-0310-9956-ffa450edef68
| * Bugzilla #46360:Jeremias Maerki2008-12-071-6/+14
| | | | | | | | | | | | Fixed a multi-threading issue when rendering SVG. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@724163 13f79535-47bb-0310-9956-ffa450edef68
| * FopCharacterSet doesn't follow the same contract as its superclass. The ↵Jeremias Maerki2008-12-071-2/+3
| | | | | | | | | | | | metrics must not be multiplied by the font size in the FopCharacterSet class. Only RasterFont or OutlineFont should do that. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@724126 13f79535-47bb-0310-9956-ffa450edef68
| * * Text encoding is now handled by PresentationTextData and character set ↵Temp_AFPGOCAResourcesAdrian Cumiskey2008-11-273-100/+19
| | | | | | | | | | | | | | | | | | encoding errors are now handled by AFPEventProducer. * Moved AFPEventProducer from org.apache.fop.render.afp package to org.apache.fop.afp package. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@721151 13f79535-47bb-0310-9956-ffa450edef68
| * * Reverted back the interface changes I made to ImageHandler.Adrian Cumiskey2008-11-259-108/+121
| | | | | | | | | | | | | | | | | | | | | | | | * Created AbstractAFPImageHandlerRawStream base class to handle raw image streams for AFP. * Fixed a bug in handling native embedded TIFF images. I think its finally ready to roll now guys, sorry for the last minute glitches. My apologies for not finding time to respond to the fop-dev mailing list this afternoon but have been trying to put my efforts into applying the final touches to the branch. If my good lady allows I'll respond to your comments later this evening :). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@720561 13f79535-47bb-0310-9956-ffa450edef68
| * <svg:image/> y-axis positioning fix in AFPGraphics2D.Adrian Cumiskey2008-11-211-1/+2
| | | | | | | | | | | | | | | | GraphicsState inner class created in GraphicsObject. Unused methods setFill() and incrementPageFontCount() removed. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@719587 13f79535-47bb-0310-9956-ffa450edef68
| * Improved plumbing :)Adrian Cumiskey2008-11-201-3/+1
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@719307 13f79535-47bb-0310-9956-ffa450edef68
| * SetCurrentPosition fix for line drawing.Adrian Cumiskey2008-11-204-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | AbstractPaintingState push(), pushAll(), pop(), popAll() renamed to save(), saveAll() and restore(), restoreAll(). Some Javadoc improvements/updates. Added Completable, Startable object writing interfaces. StructuredDataObject interface renamed to StructuredData. High level DataStream class moved from afp.modca to afp package. Graphics*Relative objects removed and feature provided by absolute implementation. GraphicsArea broken into GraphicsAreaBegin and GraphicsAreaEnd since areas are able to span more than one segment. Improvement in SetLineWidth thickness precision. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@719274 13f79535-47bb-0310-9956-ffa450edef68
| * Method signature wrong, was using super class implementation.Adrian Cumiskey2008-11-191-8/+7
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@718958 13f79535-47bb-0310-9956-ffa450edef68
| * Removed AbstractGraphics2DImagePainter and Graphics2DImagePainterGOCA ↵Adrian Cumiskey2008-11-183-67/+50
| | | | | | | | | | | | | | | | | | | | (painting preparator mechanism). Adjusted AFPGraphics2D to TextHandler changes in XG commons. Factored an AbstractFOPTextPainter which is extended by AFPTextPainter. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@718598 13f79535-47bb-0310-9956-ffa450edef68
| * * PDFImageHandler interface split into ImageHandler and PDFImageHandler.Adrian Cumiskey2008-11-1320-794/+862
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Deleted AFPDataObjectInfoProvider and AFPImage*Factory implementations, and abstracted AbstractImageHandlerRegistry from PDFImageHandlerRegistry, creating AFPImageHandlerRegistry and AFPImageHandler so there is a common reuse of image handling implementation between AFP and PDF now. * RendererContext instantiation is now overridable in PrintRenderer. * Created AFPRendererContext that is able to provide AFPInfo. * toString() added to RendererContext for ease of use. * Removed GraphicsObjectPainterAFP. * Added package.html for AFP (sub)packages. * Abstracted AbstractFOPBridgeContext from PDFBridgeContext and provided AFPBridgeContext implementation. * Abstracted AbstractFOPTextElementBridge from PDFTextElementBridge and provided AFPTextElementBridge implementation. * Abstracted AbstractFOPImageElementBridge from PDFImageElementBridge and provided AFPImageElementBridge implementation. * Provided inline image support/handling in AFPGraphics2D for SVG. * Created NativeImageHandler interface. * Fix for path iterator filled line drawing in AFPGraphics2D adding coordinate drawing implementations GraphicsLineRelative and GraphicsFilletRelative (Thanks for the patch Jeremias). * Improved configuration.xml documentation for images mode/native setting in AFP renderer configuration. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@713747 13f79535-47bb-0310-9956-ffa450edef68
| * "fixed" block container handling fixed (see ↵Adrian Cumiskey2008-11-0413-190/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | block-container_absolute-position_fixed.xml). Barcode4J generating barcodes correctly for both GOCA and conversion-mode="bitmap". AbstractGenericSVGHandler now declares use of static final String BITMAP which is used by concrete subclasses and provides overridable methods. for buildGraphicsNode() and createPainter(). *State classes are now renamed *PaintingState. AFPImageGraphics2DFactory - painter is not overriden but is now instead prepared for y-axis inversion. AFPGraphics2DAdapter - commented lines removed. Inlining now only done when the graphic is a non conversion-mode="bitmap". git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@711273 13f79535-47bb-0310-9956-ffa450edef68
| * Fix for ↵Adrian Cumiskey2008-10-311-18/+2
| | | | | | | | | | | | test/layoutengine/standard-testcases/block-container_absolute-position_fixed.xml. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@709373 13f79535-47bb-0310-9956-ffa450edef68
| * Renamed GenericGraphics2DImagePainter to a slightly more meaningful name of ↵Adrian Cumiskey2008-10-291-5/+5
| | | | | | | | | | | | BatikGraphics2DImagePainter. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@708877 13f79535-47bb-0310-9956-ffa450edef68
| * Moved AFPTextElementBridge and AFPTextPainter to org.apache.fop.afp since ↵Adrian Cumiskey2008-10-274-627/+4
| | | | | | | | | | | | they have no org.apache.fop.renderer.afp package dependencies. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@708140 13f79535-47bb-0310-9956-ffa450edef68
| * All AFP library classes without Renderer dependencies moved from ↵Adrian Cumiskey2008-10-27150-20327/+209
| | | | | | | | | | | | | | | | | | | | org.apache.fop.renderer.afp.* to org.apache.fop.afp.*. AbstractNamedAFPObject now truncates names to the last x characters of the name string instead of the first x (where x is the name length of the structured field). Removed redundant package org.apache.fop.store. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@708134 13f79535-47bb-0310-9956-ffa450edef68
| * Merged revisions 707627 via svnmerge from Adrian Cumiskey2008-10-247-228/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk ........ r707627 | acumiskey | 2008-10-24 14:20:51 +0100 (Fri, 24 Oct 2008) | 3 lines AFPFontReader a lot more robust now with less copy/pasted code but still far from ideal, the whole AFP FOCA parsing/handling still in need of a rewrite at some point. CharacterSetOrientation width() renamed to getWidth() and now protects itself against a possible ArrayIndexOutOfBoundsException. ........ git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@707629 13f79535-47bb-0310-9956-ffa450edef68
| * Improved name truncation warning.Adrian Cumiskey2008-10-221-2/+4
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@707112 13f79535-47bb-0310-9956-ffa450edef68
| * Cleanup.Adrian Cumiskey2008-10-221-2/+0
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@707088 13f79535-47bb-0310-9956-ffa450edef68
| * supportsOutOfOrder = falseAdrian Cumiskey2008-10-221-1/+1
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@707087 13f79535-47bb-0310-9956-ffa450edef68
| * I am not in love yet with the new eclispe subversion client I'm using... :(Adrian Cumiskey2008-10-226-425/+0
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@707079 13f79535-47bb-0310-9956-ffa450edef68