7
0
forked from pool/perl-PDF-API2

34 Commits

Author SHA256 Message Date
08f73e8c9e Add Gitea build results 2025-08-12 18:16:23 +02:00
ce9ad078fb Accepting request 1182910 from devel:languages:perl:autoupdate
- updated to 2.47.0 (2.047)
   see /usr/share/doc/packages/perl-PDF-API2/Changes
  2.047     2024-05-18
      - Fixed implementation of GH-77.
      - Added $pdf->standard_fonts() and $pdf->is_standard_font($name) (initial
        patch by Johan Vromans).
  2.046     2024-05-14
      - [GH-74] Fixed documentation error saying that stroke_color and fill_color
        can be chained.
      - Crash instead of freezing if a PDF trailer's Prev keys result in a loop or
        if multiple trailers use the same object ID and generation number.
      - [GH-70] Fix off-by-one error when adding a page at the beginning of a PDF.
      - [GH-77] Significantly improve performance when adding many pages to a PDF.

OBS-URL: https://build.opensuse.org/request/show/1182910
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=72
2024-06-27 18:11:45 +00:00
0cdc07e6c1 Fix disabling of __perllib_provides
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=70
2024-03-08 22:55:35 +00:00
353ba5856d Accepting request 1113736 from devel:languages:perl:autoupdate
- updated to 2.045
   see /usr/share/doc/packages/perl-PDF-API2/Changes
  2.045     2023-09-25
      - Fixed documentation error in synopsis for QR codes.
      - Fixed date validation when timezone offset minute contains a trailing
        apostrophe, which is required by the Adobe PDF specifications and
        prohibited by the ISO PDF specifications.  PDF::API2 now accepts either
        version as valid (report by Johan Vromans).
      - Fixed passing a GD object to $pdf->image() (reported by Hakon Hagland).
      - Fixed a crash when object numbers contain leading zeroes.

OBS-URL: https://build.opensuse.org/request/show/1113736
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=68
2023-09-28 10:54:51 +00:00
Stephan Kulow
66bb6c94a4 Accepting request 1037674 from devel:languages:perl:autoupdate
- updated to 2.044
   see /usr/share/doc/packages/perl-PDF-API2/Changes
  2.044     2022-11-16
      - Added support for QR codes.
      - [GH-44] The X coordinate returned by $text->position() or (deprecated)
        $text->textpos() was incorrect when read after being set twice (report by
        Johan Vromans).
      - [GH-45] Renamed transform's "relative" option to "repeat" and fixed the
        documentation describing what it does (report by Johan Vromans).
      - [GH-49] Fix page_layout storing its value as page_mode (report by Johan
        Vromans).
      - [GH-50] Fix $pdf->viewer_preferences to return the same values it accepts
        for non_full_screen_page_mode (report by Johan Vromans).
      - Minor doc clarifications and improved error messages.

OBS-URL: https://build.opensuse.org/request/show/1037674
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=66
2022-11-24 09:59:55 +00:00
Stephan Kulow
91257bdcb1 Accepting request 939152 from devel:languages:perl:autoupdate
- updated to 2.043
   see /usr/share/doc/packages/perl-PDF-API2/Changes
  2.043     2021-12-07
      - Restores backward compatibility (with a warning) when the deprecated
        $pdf->pageLabel is given an invalid -style option starting with "a" or
        "r" (report by Johan Vromans).
      - Fix incorrect default in documentation for annotation borders (report and
        patch by Johan Vromans).

