Commit Graph

22 Commits

Author SHA1 Message Date
michael
805e2bb28d * Patch from Ondrej Pokorny to add transparency
git-svn-id: trunk@41551 -
2019-03-02 12:21:28 +00:00
michael
01790c4e46 * Keywords support
git-svn-id: trunk@39842 -
2018-09-30 09:08:40 +00:00
michael
65baf55ee0 * Fix bug #34081, add Metadata option
git-svn-id: trunk@39549 -
2018-08-02 12:12:13 +00:00
michael
2cf8a9661f * Additional fixes for strikethrough/linecap, plus example
git-svn-id: trunk@39468 -
2018-07-18 12:03:07 +00:00
michael
d90738c784 * Fix by Graeme Geldenhuys for bug ID #31092
git-svn-id: trunk@35126 -
2016-12-14 17:42:57 +00:00
michael
b7083402cf * Fix from Graeme adding Font subset embedding and underline/strikethrough
git-svn-id: trunk@35083 -
2016-12-09 12:51:06 +00:00
michael
8833a6fbba * Patch from Graeme Geldenhuys to add rotation support
git-svn-id: trunk@34781 -
2016-11-04 19:59:28 +00:00
michael
a125d06c07 * Patches from Graeme Geldenhuys:
* Added some primitives:
      DrawPolygon (= Polyline with closing path)
      ClosePathStroke
      FillStrokePath
      FillEvenOddStrokePath
   * Origin by default now at the bottom of the page.
  

git-svn-id: trunk@34778 -
2016-11-03 08:39:26 +00:00
michael
c81b645291 * Further fixes/improvements from Graeme Geldenhuys:
pdf test app: Implements DrawPolyLine() example on page 2.
  pdf: implements Page.DrawPolyLine() method.
  pdf: TPDFLineSegment now has an option Stroke parameter. So too does Page.DrawLine().
       All part of improving the path related drawing in PDF.
  pdf: introduced a new PDFStrokePath class and Page.StrokePath method.
  pdf: removes empty constructors.
  pdf: Adds optional Stroke paramater to all CubicCurveToXXX() methods.
       This allows us more control when we do custom path based drawing.
  pdf: introduced new ResetPath() and ClosePath() methods for TPDFPage.
  pdf test app: Implement Bezier Curve drawing in Advanced Shapes page.
  pdf test app: tidy up the layout of page 2.
  pdf test app: tidy up the layout of page 1.
  pdf test app: adds a new "advanced shapes" page.
  pdf test app: Renamed field variable to a more logical name.
  pdf: Introduced CubicCurveToY() and CubicCurveToY() methods.
       The code comments explain the difference.
  pdf: introduced a new overloaded Page.CubicCurveTo() method.
  pdf: introduced a new overloaded Page.MoveTo() method.
  pdf: Gave Page.CurveToC() more meaningful parameter names.
  pdf: Gave TPDFCurveC parameters and field variables more meaningful names.
  pdf test app: updated the test app to show the Cubic Bezier curve in action.
  pdf: introduced a cubic bezier curve method to TPDFPage.
  pdf: introduced a new Page.MoveTo() method.
  pdf: implements a more consistent class hierarchy.
       Many classes take a Document as parameter in the constructor, yet
       don't descend from TPDFDocumentObject - which defines a property
       to get hold of that Document information again.
  pdf test app: updated the app to show Rounded Rectangles in action.
  pdf: introduced a new Page.DrawRoundedRect() method.
  pdf: improved the Ellipse code with a more accurate curve magic number.
  pdf: introduced a new overloaded LineSegment.Command() function.
  pdf test app: Adds parameter option to embed fonts or not.
  pdf: implements contents string/stream compression.
  ttf unit tests: resolve failing Created/Modified datetime tests.
  pdf demo: extend the sample app to draw text in a box.

