2021-07-28 16:09:15 by Wen Heping | Files touched by this commit (2) | |
Log message:
Update to 2.041
Upstream changes:
2.041 2021-07-27
- Bug reports should now be made at GitHub Issues rather than RT.
- Rename openpage to open_page in PDF::API2. The old name is deprecated.
- [RT #136648] Fix when writing PDFs containing cross-reference streams
(reported by Chris Papademetrious, fix by Vadim Repin from RT #117184).
- [RT #44877] GIFs containing comments or plain-text representations will no
longer result in an error (reported by Chris Czub).
- [RT #132844] Fix corruption when a PGM image is included (reported by Jeff
Ratcliffe, fix by Vadim Repin).
- Expand PNM support to include all image types.
- [RT #131657] Disable recursion warnings while releasing (destroying) PDF
indirect objects, which can be highly-interconnected (reported by Leon
Winter).
- [RT #41971] Fix when attempting to read an existing PDF's outlines
(reported by Damyan Ivanov, fix based on a patch by Vadim Repin).
2.040 2021-04-13
- Fix open() followed by stringify() resulting in a corrupt (mostly-empty)
PDF, which was broken by changes in 2.039 (reported by Gareth Tunley).
- [RT #134993] Calling open($filename) followed by saveas($same_filename)
instead of update() resulted in a corrupt PDF in 2.039, which no longer
reads the entire file into memory on open (reported by Marco Pessotto).
- [RT #134957] Fix encoding of \n in a PDF string containing non-printable
characters (reported by Stuart Henderson).
- [RT #133131] Fix endianness of 64-bit numbers in cross-reference stream
widths array (reported by Christopher Papademetrious, fix by Vadim Repin).
|
2021-05-24 21:56:06 by Thomas Klausner | Files touched by this commit (3575) |
Log message:
*: recursive bump for perl 5.34
|
2021-03-28 00:31:08 by Wen Heping | Files touched by this commit (2) | |
Log message:
Update to 2.039
Upstream changes:
2.039 2021-03-04
- PDF::API2->open($filename) no longer reads the entire file into memory
before working on it, instead reading from the file as needed. This
results in a substantial reduction in memory usage and start-up time for
large PDF files, particularly in cases where the calling script doesn't
need to access all of the contents of the PDF.
- PDF files containing cross-reference streams can now be modified and saved
normally. Previously, they were read-only.
- $text->paragraph(...) and $text->paragraphs(...) (formerly \
"section") are
no longer undocumented and experimental. If you were previously using
them at your own risk, note that "-spillover" is no longer an \
option (text
will always wrap inside the specified width if possible). In addition,
paragraphs(...) no longer collapses consecutive newlines.
- [RT #98546] There is now an -align-last option for justified text to
specify how the final line should be justified. Left is still the
default.
- Code in the PDF::API2::Basic::PDF namespace was originally licensed under
the Perl Artistic License, which has been determined to not be
(L)GPL-compatible. Martin Hosken has graciously granted an MIT license
for use of his code contained in PDF::API2, so the distribution may now be
used solely under the terms of the LGPL rather than requiring both
licenses simultaneously. Many thanks to Petr Pisar for his help in
working through the licensing issues.
- Renamed $text->lead(...) to $text->leading(...). The old name is
deprecated but will continue to work. If you're modifying PDF::API2
objects by editing their hash values instead of using these accessors,
you'll need to update your code.
- Added a -compress option (on by default) to PDF::API2->new(), open(), and
open_scalar(). If disabled, most streams won't be compressed, which can
simplify debugging.
|
2020-09-07 16:44:55 by Thomas Klausner | Files touched by this commit (2) | |
Log message:
p5-PDF-API2: update to 2.038.
2.038 2020-08-31
- Use PDF::API2::XS or Image::PNG::Libpng, if either is installed, to speed
up inclusion of PNG files with an alpha channel by an order of magnitude
(written by Rob Scovell, sponsored by prayerletters.com).
2.037 2020-02-05
- Allow PDF 2.0 files to be opened.
- [RT #131147] Ignore dictionary entries with null values (reported by Klaus
Ethgen, fix by Vadim Repin).
|
2020-08-31 20:13:29 by Thomas Klausner | Files touched by this commit (3631) |
Log message:
*: bump PKGREVISION for perl-5.32.
|
2019-09-18 16:25:01 by Wen Heping | Files touched by this commit (2) |
Log message:
Update to 2.036
Upstream changes:
2.036 2019-09-17
- Eliminate another uninitialized value warning in BaseFont.pm.
2.035 2019-08-09
- The bounding box methods (mediabox, cropbox, bleedbox, trimbox, and
artbox) now return their values when called without arguments.
- The get_[media|crop|bleed|trim|art]box page methods have been deprecated
since they're now redundant, but they continue to work.
- [RT #130074] Remove unneeded (and newly-broken) calls to is_utf8 in
Annotation.pm and NamedDestination.pm (reported by Mathieu Arnold).
- Eliminate some uninitialized value warnings in BaseFont.pm.
2.034 2019-06-29
- SUPPORTED PERL VERSIONS: Starting with this release, PDF::API2 will
support major Perl versions released in the past six years, plus the major
release before that one. This should provide backward compatibility for
the life of most LTS server distributions, while eliminating the need to
troubleshoot warnings and bugs that only show up in increasingly-ancient
versions of Perl.
For this release, it means that the minimum supported Perl is 5.18, which
was first released on 2013-05-18.
- Add support for cross-reference streams using 64-bit field widths.
- When the utf8 flag is set for a PDF string, automatically encode it as
UCS-16BE instead of requiring a separate flag to be set in the PDF object.
This resolves [RT #33497] and [RT #117031] in addition to making the code
easier to maintain.
- [RT #126274] Fix alignment when using UniFont with text_center or
text_right when all characters are in the same block.
- [RT #121911] Fix adding pages to a document structure with nested Pages
elements. This included a fairly substantial rewrite of the relevant
code, so please report any new bugs related to adding pages (report and
troubleshooting by Vadim Repin).
- Renamed pdfile() to pdf_file() in PDF::API2::Annotation and
PDF::API2::Outline. The old name continues to work, but is deprecated.
|
2019-08-11 15:25:21 by Thomas Klausner | Files touched by this commit (3557) |
Log message:
Bump PKGREVISIONs for perl 5.30.0
|
2019-06-30 22:17:50 by Nia Alarie | Files touched by this commit (1816) |
Log message:
Update packages using a search.cpan.org HOMEPAGE to metacpan.org.
The former now redirects to the latter.
This covers the most simple cases where http://search.cpan.org/dist/name
can be changed to https://metacpan.org/release/name.
Reviewed by hand to hopefully make sure no unwanted changes sneak in.
|
2018-08-22 11:48:07 by Thomas Klausner | Files touched by this commit (3558) |
Log message:
Recursive bump for perl5-5.28.0
|
2017-07-09 02:41:59 by Wen Heping | Files touched by this commit (2) |
Log message:
Update to 2.033
Upstream changes:
2.033 2017-07-06
- [RT #122371] Remove a couple of improperly-placed weaken statements
(reported by Phil Perry).
- [RT #122372] Fix weakening when a page is added to the end of a multiple
page document (reported by Phil Perry).
- Fix Bank Gothic core font (reported by Phil Perry).
2.032 2017-07-02
- PDF::API2 has many circular references, and the end() method doesn't clear
them all, so memory is leaked. This release uses Scalar::Util's weaken()
function to improve garbage collection. A significant number of circular
references have been weakened, though many likely still remain.
- [RT #120756] Eliminate a warning for an ambiguous call to CORE::open
(first reported by Abdelbaki Brahmia).
- $text->text_justified() and $text->text_fill_justified() now adjust the
space between words rather than stretching individual characters in order
to get the text to fit.
- [RT #120397] Indirect references and indirect objects can have comments
embedded in their whitespace, and their object number and generation may
be split across multiple lines, which may not all be buffered (reported by
SPROUT).
- [RT #120450] Fix PDF::API2->open($filename)->stringify() (reported by
SPROUT).
- Fix an off-by-one error when calculating text width while charspace is
non-zero.
- [RT #120048] Fix PDF::API2->synfont() (broken in 2.029, fixed by Vadim
Repin) and add basic testing.
|