OBS-URL: https://build.opensuse.org/request/show/939152
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=65
2021-12-13 10:42:08 +00:00
cf6a45f539 Accepting request 921741 from devel:languages:perl:autoupdate
- updated to 2.042
   see /usr/share/doc/packages/perl-PDF-API2/Changes
  2.042     2021-09-16
      - This release includes many changes to method names, options, and
        documentation aimed at improving approachability, but existing code should
        continue to work.  See the new Backward Compatibility section in the main
        PDF::API2 documentation for details about deprecation timelines and a
        suggested workflow for handling upgrades.  See the new Migration section
        for a consolidated list of deprecated methods/options and their
        replacements.
      - Renamed several methods in the PDF::API2 base class:
        - end -> close
        - open_scalar -> from_string
        - stringify -> to_string
        - pages -> page_count
        - importPageIntoForm -> embed_page
        - isEncrypted -> is_encrypted
        - xmpMetadata -> xml_metadata
        - outlines -> outline
      - Merged saveas into save.
      - Added individual accessors for PDF metadata (title, author, producer,
        etc.).  Replaced info and infoMetaAttributes with info_metadata for custom
        metadata.
      - Renamed the following methods in the PDF::API2::Page class:
        - gfx -> graphics
        - rotate -> rotation
      - Added $page->boundaries() and $pdf->default_page_boundaries() to replace
        the separate methods for the various page boundaries.  The supported
        arguments are slightly different; some edge cases have been removed and
        new options have been added.  See below and the PDF::API2::Page
        documentation for details.
      - Added $page->size() and $pdf->default_page_size() as a shortcut for
        setting the media box.
      - Both $page->size() and $page->boundaries() (and their $pdf default
        equivalents) now accept "WxH" page sizes in inches (e.g. 11x17 or 8.5x11).
        This does not apply to the deprecated versions of these methods.
      - Both $page->size() and $page->boundaries() (and their $pdf default
        equivalents) now accept a single number for page boundaries other than the
        media box, representing an amount in points to shrink the next larger box.
        This does not apply to the deprecated versions of these methods.
      - Replaced pageLabel with page_labels.  The option syntax is slightly
        different (pass options as a hash instead of a hashref; remove hyphens
        from option names).
      - Replaced image_jpeg, image_tiff, image_pnm, image_png, image_gif, and
        image_gd with $pdf->image.
      - Replaced the individual barcode methods with $pdf->barcode, which is
        fully documented and includes reasonable defaults based on the chosen
        barcode format.
      - Improved spacing between barcodes and labels when both bar_extend
        (formerly -lmzn) and font_size (formerly -fnsz) are set and the font size
        is larger than the bar extension.
      - Replaced corefont, ttfont, psfont, and bdfont with $pdf->font.  Unlike
        corefont, font requires the exact name of one of the standard fonts.
        Kerning is on by default (vs. off by default in the type-specific
        methods).
      - Renamed synfont to synthetic_font.  Renamed and documented the options.
        The new hscale option (formerly -slant) now takes a percentage (100 = no
        change, vs. 1 = no change for -slant) to match the hscale method in
        Content.  The new "bold" option is in thousandths of a text unit,
        vs. hundredths for "-bold", so multiply the old value by 10 when
        migrating.
      - Replaced the individual colorspace methods with $pdf->colorspace.  Added
        documentation and examples for the various colorspace types except for the
        former colorspace_hue, because I couldn't find the standard that it
        implements (if one exists).
      - Renamed several methods in PDF::API2::Content:
        - linewidth -> line_width
        - linecap -> line_cap
        - linejoin -> line_join
        - miterlimit -> miter_limit
        - flatness -> flatness_tolerance
        - endpath -> end
        - rectxy -> rectangle
        - fillstroke -> paint
        - charspace -> character_spacing
        - wordspace -> word_spacing
        - nl -> crlf
        - advancewidth -> text_width
      - In PDF::API2::Content, replaced image and formimage with object.  Added a
        $page->object() convenience method that is equivalent to
        $page->graphics->object().
      - In PDF::API2::Content, merged text_center and text_right into text.  Use
        the "align" option to set alignment to "center" or "right".
      - In PDF::API2::Content, merged paragraphs into paragraph.
      - In PDF::API2::Content, deprecated poly and added polyline.  poly was the
        only path-drawing method that took a starting position as its first two
        arguments.  These should be passed to a move call instead, with the
        remaining arguments passed to the new polyline method.
      - In PDF::API2::Content, added position, which combines the functionality of
        distance and textpos2 (which was undocumented).  Deprecated textpos, which
        attempted to return the position of the "cursor" after taking into account
        coordinate transformations.  textpos2 and the new position method return
        the text position before any coordinate transformations are applied, which
        is consistent with how the other methods in this class behave.
      - In PDF::API2::Content, deprecated bogen.  Recreate using arc, if feasible.
        If not, I'm likely to leave the code in place indefinitely as an
        undocumented method.
      - In PDF::API2::Content, deprecated cr.  Replace with either position (if
        called with arguments) or crlf (if called without arguments).
      - Tentatively deprecated $pdf->cjkfont.  If you're successfully using this
        method for CJK font support, read PDF::API2::Resource::CIDFont::CJKFont
        and contact me to discuss your use case.
      - Tentatively deprecated $pdf->unifont.  If you're successfully using this
        method for Unicode support, please contact me to discuss your use case.
      - Replaced $pdf->preferences() with separate page_mode, page_layout,
        viewer_preferences, and open_action methods, all of which are now fully
        documented.
      - Added font_path and set_font_path accessors for the font search path (the
        list of directories searched when a font name is included without its full
        path).  Renamed addFontDirs to add_to_font_path.
      - Removed C:/WinNT/Fonts from the default font search path.
      - Named Destinations are now fully documented, with updated method names and
        arguments.
      - Outlines are now fully documented, with additional methods for examining
        and modifying the outline tree.  Existing method names and arguments have
        been updated to match those used in Named Destinations.  Various bugs have
        been fixed when reading or modifying outlines in existing PDFs.
      - Updated annotation documentation.  Revised methods and arguments to match
        those used in Named Destinations and Outlines.
      - A PDF version number specified in the document catalog is now respected by
        $pdf->version().
      - Fixed space calculation between words in justified text (report and fix by
        Vladislav Glinsky).

