HexaPDF v0.8.0 Release Notes
Release Date: 2018-10-26 // over 5 years ago-
โ Added
- [HexaPDF::Layout::Frame] for box positioning and easier text layouting inside an arbitrary polygon
- [HexaPDF::Layout::TextBox] for displaying text in a rectangular and for flowing text inside a frame
- [HexaPDF::Layout::WidthFromPolygon] for getting a width specification from a polygon for use with the text layouting engine
- [HexaPDF::Type::Image#width] and [HexaPDF::Type::Image#height] convenience methods
- ๐ [HexaPDF::Type::FontType3] for Type 3 font support
- ๐ [HexaPDF::Content::GraphicObject::Geom2D] for Geom2D object drawing support
- [HexaPDF::Type::Page#orientation] for easy determination of page orientation
- [HexaPDF::Type::Page#rotate] for rotating a page
- ๐ [HexaPDF::Layout::Style::Quad#set] for setting all values at once
๐ Changed
- [HexaPDF::Document#validate] to also yield the object that failed validation
- [HexaPDF::Type::Page#box] to allow setting the value for a box
- [HexaPDF::Layout::TextLayouter#fit] to allow fitting text into arbitrarily shaped areas
- [HexaPDF::Layout::TextLayouter] to return a new
[HexaPDF::Layout::TextLayouter::Result] structure when
#fit
is called that includes the#draw
method - [HexaPDF::Layout::TextLayouter#fit] to require the height argument
- ๐จ Refactored [HexaPDF::Layout::Box] to make using it a bit easier
๐ Fixed
- Validation and conversion of dictionary fields with multiple possible types
- Box border drawing when border width is greater than edge length