| 1 |
Revision history for Perl extension PDF::Reuse |
| 2 |
|
| 3 |
0.44 Wed Jul 29 2026 |
| 4 |
- Embedded TrueType text is now searchable and copyable (GitHub #15, |
| 5 |
RT #123564). A /ToUnicode CMap is generated for each embedded font, |
| 6 |
covering only the glyphs actually used. Built here rather than via |
| 7 |
Text::PDF::TTFont0, whose ToUnicode support emits a malformed CMap |
| 8 |
(RT #123562, unfixed upstream). |
| 9 |
- Fix "Didn't find pages" when a source filename is reused within one |
| 10 |
session (GitHub #21, #22, RT #103758, RT #103768). %processed cached |
| 11 |
byte offsets keyed by filename and was never invalidated when the |
| 12 |
file behind that name was replaced, so the first file's offsets were |
| 13 |
applied to the second file's bytes. |
| 14 |
- CI now covers Linux, macOS and Windows again, with per-platform |
| 15 |
isolation so one failing cell no longer masks the others |
| 16 |
(GitHub #9, #10). Upstream workflow references are pinned to a SHA; |
| 17 |
see docs/ci-pin-maintenance.md. |
| 18 |
|
| 19 |
0.43 Thu Jan 23 2026 |
| 20 |
- Fix prTTFont/prEnd crash from orphaned docProxy (GitHub #24) |
| 21 |
DESTROY was releasing TTFont0 objects still owned by DocProxy, |
| 22 |
corrupting their uid and crashing write_objects(). |
| 23 |
- prInitVars now properly resets docProxy state |
| 24 |
|
| 25 |
0.42 Thu Jan 22 2026 |
| 26 |
- Add provides and no_index to META for proper PAUSE indexing |
| 27 |
- Add LICENSE, SECURITY.md, CONTRIBUTING.md |
| 28 |
- Address CPANTS Kwalitee experimental metrics |
| 29 |
|
| 30 |
0.41 Thu Jan 22 2026 |
| 31 |
- Add GitHub Issues bugtracker to distribution metadata |
| 32 |
- Add IO::String to TEST_REQUIRES |
| 33 |
|
| 34 |
0.40 Thu Jan 22 2026 |
| 35 |
Bug fixes: |
| 36 |
120459 Uses deprecated defined(%hash) - breaks Perl 5.24+ |
| 37 |
120346 Parsing of refs is too strict |
| 38 |
120401 Reads the entire contents when extracting a single page |
| 39 |
130152 sprintf with undefined objekt values should not warn |
| 40 |
171691 IO::String untie - prFile() fails after IO::String write |
| 41 |
83185 crossrefObj non-numeric argument warning from hex strings |
| 42 |
168975 prForm() should accept IO::String objects as file input |
| 43 |
131484 Document GhostScript usage for stream concatenation |
| 44 |
GitHub#8 prDocForm crash on undefined links array reference |
| 45 |
|
| 46 |
Internal improvements: |
| 47 |
- Root object finding patch (from ver_0.40 branch) |
| 48 |
- strict compatibility fixes (variable declarations) |
| 49 |
- Added regression test suite (t/regression.t) |
| 50 |
|
| 51 |
Thanks to all who contributed patches for these fixes! |
| 52 |
|
| 53 |
0.39 Tues Sept 26 2016 |
| 54 |
This release simply corrects the rev number |
| 55 |
|
| 56 |
0.38 Mon Sept 26 2016 |
| 57 |
118069: MYMETA must not be included |
| 58 |
|
| 59 |
0.37 Fri Sept 23 2016 |
| 60 |
101145 Add support for IO::String and "in memory" files |
| 61 |
107301 prStrWidth returns undef when string is '0' |
| 62 |
41287 It seems that filehandles of TTF files are not closed |
| 63 |
79703 Allow a handle to be provided instead of a file name |
| 64 |
107299 Warnings on empty strings in prStrWidth/prText |
| 65 |
117892 Could not open 'Reuse.pm' (0.36_02) |
| 66 |
93049 PDF::Reuse Bookmarks bug and fix |
| 67 |
97290 fix for uninitialized value $param{"Index"} when reading PDF version 1.5 file |
| 68 |
43232 Wrong prototype for findFont() |
| 69 |
46202 PDF-Reuse 0.35 prDoc/xrefSection problem |
| 70 |
48804 Bad PDF Spins CPU |
| 71 |
59359 qQ imbalance in Reuse.pm |
| 72 |
104874 prMbox() not dealing with 0 ux/uy |
| 73 |
|
| 74 |
Thanks to all who contributed patches for these fixes! |
| 75 |
|
| 76 |
0.36 Wed Dec 10 2014 |
| 77 |
Added binary blob handling to prJpeg |
| 78 |
Added prAltJpeg to allow for insertion of alternate low-res images for display |
| 79 |
Added support for grayscale images to prJpeg after suggestions from Ingo Lachmann |
| 80 |
Removing depricated define(@array) syntax per suggestion from Nigel Gourlay |
| 81 |
Updating copyright notices |
| 82 |
|
| 83 |
0.35 Mon Jul 3 2008 |
| 84 |
Thanks to Yunliang Yu Outlines mode is turned on, if bookmarks are added |
| 85 |
and a minor bug with bookmarks and another one with the creation of pages |
| 86 |
are corrected. |
| 87 |
|
| 88 |
0.34 June 2008 |
| 89 |
Thanks to Grant McLean prTTFont method is added to support embedding |
| 90 |
TrueType fonts and using UTF8 text with prText (only works if Font::TTF and |
| 91 |
Text::PDF are installed) |
| 92 |
|
| 93 |
0.33 Tue Nov 15 2005 |
| 94 |
Corrected a "bug" with prField. Changed the documentation a little. |
| 95 |
The address to the mailing list is given. |
| 96 |
|
| 97 |
0.32 Fri Jul 22 2005 |
| 98 |
prText has 1 more parameter, rotation, parameter 4 now only handles alignment. |
| 99 |
prDoc has new functionality. If there are "contents" available, it is added to |
| 100 |
the array of streams of the first included page. (This was developed for a specific |
| 101 |
task with support from the Electoral Enrolment Centre, Wellington, New Zealand.) |
| 102 |
prSinglePage is a new function. It is a variant of prDoc for one page. It also |
| 103 |
has a counter of pages and last page extracted from a document, so it has more or |
| 104 |
less the ability to loop through a document if necessary. |
| 105 |
A new output definition for Apache2, thanks to Matisse Enzer. |
| 106 |
|
| 107 |
0.30 Thu Jun 3 |
| 108 |
Changes to the documentation. Fonts are handled a little differently. |
| 109 |
If prFont is called in list context, a reference to all fonts known to |
| 110 |
the current program is also returned. |
| 111 |
|
| 112 |
0.29 Mon May 10 |
| 113 |
A bug with fonts corrected, minor changes to the documentation. |
| 114 |
|
| 115 |
0.28 Fri Apr 23 2004 |
| 116 |
New annotations, which are repeated on many pages, are defined only once. |
| 117 |
You can tie the request object to the output file, thanks to Matisse Enzer. |
| 118 |
Compress::Zlib is included in the code with 'use'. There was some problem with |
| 119 |
'autouse', and I couldn't solve it. Minor changes to the the code to improve |
| 120 |
performance a little. |
| 121 |
|
| 122 |
0.27 Fri Apr 16 2004 |
| 123 |
A potential bug with links removed. Repeated links are stored only once. |
| 124 |
Unnecessary line feeds removed. |
| 125 |
|
| 126 |
0.26 Thu Apr 15 2004 |
| 127 |
Bugs fixed. When an image was imported, the program could become confused |
| 128 |
about standard fonts. Importing of JavaScripts failed. Corrected. |
| 129 |
|
| 130 |
0.25 Sat Apr 10 2004 |
| 131 |
-"prLink" added, to add and merge hyper links into a document |
| 132 |
-prStrWidth added. You get string width calculated for some predefined fonts. |
| 133 |
-A new parameter to prText added, so you can center, right adjust and rotate |
| 134 |
texts. |
| 135 |
If the text is not rotated you can get from- and to- positions of text strings |
| 136 |
-New parameters to prFile to control how a document is initially displayed |
| 137 |
-MediaBox is defined at the top of the page tree also. |
| 138 |
-Special characters in values to prField are hex-encoded when they are |
| 139 |
transferred to the new document, and unescaped from within JavaScript. |
| 140 |
So special characters might be handled in a new way ! |
| 141 |
|
| 142 |
0.24 Tue Mar 9 2004 |
| 143 |
Corrected a warning about when JavaScripts can be added to a document |
| 144 |
|
| 145 |
0.23 Tue Feb 3 2004 |
| 146 |
Added warnings in the documentation about JavaScript and webpdf.api |
| 147 |
|
| 148 |
0.22 Sun Jan 11 2004 |
| 149 |
Corrected an error introduced in version 0.15. Resources were not inherited |
| 150 |
the way they should. |
| 151 |
Changes to the documentation. The examples have been moved from this |
| 152 |
distribution to PDF::Reuse::Tutorial. |
| 153 |
|
| 154 |
0.21 Fri Dec 26 2003 |
| 155 |
-prFontSize will accept sizes with decimal point. |
| 156 |
-The constant IS_MODPERL has been added. It is taken from $ENV{MOD_PERL}. |
| 157 |
If it is set, STDOUT can be tied to Apache. |
| 158 |
|
| 159 |
0.20 Sun Dec 14 2003 |
| 160 |
-You can extract pages or split documents with the help of two |
| 161 |
new parameters to prDoc. |
| 162 |
-prField can have a snippet of JavaScript code instead of a value. |
| 163 |
-Bugs removed. Internal changes. |
| 164 |
|
| 165 |
0.19 Fri Nov 21 2003 |
| 166 |
Code produced for prField is now prepared with "extra" backslashes for |
| 167 |
\n \r and \'. Improved precision in the "formula" for rotation. |
| 168 |
|
| 169 |
0.18 Tue Nov 11 2003 |
| 170 |
Several new parameters for forms and images, so they can be resized, moved |
| 171 |
and rotated. |
| 172 |
|
| 173 |
0.17 Sat Nov 1 2003 |
| 174 |
A bug removed. The module sometimes got confused when it was reconstructing |
| 175 |
forms and was switching between different files. This was an error |
| 176 |
introduced with version 0.15 |
| 177 |
|
| 178 |
0.16 Tue Oct 21 2003 |
| 179 |
Added backslashes to the 4 special characters in the comment line, which is |
| 180 |
written to every file produced by PDF::Reuse. If not escaped, |
| 181 |
they caused Red Hat (8.0) Linux to terminate the run with the error message: |
| 182 |
"Wide character in syswrite ... PDF/Reuse.pm line 268". |
| 183 |
A changed regex to find object references. Some global variables |
| 184 |
have been removed. If you use the function prCompress(1), new JavaScripts |
| 185 |
are also compressed. |
| 186 |
You can have a new parameter with prInit, so the initiation code is shown |
| 187 |
at document level. By default (now, but not before) it is not shown. |
| 188 |
|
| 189 |
|
| 190 |
0.15 Fri Oct 10 2003 |
| 191 |
First steps to adjust the module to PDF-1.5 (Acrobat 6.0). Lots of changes to |
| 192 |
the code. |
| 193 |
If you try to update a field with prField and the field can't be found, the |
| 194 |
field is just ignored. Before the change, you had a JavaScript error and a |
| 195 |
subsequent interruption. |
| 196 |
|
| 197 |
0.14 Mon Sep 15 2003 |
| 198 |
The added parameter for prInit from version 0.12 had to be withdrawn. |
| 199 |
Sometimes it caused Acrobat/Acrobat Reader to crash. |
| 200 |
|
| 201 |
0.12 Tue Sep 9 2003 |
| 202 |
Corrected a "bug". The "typeof info.moddate" can give another result than |
| 203 |
1 year ago, so an important test at initiation had to be changed. |
| 204 |
You can have a new parameter with prInit, so the initiation code is shown |
| 205 |
at document level. By default (now, but not before) it is not shown. |
| 206 |
|
| 207 |
0.11 Wed Sep 3 2003 |
| 208 |
You can have your bookmarks closed with a new parameter. |
| 209 |
Changes to the documentation. |
| 210 |
|
| 211 |
0.10 Tue Aug 26 2003 |
| 212 |
Added a function to define bookmarks. |
| 213 |
Corrected a bug with object numbers. |
| 214 |
Sometimes the module reserved an object number and didn't need it. Subsequent |
| 215 |
procedures continued with new object numbers and there was a gap .. |
| 216 |
Changes to the documentation. "Experimental" has been removed from the |
| 217 |
interactive functions. |
| 218 |
|
| 219 |
0.09 Mon Jul 21 2003 |
| 220 |
If no file name is given to the function prFile, output is written to STDOUT. |
| 221 |
|
| 222 |
0.08 Sun Jun 29 |
| 223 |
Corrected bugs which occurred when a font was going to be reused. The function |
| 224 |
prInitVars has been added. changes to the documentation. |
| 225 |
|
| 226 |
0.07 Tue Jun 17 |
| 227 |
You can add JavaScripts as strings, not only as files. Corrected bugs which |
| 228 |
occurred 1) when JavaScripts were added and 2) when the log for prAdd was |
| 229 |
produced. |
| 230 |
|
| 231 |
0.06 Mon Jun 2 |
| 232 |
Corrected a bug in prText: when you tried to print '0' it was transformed |
| 233 |
to ''. Minor changes to the barcode font. Changed documentation referring |
| 234 |
to GD::Barcode and the modules in that group |
| 235 |
|
| 236 |
0.05 Wed May 21 15:45 |
| 237 |
Tried to make the module backwards compatible with Perl 5.6.1 |
| 238 |
Changed use 5.008 to use 5.006, constants are individually defined and |
| 239 |
AutoLoader is used instead of SelfLoader. |
| 240 |
|
| 241 |
0.03 Tue Apr 29 16:50:00 2003 |
| 242 |
- Corrected an error that occurred when a form was used many times in different |
| 243 |
documents. (Translation of old => new object number) |
| 244 |
- Some preparations for using PDF::Reuse as an COM-object (ActiveX object) |
| 245 |
(In version 0.02 of PDF::Reuse::Tutorial there will be examples) |
| 246 |
|
| 247 |
0.02 Fri Apr 25 20:49:50 2003 |
| 248 |
- I had to put all PDF documents and generated modules used in the examples |
| 249 |
in a zip file, to hide them from the normal processing around the upload to CPAN. |
| 250 |
|
| 251 |
0.01 Thu Apr 3 12:21:26 2003 |
| 252 |
- original version; created by h2xs 1.22 with options |
| 253 |
-AX -n PDF::Reuse |
| 254 |
|
| 255 |
|
| 256 |
|
| 257 |
|
| 258 |
|
| 259 |
|