aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/pdf/PDFPainter.java
Commit message (Collapse)AuthorAgeFilesLines
* Transition source to standard maven hierarchy (initial).Glenn Adams2016-03-031-587/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/maven@1733433 13f79535-47bb-0310-9956-ffa450edef68
* FOP-2488: Support PDF/UASimon Steiner2015-06-161-3/+37
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1685770 13f79535-47bb-0310-9956-ffa450edef68
* FOP-2436: Merging of Tagged (Accessible) PDFSimon Steiner2015-06-111-4/+39
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1684928 13f79535-47bb-0310-9956-ffa450edef68
* FOP-2445: Merge PDF Linearization branchSimon Steiner2015-02-241-2/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1661887 13f79535-47bb-0310-9956-ffa450edef68
* FOP-2422: fix erroneous use of mapped char with fixed width space charsGlenn Adams2014-11-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1637810 13f79535-47bb-0310-9956-ffa450edef68
* FOP-2411: PDF to PDF Link not workingSimon Steiner2014-09-111-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1624312 13f79535-47bb-0310-9956-ffa450edef68
* FOP-2301: Enable support for PDF sub-page transitions.Glenn Adams2013-11-011-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1537948 13f79535-47bb-0310-9956-ffa450edef68
* Cosmetics only: enabled Checkstyle MethodParamPad rule and fixed ↵Vincent Hennebert2013-05-071-14/+14
| | | | | | corresponding violations git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1479969 13f79535-47bb-0310-9956-ffa450edef68
* Cosmetics only: enabled Checkstyle ParenPad rule and fixed corresponding ↵Vincent Hennebert2013-04-091-25/+25
| | | | | | violations git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1466146 13f79535-47bb-0310-9956-ffa450edef68
* FOP-2195: use sparse arrays for position adjustmentsGlenn Adams2013-01-181-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1435400 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #54081: properly tag hyphenated words in PDF output when ↵Vincent Hennebert2012-11-021-4/+3
| | | | | | accessibility is enabled git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1405158 13f79535-47bb-0310-9956-ffa450edef68
* Added support for Rounded Corners (see Bugzilla 54041). Peter Hancock2012-10-241-9/+31
|\ | | | | | | | | | | | | Contributions made by PH, JM and LB git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1401607 13f79535-47bb-0310-9956-ffa450edef68
| * Increased unit test coverage for the PaintersPeter Hancock2012-10-081-3/+12
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_RoundedCorners@1395490 13f79535-47bb-0310-9956-ffa450edef68
| * Merged trunk@1356765Peter Hancock2012-07-031-33/+8
| |\ | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_RoundedCorners@1356804 13f79535-47bb-0310-9956-ffa450edef68
| * \ Merged trunk@1354651Peter Hancock2012-06-291-31/+118
| |\ \ | | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_RoundedCorners@1355321 13f79535-47bb-0310-9956-ffa450edef68
| * | | Bugzilla #49913:Jeremias Maerki2010-09-301-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial code drop for support of rounded corners. Submitted by: Peter Hancock <peter.hancock.at.gmail.com> Changes to patch: - Java 1.5 methods eliminated - Some (not all!) Checkstyle violations fixed. - Fixed some excessive and missing whitespace - paintCornersAsBitmap() in AFPPainter was missing a call to ImageSize.calcPixelsFromSize() - Made AT representation of border traits cleaner - Added a TODO for table borders (inner and outer versions) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_RoundedCorners@1003020 13f79535-47bb-0310-9956-ffa450edef68
* | | | Bugzilla #54037: Issue a warning when accessibility is enabled for PDF ↵Vincent Hennebert2012-10-221-0/+46
| |_|/ |/| | | | | | | | | | | | | | output and language information is missing git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1400890 13f79535-47bb-0310-9956-ffa450edef68
* | | Changed the exception message when internal font key == null, also some ↵Mehdi Houshmand2012-07-021-33/+8
| |/ |/| | | | | | | | | clean up and encapsulation to *Painter classes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1356161 13f79535-47bb-0310-9956-ffa450edef68
* | apply complex scripts patchGlenn Adams2012-02-261-5/+84
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1293736 13f79535-47bb-0310-9956-ffa450edef68
* | Associate structure tree elements directly to render contentPeter Hancock2012-01-271-10/+11
| | | | | | | | | | | | | | | | | | | | * Defer the binding of PCData to struct elems using a placeholder mechanism. * Translate text nodes to marked-content sequences in IF structure tree. * Replace ptr with structure tree element. * Re-order table footers so they appear at the end of the structure tree. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ImproveAccessibility@1236718 13f79535-47bb-0310-9956-ffa450edef68
* | Bugfix: select the right font to paint replacement glyphs. This used to ↵Jeremias Maerki2011-07-021-11/+23
|/ | | | | | paint some characters on top of each others when a font with an auxiliary encoding was active. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1142190 13f79535-47bb-0310-9956-ffa450edef68
* Removed a bunch of javadoc warnings in addition to patch 49733Simon Pepping2010-08-131-8/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@985227 13f79535-47bb-0310-9956-ffa450edef68
* Renamed some variables and methods for consistency.Vincent Hennebert2009-10-211-1/+1
| | | | | | | | Improved javadocs. Code clean-up and simplification. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@828038 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: render all background images as artifactsVincent Hennebert2009-10-131-20/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@824808 13f79535-47bb-0310-9956-ffa450edef68
* Switched parameters of separateTextElements and beginTextObjectAccess, for ↵Vincent Hennebert2009-10-121-2/+2
| | | | | | consistency with saveGraphicsState and beginMarkedContentSequence git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@824439 13f79535-47bb-0310-9956-ffa450edef68
* Extracted code related to logical structure out of PDFDocumentHandler and ↵Vincent Hennebert2009-10-121-57/+21
| | | | | | | | | | put it in its own PDFLogicalStructureHandler class. Vastly simplified the building of the structure tree in the same time. Fixed bug occurring when a block contains only one line of text: the generated PDF was illegal Fixed bug in the generation of the structural parent tree: values in a number tree must be indirect references (note: other number trees in the document may still be wrongly generated) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@824407 13f79535-47bb-0310-9956-ffa450edef68
* Fixed some bugs concerning marked content generation inside leaders ↵Jeremias Maerki2009-04-161-38/+28
| | | | | | | | | (use-content case). Removed marked content logic from PDFTextUtil and concentrated it in PDFContentGenerator to make Artifact generation more uniform. Not only text generates Artifacts but inside leaders images can also be Artifacts. Some code simplifications. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@765525 13f79535-47bb-0310-9956-ffa450edef68
* Reverted changes for "ptr" to painter interface as announced in #46705. The ↵Jeremias Maerki2009-04-141-7/+11
| | | | | | | | | pointer value is now provided through the IFContext so only the implementations that support it have to deal with it. Also, the method signature changes in the renderers are now reverted. They are not necessary. Found a few other smaller omissions (IFRenderer, IFSerializer) that didn't seem to have been merged properly from Trunk. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@764802 13f79535-47bb-0310-9956-ffa450edef68
* JavaBeanified FOUserAgent.accessibilityEnabled().Jeremias Maerki2009-02-201-1/+1
| | | | | | Moved accessibility initialization out of PDFRenderingUtil because PDFRenderer doesn't support accessibility and both the new and old implementation use this class. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@746248 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #46705:Jeremias Maerki2009-02-191-14/+118
| | | | | | | | | | | | | | | 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
* Performance improvements and file-size reductions by introducing ↵Jeremias Maerki2009-02-051-2/+10
| | | | | | | | | 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
* Introduced IFContext to provide access to foreign attributes (as discussed ↵Jeremias Maerki2009-01-021-6/+5
| | | | | | | | | | | on fop-dev). Removed the foreign attributes map from the drawImage methods as a consequence. Added support for foreign attributes on the page (PCL's paper-source and duplex-mode extensions). Fixed a couple of bugs parsing the document navigation elements. Build-time test suite now runs through. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@730740 13f79535-47bb-0310-9956-ffa450edef68
* Fixed another spacing issue in IFRenderer.Jeremias Maerki2008-12-221-1/+1
| | | | | | Checks for spacing (kerning, letter-space and word-space combinations). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@728700 13f79535-47bb-0310-9956-ffa450edef68
* Borders and leaders/rules for the PostScript painter.Jeremias Maerki2008-12-191-1/+5
| | | | | | | BorderPainter methods throw IOException (needed for PostScript). Some Javadocs. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@727986 13f79535-47bb-0310-9956-ffa450edef68
* Added page master name to IFDocumentHandler.startPage() method.Jeremias Maerki2008-11-191-5/+5
| | | | | | | | Wired together the support for out-of-order rendering (only applicable to PDF) when the intermediate format is not used (in-memory rendering). Fixed a logical bug in IFRenderer that caused some unneeded code. Glyph adjustments (kerning, letter/word space...) were not done right. All painters fixed/adjusted accordingly. Started implementation of the PostScript painter: Supports only text and filled rectangles so far. Work in progress... git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@719051 13f79535-47bb-0310-9956-ffa450edef68
* Moved IFState instance variable into AbstractIFPainter as all ↵Jeremias Maerki2008-10-231-26/+0
| | | | | | | | | | | | | | implementations use it. Refactored default image handling methods in AbstractIFPainter a bit to make them more universal. Fixed a small mistake in Java2DImageHandlerRenderedImage. Added configurator code for new PCL implementation. Fixed smaller issues in PCLGenerator. Added support for painting images (e-g and i-f-o) as bitmaps (depends on rev 707329 in XML Graphics Commons). Added support for text with custom fonts to be painted as bitmaps. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@707331 13f79535-47bb-0310-9956-ffa450edef68
* Split IFPainter into IFDocumentHandler and IFPainter. This makes the ↵Jeremias Maerki2008-09-281-235/+24
| | | | | | | | | | implementation classes smaller, better allows to isolate the painting parts and helps with formats that generate one object per page (SVG, PNG etc.). Added ImageHandlerFactory to FopFactory. Started TIFF output in order to develop the Java2DPainter that will be needed for certain tasks when generating PCL. Tweaked the way XML is generated for IF and SVG output. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@699813 13f79535-47bb-0310-9956-ffa450edef68
* Fixed cursor advancement for fixed width spaces. Jeremias Maerki2008-08-261-2/+3
| | | | | | Set color before "BT" (beginText) to match the old PDFRenderer. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@688990 13f79535-47bb-0310-9956-ffa450edef68
* Added support for painting leaders (implemented as drawLine in IFPainter).Jeremias Maerki2008-08-201-12/+14
| | | | | | Removed unused "stroke" parameter in drawRect and renamed the method to fillRect. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@687455 13f79535-47bb-0310-9956-ffa450edef68
* Had to introduce "clip-rect" to handle clipping on background images, leader ↵Jeremias Maerki2008-08-151-9/+18
| | | | | | etc. A full viewport is probably too heavy-weight here. This is to be considered temporary pending verification with SVG and PCL implementations. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@686253 13f79535-47bb-0310-9956-ffa450edef68
* "ET" (endTextObject()) forgotten. Caused to swallow some border rectangles.Jeremias Maerki2008-08-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@686234 13f79535-47bb-0310-9956-ffa450edef68
* Made the IFRenderer smarter so it combines lines of text into a single text ↵Jeremias Maerki2008-08-151-1/+1
| | | | | | | | element where possible. Makes the final output files smaller. Fixed problems with letter and word spacing. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@686228 13f79535-47bb-0310-9956-ffa450edef68
* Initial implementation for border painting for the new IF (including support ↵Jeremias Maerki2008-08-141-0/+12
| | | | | | for PDF, but not SVG, yet) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@685827 13f79535-47bb-0310-9956-ffa450edef68
* Added document-trailer element to the IF (for example for the bookmark tree).Jeremias Maerki2008-08-131-20/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@685472 13f79535-47bb-0310-9956-ffa450edef68
* Removed obsolete addTarget() method from IFPainter.Jeremias Maerki2008-08-121-6/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@685197 13f79535-47bb-0310-9956-ffa450edef68
* Implemented named destinations for PDF painter.Jeremias Maerki2008-08-121-0/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@685192 13f79535-47bb-0310-9956-ffa450edef68
* Added support for bookmarks to intermediate format (including PDF painter).Jeremias Maerki2008-08-121-17/+67
| | | | | | Added infrastructure for IF testing similar to AT testing with XPaths. To minimize the additional processing needed it is attached to the layout engine tests and only executed if there are IF checks in the test case. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@685170 13f79535-47bb-0310-9956-ffa450edef68
* Implemented foreign-object support for the new intermediate format.Jeremias Maerki2008-08-071-67/+21
| | | | | | Note: foreign namespace are only properly processed if there is an ImagePreloader and, where necessary, one or more supporting ImageConverters and/or ImageHandlers. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@683637 13f79535-47bb-0310-9956-ffa450edef68
* Fix for kerning (switched to SVG semantics, now working correctly for both ↵Jeremias Maerki2008-08-061-6/+6
| | | | | | | | | SVG and PDF) Introduced a special SVG image handler (the successor to PDFSVGHandler). Fixed placement of patterns and links in SVGs for PDF output (the transformations for viewbox and group were not recorded in the state). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@683364 13f79535-47bb-0310-9956-ffa450edef68
* First steps at unified image handling as proposed on ↵Jeremias Maerki2008-08-051-116/+114
| | | | | | | | | | | http://wiki.apache.org/xmlgraphics-fop/ImageSupport/ImageHandler. This shall serve as a preview to motivate early feedback if anyone is interested. Basic external-graphic support now available for PDF and SVG painters (for PDF: RenderedImage, SVG, JPEG, CCITT and Java2D, for SVG: embedded SVG and RFC2397 data URLs containing PNG and JPEG images) Change to IFPainter: added support for foreign attributes for the "image" tag. PDFContentGenerator introduced to hold the most important objects for PDF generation (unification for renderer and painter). Re-routed most image handling through the new image handling code (not fully done, yet, some code duplication remains). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@682757 13f79535-47bb-0310-9956-ffa450edef68