[Lazarus] fpPDF: set clip rect for text

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Wed Apr 13 13:16:23 CEST 2016


On 2016-04-13 12:07, Michael Van Canneyt wrote:
> If the PDF format does not support some form of clipping natively,
> then it should not go in fpPDF.


PDF supports native clipping on all graphic elements. Glyphs are part of
the graphic elements.

The only clipping we currently implement is the MediaBox (ie: the size
of the page).

In case somebody else wanted to implement clipping earlier than I can.
See page 123 (table 4.1) in the PDF v1.3 specification document.
Clipping Paths (W & W*) and Graphics state (q & Q most likely).

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp




More information about the Lazarus mailing list