Compare commits
10 Commits
82e32688c3
...
19841125c5
Author | SHA256 | Date | |
---|---|---|---|
19841125c5 | |||
ae1343590c | |||
8625226312 | |||
a68ae1b45f | |||
7239963c1e | |||
93489e5ceb | |||
2822a359c3 | |||
0ee8591820 | |||
|
405a7e1dfa | ||
|
92f8b052e1 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:993daa593ba38cb9bb6bc30777a67b44cbeca4434fa4855b2be6d14fb89b2878
|
||||
size 28360
|
3
PDF-Table-1.007.tar.gz
Normal file
3
PDF-Table-1.007.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:92cf9f15a94f3de39dd55f04c6021c468809ce0164c9cd3b4d5e7acfd21fa714
|
||||
size 94082
|
20
cpanspec.yml
20
cpanspec.yml
@@ -1,5 +1,16 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
description: |-
|
||||
This class is a utility for use with the PDF::Builder (or PDF::API2)
|
||||
module from CPAN. It can be used to display text data in a
|
||||
table layout within a PDF. The text data must be in a 2D array (such as
|
||||
returned by a DBI statement handle 'fetchall_arrayref()' call). PDF::Table
|
||||
will automatically add as many new pages as necessary to display all of the
|
||||
data. Various layout properties, such as font, font size, cell padding, and
|
||||
background color can be specified for each column and/or for even/odd rows.
|
||||
Also a (non)repeated header row with different layout properties can be
|
||||
specified.
|
||||
summary: Utility class for building table layouts in a PDF::Builder
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
@@ -7,11 +18,14 @@
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
# baz.patch: PATCH-FIX-OPENSUSE
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_build: |-
|
||||
# rm unused.files
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
@@ -21,3 +35,9 @@
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
||||
#skip_doc: regexp_to_skip_for_doc.*
|
||||
#add_doc: files to add to docs
|
||||
#misc: |-
|
||||
#anything else to be added to spec file
|
||||
#follows directly after %files section, so it can contain new blocks or also
|
||||
#changes to %files section
|
||||
|
@@ -1,3 +1,189 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 26 05:35:36 UTC 2025 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 1.7.0 (1.007)
|
||||
see /usr/share/doc/packages/perl-PDF-Table/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 22 16:33:04 UTC 2024 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 1.006
|
||||
see /usr/share/doc/packages/perl-PDF-Table/Changes
|
||||
|
||||
=== Version 1.006 (2024-03-20)
|
||||
examples/*.pl
|
||||
Add ability to read an ENV environmental variable 'PDF_prefLib' to get
|
||||
the preferred library to use (API2 or Builder). Checks for command line
|
||||
A or B (or -A -B), ENV{PDF_prefLib} A or B, PDF::API2 or PDF::Builder,
|
||||
examples/PDFpref file A or B, PDF::API2 or PDF::Builder. This is of
|
||||
real interest only when BOTH libraries are installed, and you need to
|
||||
pick one or the other to run with.
|
||||
Note that util/3_examples.pl also has the ability to give 'A' or 'B'
|
||||
on the command line to indicate a preference for API2 or Builder (if
|
||||
both are installed).
|
||||
Note that the t-tests use a dummy library PDFAPI2Mock, that provides
|
||||
enough of the interface to let the tests be run, regardless of whether
|
||||
you already have API2 or Builder installed! However, you will still need
|
||||
to have at least one of the two installed in order to run the examples
|
||||
or otherwise use PDF::Table.
|
||||
lib/PDF/Table.pm, examples/no_repeat.pl (new), util/3_examples
|
||||
Was incorrectly defaulting undefined header repeat switch, in a manner
|
||||
that did not allow the switch to be '0': no repeating the header (#77).
|
||||
Add new example of multipage table without repeating header.
|
||||
README.md update to point to new Home Page structure on catskilltech.com
|
||||
including both full documentation and examples
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 29 03:07:52 UTC 2023 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 1.005
|
||||
see /usr/share/doc/packages/perl-PDF-Table/Changes
|
||||
|
||||
=== Version 1.005 (2023-01-28)
|
||||
lib/PDF/Table.pm
|
||||
Update cell checking when using markup, so that anything which CAN be by
|
||||
default stringified, will be. Some customers are using default or implicit
|
||||
stringification of objects, which was being caught as an unsupported data
|
||||
type, and rendered as "(invalid)" in a cell. The downside is that if you
|
||||
send something nonsensical (e.g., reference to a SCALAR), you will see the
|
||||
stringified reference (address), as done in the 1.003 and earlier versions.
|
||||
Makefile.PL remove PROVIDES clause, as was getting build warnings about it.
|
||||
=== Version 1.004 (2023-01-21)
|
||||
lib/PDF/Table.pm, lib/PDF/Table.pod, INFO/SPONSORS (new), INFO/Table.html,
|
||||
MANIFEST
|
||||
For PDF::Builder ONLY, allow specification of cell 'markup' (Markdown
|
||||
or HTML), to permit great flexibility in cell content. See PDF::Builder's
|
||||
examples/Column.pl for an example of usage.
|
||||
This work (as well as markup changes for PDF::Builder) has been kindly
|
||||
sponsored by Amtivo Group (see INFO/SPONSORS).
|
||||
lib/PDF/Table.pm, examples/sample1-size-vsizes.pl
|
||||
The 'Times' font should be named 'Times-Roman', to conform with the correct
|
||||
core font naming. PDF::Builder no longer silently accepts 'Times' as an
|
||||
alias for 'Times-Roman', and now gives a warning.
|
||||
xt/manifest.t, xt/pod.t, MANIFEST, util/2_t-tests.pl
|
||||
Move author tests from t/ to xt/
|
||||
examples/chess.pl
|
||||
PDF::API2 (PREVIOUS to release 2.044) has a bug in its TTF
|
||||
handling, where it fails to translate some Unicode points ("U+nnnn" number)
|
||||
to the appropriate font glyph entry, and instead puts the Unicode point
|
||||
in the glyph list. This is incorrect, and usually results in a mismapping.
|
||||
As of PDF::API2 v 2.044, chess.pl seems to be working again.
|
||||
examples/*.pl
|
||||
If command line -A or -B, add prefix A_ or B_ to the output file name. This
|
||||
can be useful when using -A or -B with util/3_examples.pl to generate
|
||||
different output PDFs for PDF::API2 and PDF::Builder. Keep in mind that an
|
||||
example given without -A or -B will not add the prefix.
|
||||
lib/PDF/Table.pm, lib/PDF/Table.pod, INFO/Table.html,
|
||||
examples/vsizes.pl (new), util/3_examples.pl
|
||||
Dry run to return vertical size (overall, header, [footer], each row),
|
||||
no output to PDF, with "ink" set to 0.
|
||||
lib/PDF/Table.pod (moved), MANIFEST, util/pod2cpanhtml.pl, Makefile.PL
|
||||
Move .pod up a level (thanks to "perlpunk")
|
||||
lib/PDF/Table/Table.pod, INFO/Table.html, examples/chess.pl,
|
||||
INFO/Changes_2019, lib/PDF/Table.pm
|
||||
Typos caught by lintian (via emollier) and codespell (via mdeweerd).
|
||||
CONTRIBUTING, MANIFEST add Contribution guide
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 24 09:02:18 UTC 2022 - Dirk Stoecker <opensuse@dstoecker.de>
|
||||
|
||||
- updated to 1.003
|
||||
see /usr/share/doc/packages/perl-PDF-Table/Changes
|
||||
|
||||
=== Version 1.003 (2022-07-05)
|
||||
lib/PDF/Table/ColumnWidth.pm, lib/PDF/Table/Table.pod, examples/size.pl,
|
||||
MANIFEST, util/3_examples.pl
|
||||
Add the ability to specify fixed and relative sizes for column widths,
|
||||
rather than having to accept system-calculated widths. You give a string
|
||||
to the 'size' optional global setting specifying the absolute width of
|
||||
a column (in, pt, cm, mm, em, or ex units), and/or a unit of '*' to
|
||||
indicate remaining space is to be split up among these columns.
|
||||
lib/PDF/Table.pm, lib/PDF/Table/Settings.pm, MANIFEST
|
||||
Split out deprecated_settings and check_settings functions into new file.
|
||||
lib/PDF/Table.pm, lib/PDF/Table/ColumnWidth.pm, MANIFEST, t/PDF-Table.t
|
||||
Split out CalcColumnWidths function into new file.
|
||||
examples/chess.pl
|
||||
PDF::API2 work-around added for font-handling change in 2.043. The problem
|
||||
is being investigated, but the chess example almost works for now.
|
||||
lib/PDF/Table.pm, lib/PDF/Table/Table.pod, MANIFEST
|
||||
Split out documentation into separate POD file.
|
||||
lib/PDF/Table.pm
|
||||
Fix handling of degenerate case of header-only, without data rows (#71).
|
||||
lib/PDF/Table.pm, t/PDF-Table.t
|
||||
Finish cleanup of column width calculations (#68, #72).
|
||||
Makefile.PL, LICENSE, MANIFEST.SKIP
|
||||
Build (at install) META.* with "provides" member. Add separate license file.
|
||||
Add some items to MANIFEST SKIP file to clean up.
|
||||
lib/PDF/Table.pm
|
||||
$LAST_UPDATE changed from 'my' storage class to 'our', so can be accessed
|
||||
programmatically.
|
||||
lib/PDF/Table.pm
|
||||
Absolute minimum with of a column reset to at least $min_col_width (a new
|
||||
global default) to prevent text_block() width errors.
|
||||
Update build process to ensure consistent "unix" formatting of most
|
||||
human-readable files. Some non-CPAN builds were complaining
|
||||
about MS-DOS format (CRLF line ends) on some files.
|
||||
lib/PDF/Table.pm, examples/chess.pl, t/PDF-Table.t
|
||||
Fix handling of max_w [GitHub #68], rewrite column width calculations. This
|
||||
may result in some noticable changes in column widths from before.
|
||||
lib/PDF/Table.pm Remove requirement that "empty cell" text not be an
|
||||
empty string (allow $empty_cell_text to be ''), permitting completely
|
||||
empty cells.
|
||||
lib/PDF/Table.pm minor comment updates
|
||||
README.md, lib/PDF/Table.pm, INFO/Table.html
|
||||
2022 copyright. NOT archiving Changes yet.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 28 03:07:50 UTC 2020 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 1.002
|
||||
see /usr/share/doc/packages/perl-PDF-Table/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 6 03:08:25 UTC 2020 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 1.001
|
||||
see /usr/share/doc/packages/perl-PDF-Table/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 4 03:11:07 UTC 2020 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 1.000
|
||||
see /usr/share/doc/packages/perl-PDF-Table/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 7 16:01:01 UTC 2020 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- updated to 0.12
|
||||
see /usr/share/doc/packages/perl-PDF-Table/Changes
|
||||
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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 1 05:20:42 UTC 2019 - Stephan Kulow <coolo@suse.com>
|
||||
|
||||
- updated to 0.11.0
|
||||
see /usr/share/doc/packages/perl-PDF-Table/Changes
|
||||
|
||||
Version 0.11.0 Colspan feature by domm
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 20 05:47:12 UTC 2018 - coolo@suse.com
|
||||
|
||||
- updated to 0.10.1
|
||||
see /usr/share/doc/packages/perl-PDF-Table/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 2 06:50:25 UTC 2018 - coolo@suse.com
|
||||
|
||||
@@ -29,14 +215,20 @@ Mon May 23 12:24:37 UTC 2016 - coolo@suse.com
|
||||
|
||||
Version 0.9.12 - hotfix for failing tests - Desislav Kamenov
|
||||
|
||||
Version 0.9.11 Changes by contributors on GitHub - Keith Carangelo, Mohammad S Anwar
|
||||
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) - Added entry "t/manifest.t" to the MANIFEST file. - Updated MANIFEST.SKIP file.
|
||||
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)
|
||||
- Added entry "t/manifest.t" to the MANIFEST file.
|
||||
- Updated MANIFEST.SKIP file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 10 09:14:51 UTC 2015 - coolo@suse.com
|
||||
@@ -67,4 +259,3 @@ Sun Jun 7 08:52:19 UTC 2015 - coolo@suse.com
|
||||
Sun Jan 22 17:15:48 CET 2012 - pascal.bleser@opensuse.org
|
||||
|
||||
- initial version (0.9.5)
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-PDF-Table
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,47 +12,50 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-PDF-Table
|
||||
Version: 0.10.0
|
||||
Release: 0
|
||||
%define cpan_name PDF-Table
|
||||
Summary: Utility Class for Building Table Layouts in a Pdf::Api2 Object
|
||||
Name: perl-PDF-Table
|
||||
Version: 1.7.0
|
||||
Release: 0
|
||||
# 1.007 -> normalize -> 1.7.0
|
||||
%define cpan_version 1.007
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/PDF-Table/
|
||||
Source0: https://cpan.metacpan.org/authors/id/O/OM/OMEGA/%{cpan_name}-%{version}.tar.gz
|
||||
Summary: Utility class for building table layouts in a PDF::Builder
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/O/OM/OMEGA/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
Provides: perl(PDF::Table) = %{version}
|
||||
Provides: perl(PDF::Table::ColumnWidth) = %{version}
|
||||
Provides: perl(PDF::Table::Settings) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
This class is a utility for use with the PDF::API2 module from CPAN. It can
|
||||
be used to display text data in a table layout within a PDF. The text data
|
||||
must be in a 2D array (such as returned by a DBI statement handle
|
||||
fetchall_arrayref() call). The PDF::Table will automatically add as many
|
||||
new pages as necessary to display all of the data. Various layout
|
||||
properties, such as font, font size, and cell padding and background color
|
||||
can be specified for each column and/or for even/odd rows. Also a
|
||||
(non)repeated header row with different layout properties can be specified.
|
||||
|
||||
See the METHODS section for complete documentation of every parameter.
|
||||
This class is a utility for use with the PDF::Builder (or PDF::API2)
|
||||
module from CPAN. It can be used to display text data in a
|
||||
table layout within a PDF. The text data must be in a 2D array (such as
|
||||
returned by a DBI statement handle 'fetchall_arrayref()' call). PDF::Table
|
||||
will automatically add as many new pages as necessary to display all of the
|
||||
data. Various layout properties, such as font, font size, cell padding, and
|
||||
background color can be specified for each column and/or for even/odd rows.
|
||||
Also a (non)repeated header row with different layout properties can be
|
||||
specified.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
@@ -60,7 +63,7 @@ See the METHODS section for complete documentation of every parameter.
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes examples README README.md util
|
||||
%doc Changes CONTRIBUTING.md examples PDFpref README.md util
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user