git-svn-id: trunk@34767 -
2016-10-27 18:34:29 +00:00
michael
5a58faa3d5 * Several fixes from Graeme Geldenhuys:
fppdf: test project page number output is now more dynamic.
  pdf+ttf: replace string constants with resource strings.
  pdf: removes the unused color parameter from TPDFDocument.AddFont().
  pdf: update "testfppdf" application due to TPDFDocument.AddFont() changes.
  pdf tests: fix failing tests due to TPDFDocument.AddFont() changes.
------------------------------------------------------------------------

git-svn-id: trunk@34563 -
2016-09-26 21:47:03 +00:00
michael
e022ba1b53 * Annotations (and HTML links) support
git-svn-id: trunk@33998 -
2016-06-16 20:14:20 +00:00
michael
a1e5c122f2 * Some updates from Graeme Geldenhuys
- pdf: updates demo with a landscape page.
  - pdf: Intenal Coordinate Matrix was not always adjusted when needed.
    eg: When the Page.Orientation was changed, PaperType was changed and so on.
  - pdf: Extra sanity check to prevent a possible AV.  
  - TTF: new FixPathDelimiters() to fix font search paths.

git-svn-id: trunk@33779 -
2016-05-24 14:29:17 +00:00
michael
51cdce510c * Renamed pixel size DrawImage to DrawImageRawSize
git-svn-id: trunk@33629 -
2016-05-03 07:08:47 +00:00
michael
141a24e29c * Some improvements and reworkings by Graeme Geldenhuys
pdf: Renamed DrawImage() parameters to more clearly state the values are in pixels.
   pdf: convenience function to return a TPDFCoord data type.
   pdf: method implementation signature now matches interface section.
   pdf: Implements new overload DrawImage that takes UnitOfMeasure Width & Height parameters.
   pdf: sample: Modified the Image page to some usage of new overloaded DrawImage()
   ttf: TextWidth() parameters are now const parameters.
   ttf: Implemented a new TextHeight() method for the FontCacheItem class.

git-svn-id: trunk@33566 -
2016-04-28 16:54:25 +00:00
michael
bae53fda21 * Some fixes from Graeme Geldenhuys (Bug ID 30038):
- pdf unittests: Minor improvement to PDFString.TestWrite()
  - pdf: fixes FPC bug ID #30038 and implements TPDFUTF8String unit tests.
  - pdf test: Extended the SimpleText() text output to show more symbols

git-svn-id: trunk@33543 -
2016-04-22 11:15:11 +00:00
michael
2282996817 * Add command-line options to enable image compression and JPEG image support
git-svn-id: trunk@33485 -
2016-04-11 19:08:21 +00:00
michael
b46969cfa8 * Several improvements in PDF generator:
- Removed TTextDictionary class.
 - adds code comments and fixes a spelling mistake.
 - Removes TFontDef definition - we don't need it any more.
 - refactored TPDFDocument Text API to overloaded methods CreateText()
 - test: update test project to reflect the latest API changes.
 - unittests: update tests to match recent API changes.

git-svn-id: trunk@33483 -
2016-04-11 18:27:34 +00:00
michael
1a4dd1b9b2 * Fixed typo in russian message (Ondrej Pokorny)
git-svn-id: trunk@33456 -
2016-04-09 08:40:01 +00:00
michael
3c9f25c987 * Some Fixes/Improvements from Graeme
git-svn-id: trunk@33428 -
2016-04-06 17:22:37 +00:00
michael
18447a39c4 * Fix font encoding and unicode issues, rework tests to work with val()
git-svn-id: trunk@33401 -
2016-03-31 13:54:31 +00:00
michael
94f8db4951 * Patch from Silvio Clecio to remove some hints/warnings
git-svn-id: trunk@33175 -
2016-03-06 10:34:48 +00:00
michael
5eb691f2c9 * Added fcl-pdf
git-svn-id: trunk@33162 -
2016-03-05 17:13:07 +00:00