OBS-URL: https://build.opensuse.org/request/show/921741
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=64
2021-09-27 15:57:05 +00:00
881a2d2aaf Accepting request 909777 from devel:languages:perl:autoupdate
- updated to 2.041
   see /usr/share/doc/packages/perl-PDF-API2/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).

OBS-URL: https://build.opensuse.org/request/show/909777
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=63
2021-08-03 08:46:37 +00:00
ae859da6e6 Accepting request 885397 from devel:languages:perl:autoupdate
- updated to 2.040
   see /usr/share/doc/packages/perl-PDF-API2/Changes
  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).

OBS-URL: https://build.opensuse.org/request/show/885397
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=61
2021-04-22 15:28:41 +00:00
a26e3d0608 Accepting request 876982 from devel:languages:perl:autoupdate
- updated to 2.039
   see /usr/share/doc/packages/perl-PDF-API2/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.

OBS-URL: https://build.opensuse.org/request/show/876982
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=59
2021-03-06 12:18:57 +00:00
c5556ef797 Accepting request 831012 from devel:languages:perl:autoupdate
- updated to 2.038
   see /usr/share/doc/packages/perl-PDF-API2/Changes
  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).

OBS-URL: https://build.opensuse.org/request/show/831012
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=57
2020-09-01 14:40:49 +00:00
e16fa1a89d Accepting request 770513 from devel:languages:perl:autoupdate
- updated to 2.037
   see /usr/share/doc/packages/perl-PDF-API2/Changes
  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).

OBS-URL: https://build.opensuse.org/request/show/770513
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=55
2020-02-07 07:51:18 +00:00
2be94def8a Accepting request 731679 from devel:languages:perl:autoupdate
- updated to 2.036
   see /usr/share/doc/packages/perl-PDF-API2/Changes
  2.036     2019-09-17
  
      - Eliminate another uninitialized value warning in BaseFont.pm.

OBS-URL: https://build.opensuse.org/request/show/731679
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=53
2019-09-20 10:23:25 +00:00
891df55574 Accepting request 722123 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/722123
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=51
2019-08-14 10:16:02 +00:00
Stephan Kulow
1d3e64f742 Accepting request 712557 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/712557
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=49
2019-07-02 05:36:02 +00:00
Stephan Kulow
e5ff14563c Accepting request 509616 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/509616
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=47
2017-07-12 06:10:10 +00:00
Stephan Kulow
2c0c637fdf Accepting request 507676 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/507676
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=46
2017-07-11 09:50:06 +00:00
Stephan Kulow
287f427b37 Accepting request 456803 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/456803
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=44
2017-02-13 18:39:10 +00:00
Stephan Kulow
cf45acea2c Accepting request 435064 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/435064
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=42
2016-10-20 07:50:24 +00:00
Stephan Kulow
79b1144686 Accepting request 434257 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/434257
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=40
2016-10-12 05:51:29 +00:00
Stephan Kulow
70ca7dcbdd Accepting request 401436 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/401436
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=38
2016-06-12 14:19:11 +00:00
Stephan Kulow
c071be2700 Accepting request 372693 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/372693
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=36
2016-03-15 09:19:59 +00:00
Stephan Kulow
e826f891ab Accepting request 368304 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/368304
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=35
2016-03-09 06:34:55 +00:00
3e164220f0 Accepting request 333875 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/333875
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=33
2015-09-26 19:20:12 +00:00
Stephan Kulow
5ecc0c6648 Accepting request 332496 from devel:languages:perl:autoupdate
OBS-URL: https://build.opensuse.org/request/show/332496
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=32
2015-09-21 05:04:59 +00:00
Stephan Kulow
d90a7fb598 Accepting request 296344 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/296344
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=30
2015-04-15 04:55:55 +00:00
Stephan Kulow
d886d5c169 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=28 2014-07-27 16:38:53 +00:00
Stephan Kulow
99270026e0 update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=27
2014-07-25 09:38:02 +00:00
Stephan Kulow
ff2dd3b189 update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=25
2014-03-17 13:37:18 +00:00
Christian Wittmer
d838fbe4bc Accepting request 185436 from home:computersalat:devel:perl
update to 2.020

OBS-URL: https://build.opensuse.org/request/show/185436
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=23
2013-08-01 11:54:44 +00:00
Christian Wittmer
d880db0bf6 fix License
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=21
2012-06-07 15:15:27 +00:00
Stephan Kulow
6008f0017e OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=20 2012-01-11 09:43:04 +00:00
Lars Vogdt
4505ddef1c fix buil on 10.3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=2
2008-11-30 12:25:27 +00:00
Lars Vogdt
d87b08c4c3 initial verison
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=1
2008-11-30 05:20:28 +00:00