Upstream changes:
=== Version 1.001 (2020-11-05)
lib/PDF/Table.pm fix edge case where no borders led to no rules [GH 55].
t/manifest.t, t/pod.t
Make author-only (AUTHOR_TESTING=1). ref [GH 61]
lib/PDF/Table.pm, t/pod.t
POD change =head5 to =head4, to look better and stop older POD checkers
from complaining (in t/pod.t). Also minimum Test::Pod version 1.52
(was 1.00). ref [GH 61].
examples/sample1.pl, t/lib/TestData.pm, INFO/Deprecated, lib/PDF/Table.pm
Replace deprecated setting names by current names in the POD, examples, and
t-tests. After November 2022, settings names (args) with a leading dash
(hyphen) will no longer be permitted.
=== Version 1.000 (2020-11-03)
INFO/Deprecated, INFO/Table.html, lib/PDF/Table.pm
Final cleanup of POD and generation of HTML documentation, and listing of
all deprecated setting names.
t/lib/PDFAPI2Mock.pm add linedash dummy call so t tests can run.
lib/PDF/Table.pm, MANIFEST, examples/border_rules.pl, util/3_examples.pl
Old "borders" was vertical and horizontal rules PLUS outside rules (frame).
Separate into "borders" (outside) and "rules" (inside). Add border_rules.pl
example to illustrate.
examples/chess.pl with DejaVu-Sans, can use chess piece images
.github/worksflows/test.yml, README.md minor fixes in README to make lint
run happily, stop checking Table.html.
examples/*.pl Allow -A or -B on the command line (case insensitive) to
override PDFpref file (if any) setting. This speeds up testing for PDF::API2
vs PDF::Builder (default).
lib/PDF/Table.pm, INFO/Deprecated, INFO/Table.html, MANIFEST,
examples/chess.pl, t/PDF-Table.t, t/lib/PDFAPI2Mock.pm, util/3_examples.pl
Clean up handling of minimum and maximum cell widths (min_w and max_w).
Clean up handling of background and foreground colors. Add chess.pl example
to show off color handling. Update t-tests for slight coordinate changes.
Add row_props (row properties) similar to column_props, to set things on a
per-row basis.
If the table spills over to a new page, and next_y and/or next_h was NOT
given, issue a warning and for a default use 90% of the media height for
next_y and 80% for next_h (ref ticket #11). This should be better than
using the (start_)y and (start_)h values for the table.
Add new, more consistent aliases for a number of settings (ref ticket #13).
The old setting names are still available for at least TWO YEARS, after
which, they will be REMOVED. Over the next two years you should update your
code to use the new setting names. The settings involved are:
'start_y' is now 'y'
'start_h' is now 'h'
'row_height' is now 'min_rh'
'background_color' is now 'bg_color'
'background_color_odd' is now 'bg_color_odd'
'background_color_even' is now 'bg_color_even'
'font_color' is now 'fg_color'
'font_color_odd' is now 'fg_color_odd'
'font_color_even' is now 'fg_color_even'
'font_underline' is now 'underline'
'lead' is now 'leading'
These are listed in INFO/Deprecated. In the near future, the examples and
t-tests will be updated to use the new setting names.
Ship with Table.html (documentation) in INFO/. Update MANIFEST.
Remove 010_fonts.pl from the util/3_examples.pl list. I'm still not sure why
it should be in the examples -- basically, it shows that UTF-8 doesn't work
with core fonts, but that's already a documented limitation (in
PDF::Builder). 010_fonts.pl is still in the examples/ directory, if anyone
wants to play with it.
Add INFO/Deprecated to list names and interfaces scheduled to be removed in
the future (at least 2 years). MANIFEST updated.
Split out older Changes list into INFO/Changes_2019. MANIFEST updated.
Increase default cell padding to 2pt. See documentation "COMPATIBILITY" for
how to get the old behavior (0pt padding). t/Basics.t, t/Colspan.t,
t/PDF-Table.t expected write locations updated. examples/colspan.pl and
examples/header.pl were widened slightly to accommodate the padding.
Make "odd/even" row consistent with or without a header (repeated or not),
particularly when a table is split across pages, and when a row itself is
split in such a case. See documentation "COMPATIBILITY" for how to get the
old behavior.
Header 'repeat' default changed from 0 (no) to 1 (yes), as most of the time
a user will want to repeat any header on each new page. Suppress repeating
a header with a value of 0. See documentation "COMPATIBILITY" for how to
get the old behavior.
Currently, PDF::Table is shipped to use the new behaviors, with as much
compatibility as possible with existing code (see $compat_mode in Table.pm).
Unless you have need to use the old behaviors for existing code, we
suggest that you leave $compat_mode as 0, use the 'compatibility' setting, or
individually set the flags, to make use of the new behaviors. Also use the
new settings names, unless there is a need for compatibility in existing
code. Eventually, use of the old names will produce warnings, and later,
error messages, but the old behaviors should be available for a long time.
You should examine your existing code and plan to update it over time.
Initialize %arg entries (defaults) so no uninitialized errors. #57 reported by
Larry Leszczynski (larryl) for text_block() along with PR.
Minor build process cleanup
Minor spelling and typo fixes in POD and examples
Version 0.12.0 (2020-04-09)
Permit either PDF::API2 or PDF::Builder (#51)
Don't use UTF-8 with corefonts
General cleanup of typos and misspellings in Table.pm
Minimum Perl 5.10 in Makefile.PL (#53)
More cleanup of text in Table.pm
Add tools (util) for running PerlCritic, t-tests, examples
Clean up code to pass PerlCritic
Clean up examples to run with either API2 or Builder. PDFpref file to declare
which to use if both available
Comments in t tests about use of Mock PDFAPI2
Document needed and optional prerequisite modules
Upstream changes:
Version 0.9.12 - hotfix for failing tests - Desislav Kamenov
Version 0.9.11 Changes by contributors on GitHub - Keith Carangelo, Mohammad S Anwar
3264342 Added cell_render_hook subroutine to create hyperlinks
0fb2e57 Fixed broken link to Rick Measham's tutorial.
8361ec3 Fixed new_page_func valid setting
38610ec Header alignment default should be column alignment
e3ec184 Added parameter checking in the method table(). - Added unit test t/table.t script.
a73e67f Proposed fix to the CPANTS error as below: - Added standard unit test for MANIFEST file (t/manifest.t). - Removed MYMETA.json, MYMETA.yml and Makefile (auto generated files)
----------------
Version 0.9.10 Changes by contributors on GitHub - azawawi, joenio
6fab323 Modernize hashbang #! to be more perlbrew friendly
58c36df Add relative link to Changes file
efaf173 Simple installation/development commmands
cfbcf48 More README.md simplification
a7889bc Fix README.md
43c2182 Fix warning: Useless use of greediness modifier '?' in regex
db4bc44 Fix#17, page parameter should be optional
f93ed16 "utf8" pragma solves issue with characters rendered wrong
e69524e fix script that test issue #15
5d5628f avoid warnind about use of greediness modifier
Problems found locating distfiles:
Package cabocha: missing distfile cabocha-0.68.tar.bz2
Package convertlit: missing distfile clit18src.zip
Package php-enchant: missing distfile php-enchant/enchant-1.1.0.tgz
Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden). All existing
SHA1 digests retained for now as an audit trail.
---------------------
Version 0.9.7 - for a detailed log and changed files visit GitHub
----------------------------
- Reviewed and updated README
- Huge POD rewrite
- Adding a small script that generates HTML from POD and applies CSS from
CPAN. Useful for reviewing the POD before release.
- Added a test for POD validation
- Added an example file that can test GitHub Issues #8, #9, #10
- GitHub [Issue #9] [Issue #10] Fixed cell_props applied to a different
row when 'Repeat Headers' is enabled
- Introduced column_numbers variable to avoid using $record in a broader
scope. Further improvement needed.
- Header row height is copied to each new page when 'Repeat Headers' is
enabled
- Fixed messing up row height when repeat headers is enabled due to
access by array index vs shift/unshift
- Fixed row height for rows with text blocks
- Headers_props variable has been wrongly initialised with 0 causing a
copy of the first data row even when header props are not passed as
parameter
- Added initialisation of header props justify param so that column and
cell properties are not affecting the default value.
- Fixed an issue with messing up row properties when repeating the header
row on each page.
- Examples have been formatted.
- One new example added (header.pl) for demonstrating how header row can
be added to multiple pages.
- No need to export variables. Added one more test.
- Removed pad_w and pad_h local variable as useless
- Fixed typo causing a bug with row_height param. Added example file for
row_height. To be used for writing a test.
- Added POD for row_height param
- Row counting should not be skipped if it is first row.
- Added one more test(duplicates existing) but only to have base.
- Extracted PDF::API2 Mock as a separate package. Created New test with
the very basics. Create a new package that will hold predefined data
for tests so it can be reused.
- Fixed a variable that masks earlier declaration.
- Fixed Issue #4 - Row height is calculated correctly depending on font
size. Some variables are renamed to more meaningful. Row counting is
done in a new way with single counter that is used for column and cell
props retrieval.
- Row height is now calculated for each row based on maximum font size
from all cells. Refactored some variable names and unified row
counting during column size calculation phase.
- Fixed doc details in POD
- Cosmetic changes
- Decreased indent and reduced if body. For easier review, diff with
whitespace changes disabled.
- Added github url in readme
Version 0.9.6
----------------------------
- Fixed typo in POD. Closes#71816 Thanks to Gregor Herrmann
- Small code refactoring.
- Added patch for infinite loop fix. Closes#77376 Thanks to John Bazik
- Added patch for header justification. Closes#77566 Thanks to James
Lance
- Added horizontal_borders, vertical_borders params to table(). Closes
#79883 Thanks to Eric Johnson
Version 0.9.5 - 18.Oct.2011
----------------------------
- MANIFEST was missing sample pdf file.
- Accidently left alternative code for infinite loop fix commented out.
Fixed. Added a test for that.
Version 0.9.4 - 17.Oct.2011
----------------------------
- Don't bump row count when row spans a page. Closes#67401.
- Fixed bug: don't call text_block if record width is exactly cell width.
- Fixed bug in text_block: bottom is (top - height), not (baseline - height).
- Example script typo fixed. Closes#55133.
- Don't set up strokes when border is 0. Apparently breaks Acrobat.
Closes#40705 and #55137.
- Changed print warnings to carp. Closes#38007.
- Added center justification for columns and cells. Tests, too. Closes
#37924.
- Fixed infinite loop caused by uninitialized $2. Thanks to Petri
Kaurinkoski. Closes#34017.
- Fixed perl warning if $col_prop->{min_w} is undef. Thanks to Matthias
Pitzl (NEPOS). Closes#30720.
- Fixed default header background color bug, closes#28542.
- Added mock PDF::API2 packages to test script and added tests.
- Improve column width calculations so wider content gets wider columns.
Added column width test. Thanks to Barrie Slaymaker (RBS). Closes
#26158.
Do it for all packages that
* mention perl, or
* have a directory name starting with p5-*, or
* depend on a package starting with p5-
like last time, for 5.18, where this didn't lead to complaints.
Let me know if you have any this time.
a) refer 'perl' in their Makefile, or
b) have a directory name of p5-*, or
c) have any dependency on any p5-* package
Like last time, where this caused no complaints.
This package was submited as part of PR pkg/43929 which adds the Koha Integrated Library System
submitted by Edgar Fuß
-------------------------------------
This module is intended for table generation using PDF::API2