v0.2.0 (15th September 2008)
- API INCOMPATIBLE CHANGE: render() and render_file() are now deprecated.
- Use the output parameter of the constructor instead
- In versions before this, we automatically rendered to a StringIO object. This kept
things simple, but isn't great for scalability. Better to give the user the option
of bypassing memory and rendering direct to disk.
- Particuarly useful in rails apps to avoid the memory footprint of mongrels
blowing out
- Added Wrapper#open()
v0.1.5 (Unreleased)
- Fix text wrapping that crosses page boundaries
- when a new page is started as a result of a text() call, the text
should continue at the top of the next page, not the y value the
text started at
v0.1.4 (Unreleased)
- Wrapper#font_size now accepts a block for temporary font size changes
- Allow the page size to be changed when starting a new page
- Added support for manually setting table column widths
- prevents the column widths from growing or shrinking automatically
- Deprecated Table#table_options in favour of passing options to Table#new
- Thanks to Zubin Henner for the suggestion
- Deprecated Table#header_options and Table#headers= in favour of a new method
that can be used to specify both the content and options of the header row.
- Thanks to Zubin Henner for the suggestion
v0.1.3 (24th July 2008)
- Require the gem version of cairo
- >= 1.5. However I recommend >= 1.6.3 to avoid FATAL error under 1.8.7
- Removed Wrapper#scale. Was causing more trouble than it's worth. May re-implement later.
- Allow the render functions to be called multiple times
- Added Wrapper#finished?
- rename Wrapper#render_to_file to Wrapper#render_file.
- old method still exists with a deprecation warning
- add :rotate option to Wrapper#image (thanks Lourens Naudé)
- borrowed some convenience methods for co-ordinate manipulation from Prawn
- Wrapper#translate now resets the point to 0,0 before yielding
v0.1.1 (Unreleased)
- use a proxy object when building repeating objects to prevent a new page being started
v0.1.0 (28th May 2008)
- added PDF::Wrapper#translate and PDF::Wrapper#scale
- fixed a bug that caused some text to be rendered off the page when wrapping onto 3rd and
subsequent pages
- Improved table support using a new class PDF::Wrapper::Table
- Added a :center option to Wrapper#image
- Added a :markup option to text related functions. Pango markup can be used to tweak
text style (bold, italics, super script, etc)
- Replaced PDF::Wrapper#rounded_rectangle with the :radius option to PDF::Wrapper#rectangle
- Allow cells to have a border with rounded corners
v0.0.7 (30th April 2008)
- Added support for creating new pages from a template file (pdf/png/jpg/gif/svg/probably more)
- Convert the params to start_new_page to be an options hash
- Added a :padding option to PDF::Wrapper#image
v0.0.6 (28th April 2008)
- Fix a nasty bug in text layout code
v0.0.5 (27th April 2008)
- Fix crash when inserting multiple images
- added PDF::Wrapper#pad
- added PDF::Wrapper#text_width
- added support for customisable page margins (thanks to Paweł Kondzior)
- added support for cubic Bezier spline paths (thanks to Paweł Kondzior)
- added support for specifying the width of a cell border (thanks to Paweł Kondzior)
- fixed alignment of text (thanks to Paweł Kondzior)
v0.0.4 (12th March 2008)
- added support for custom line widths on primitive drawing shapes (circles,
lines, etc). Thanks Paweł Kondzior
- fixed a bug where the first line of text in a multi-line cell appeared at the
current cursor location instead of inside the cell. Thanks Paweł Kondzior
- bumped dependency on PDF::Reader for running specs to 0.6.1
v0.0.3 (17th January 2008)
- added support for repeating elements (like page numbers) via repeating_element
- Ensured consistent behaviour WRT functions moving the internal cursor
- functions that require positioning info (cell, shapes, etc) will not move
the cursor at all
- functions where positioning info in optional (text, image, etc), the cursor
will be moved to the bottom left corner of the object
- Ensure no unrecognised options are provided to various functions
- Add support for padding between a cell border and its text
- added support for scaling images proportionally
- expanded spec coverage
v0.0.2 (11th January 2008)
- Added support for a range of extra image formats (jpg, pdf, gif, etc)
- Various documentation improvements
- improved the text functions a little, but still lots more to go
v0.0.1 (9th January 2008)
- Initial, pre-alpha, eats small children for breakfast release