| 1 |
|
| 2 |
<a name="v0.38.0"></a> |
| 3 |
## [v0.38.0](https://github.com/J-F-Liu/lopdf/compare/v0.37.0...v0.38.0) (2025-08-26) |
| 4 |
|
| 5 |
### Add |
| 6 |
|
| 7 |
* Add enhanced PDF decryption support for encrypted documents with empty passwords |
| 8 |
* Add automatic decryption during document loading for better pdftk compatibility |
| 9 |
* Add raw object extraction before parsing to handle encrypted content |
| 10 |
* Add support for decrypting PDFs with compressed object streams |
| 11 |
* Add comprehensive test suite for PDF decryption functionality |
| 12 |
* Add `assets/encrypted.pdf` test file for decryption testing |
| 13 |
* Add examples demonstrating decryption capabilities (`test_decryption.rs`, `verify_decryption.rs`) |
| 14 |
|
| 15 |
### Enhance |
| 16 |
|
| 17 |
* Enhance `Reader::read()` to detect and handle encrypted PDFs automatically |
| 18 |
* Enhance document loading to attempt empty password authentication by default |
| 19 |
* Enhance object processing to decrypt objects after parsing |
| 20 |
* Enhance support for encrypted PDFs containing object streams |
| 21 |
|
| 22 |
### Fix |
| 23 |
|
| 24 |
* Fix encrypted object parsing by extracting raw bytes before decryption |
| 25 |
* Fix object stream handling in encrypted documents |
| 26 |
* Fix decryption workflow to match pdftk's approach |
| 27 |
|
| 28 |
### Implementation Details |
| 29 |
|
| 30 |
* Modified `src/reader.rs` to add `load_encrypted_document()` method |
| 31 |
* Added `extract_raw_object()` method for raw byte extraction |
| 32 |
* Added `parse_raw_object()` method for parsing extracted bytes |
| 33 |
* Store raw object bytes in `Reader::raw_objects` field for deferred decryption |
| 34 |
* Process compressed objects from object streams after decryption |
| 35 |
|
| 36 |
<a name="v0.37.0"></a> |
| 37 |
## [v0.37.0](https://github.com/J-F-Liu/lopdf/compare/v0.36.0...v0.37.0) (2025-08-08) |
| 38 |
|
| 39 |
### Add |
| 40 |
|
| 41 |
* Add complete PDF object streams write support enabling 11-61% file size reduction ([#XXX](https://github.com/J-F-Liu/lopdf/issues/XXX)) |
| 42 |
* Add `save_modern()` method for easy object streams and cross-reference streams usage |
| 43 |
* Add `SaveOptions` struct with builder pattern for configuring compression settings |
| 44 |
* Add `ObjectStreamBuilder` for creating object streams programmatically |
| 45 |
* Add cross-reference stream support for PDF 1.5+ compliance |
| 46 |
* Add `replace_partial_text()` function for partial text replacement in PDFs |
| 47 |
* Add comprehensive test suite with 50+ tests for object streams functionality |
| 48 |
* Add object streams write capability (previously read-only) |
| 49 |
* Add implementation documentation in OBJECT_STREAMS_IMPLEMENTATION.md |
| 50 |
|
| 51 |
### Fix |
| 52 |
|
| 53 |
* Fix pdfutil build error - missing `derive` feature for clap dependency |
| 54 |
* Fix async feature compilation - 25 examples/tests failing with `--all-features` |
| 55 |
* Fix 31 clippy linting errors blocking CI with `#![deny(clippy::all)]` |
| 56 |
* Fix object compression eligibility - structural objects (Catalog, Pages, Page) now properly compressed |
| 57 |
* Fix trailer-referenced objects compression - only encryption dictionary excluded from compression |
| 58 |
* Fix linearization detection for proper Catalog handling per PDF specification |
| 59 |
* Fix compilation warnings |
| 60 |
|
| 61 |
### Update |
| 62 |
|
| 63 |
* Update to Rust 2024 edition with minimum Rust 1.85 requirement |
| 64 |
|
| 65 |
### Maintain |
| 66 |
|
| 67 |
* Maintain full backward compatibility - all existing APIs unchanged |
| 68 |
|
| 69 |
|
| 70 |
<a name="v0.36.0"></a> |
| 71 |
## [v0.36.0](https://github.com/J-F-Liu/lopdf/compare/0.35.0...v0.36.0) (2025-03-15) |
| 72 |
|
| 73 |
### Add |
| 74 |
|
| 75 |
* Add support for Revision 5 ([#401](https://github.com/J-F-Liu/lopdf/issues/401)) |
| 76 |
* Add more checks to the encryption/decryption logic ([#399](https://github.com/J-F-Liu/lopdf/issues/399)) |
| 77 |
* Add sanity checks for PDF encryption, add examples for decrypting/encrypting PDF files and various bug fixes ([#397](https://github.com/J-F-Liu/lopdf/issues/397)) |
| 78 |
* Add encrypt function to crypt filters |
| 79 |
* Add support for jiff and make both chrono and time optional features |
| 80 |
|
| 81 |
### Avoid |
| 82 |
|
| 83 |
* Avoid parsing encrypted object streams early and correctly parse object streams upon decryption ([#385](https://github.com/J-F-Liu/lopdf/issues/385)) |
| 84 |
* Avoid decrypting cross-reference streams ([#381](https://github.com/J-F-Liu/lopdf/issues/381)) |
| 85 |
|
| 86 |
### Check |
| 87 |
|
| 88 |
* Check if the security handler is the standard one |
| 89 |
|
| 90 |
### Clarify |
| 91 |
|
| 92 |
* Clarify datetime parsing logic using the PDF specification |
| 93 |
|
| 94 |
### Compute |
| 95 |
|
| 96 |
* Compute the file encryption key (revision 6) |
| 97 |
|
| 98 |
### Declare |
| 99 |
|
| 100 |
* Declare and implement crypt filters |
| 101 |
|
| 102 |
### Ensure |
| 103 |
|
| 104 |
* Ensure the document is actually encrypted |
| 105 |
|
| 106 |
### Fix |
| 107 |
|
| 108 |
* Fix unused imports |
| 109 |
* Fix warning for rotate example |
| 110 |
* Fix warnings about nom_parser |
| 111 |
* Fix clippy warning about operator precedence |
| 112 |
* Fix typo in comment |
| 113 |
|
| 114 |
### Gracefully |
| 115 |
|
| 116 |
* Gracefully handle the is_aes check without throwing errors ([#376](https://github.com/J-F-Liu/lopdf/issues/376)) |
| 117 |
|
| 118 |
### Handle |
| 119 |
|
| 120 |
* Handle cases where the stream objects override the crypt filter |
| 121 |
|
| 122 |
### Implement |
| 123 |
|
| 124 |
* Implement Document::encrypt() ([#396](https://github.com/J-F-Liu/lopdf/issues/396)) |
| 125 |
* Implement password authentication (revision 6) |
| 126 |
* Implement decrypt with and without password sanitization |
| 127 |
* Implement authentication functions |
| 128 |
* Implement password sanitization from string |
| 129 |
* Implement password algorithms 2-7 |
| 130 |
* Implement encrypt_object function |
| 131 |
* Implement and use PKCS[#5](https://github.com/J-F-Liu/lopdf/issues/5) padding instead |
| 132 |
* Implement function to parse the available crypt filters |
| 133 |
* Implement 256-bit AES-CBC crypt filter |
| 134 |
* Implement TryFrom rather than TryInto |
| 135 |
|
| 136 |
### Improve |
| 137 |
|
| 138 |
* Improve the AES decryption with some sanity checks ([#383](https://github.com/J-F-Liu/lopdf/issues/383)) |
| 139 |
|
| 140 |
### Merge |
| 141 |
|
| 142 |
* Merge remaining algorithms functions into PasswordAlgorithm implementation |
| 143 |
|
| 144 |
### Missing |
| 145 |
|
| 146 |
* Missing import to test |
| 147 |
|
| 148 |
### Only |
| 149 |
|
| 150 |
* Only encode EncryptMetadata when V >= 4 ([#400](https://github.com/J-F-Liu/lopdf/issues/400)) |
| 151 |
|
| 152 |
### Provide |
| 153 |
|
| 154 |
* Provide revision-agnostic functions for the password algorithms |
| 155 |
|
| 156 |
### Randomly |
| 157 |
|
| 158 |
* Randomly generate file encryption key for V5 in encrypt example ([#403](https://github.com/J-F-Liu/lopdf/issues/403)) |
| 159 |
|
| 160 |
### Recurse |
| 161 |
|
| 162 |
* Recurse into arrays and dictionaries to fully decrypt all strings/streams ([#378](https://github.com/J-F-Liu/lopdf/issues/378)) |
| 163 |
|
| 164 |
### Release |
| 165 |
|
| 166 |
* Release 0.36 |
| 167 |
|
| 168 |
### Remove |
| 169 |
|
| 170 |
* Remove the old implementation |
| 171 |
* Remove workflow that used to enable the nom_parser feature |
| 172 |
* Remove nom_parser feature |
| 173 |
|
| 174 |
### Reorganize |
| 175 |
|
| 176 |
* Reorganize encryption code |
| 177 |
|
| 178 |
### Sanitize |
| 179 |
|
| 180 |
* Sanitize passwords (revision 6) |
| 181 |
|
| 182 |
### Try |
| 183 |
|
| 184 |
* Try decrypting with an empty password |
| 185 |
|
| 186 |
### Unpack |
| 187 |
|
| 188 |
* Unpack objects after decrypting object streams ([#382](https://github.com/J-F-Liu/lopdf/issues/382)) |
| 189 |
|
| 190 |
### Update |
| 191 |
|
| 192 |
* Update to nom 8.0 and nom_locate 5.0 ([#402](https://github.com/J-F-Liu/lopdf/issues/402)) |
| 193 |
|
| 194 |
### Update |
| 195 |
|
| 196 |
* update changelog |
| 197 |
|
| 198 |
### Use |
| 199 |
|
| 200 |
* Use a hasher instead of allocating a Vec |
| 201 |
* Use the new implementation to compute the file encryption key |
| 202 |
* Use the default stream and string crypt filter if present |
| 203 |
* Use Unix epoch if time feature is not enabled |
| 204 |
* Use get_deref for the Kids array to handle indirect references ([#379](https://github.com/J-F-Liu/lopdf/issues/379)) |
| 205 |
|
| 206 |
### Validate |
| 207 |
|
| 208 |
* Validate encryption dictionary for revision 5 ([#405](https://github.com/J-F-Liu/lopdf/issues/405)) |
| 209 |
|
| 210 |
### Validate |
| 211 |
|
| 212 |
* validate binary comment during parsing ([#392](https://github.com/J-F-Liu/lopdf/issues/392)) |
| 213 |
|
| 214 |
|
| 215 |
<a name="0.35.0"></a> |
| 216 |
## [0.35.0](https://github.com/J-F-Liu/lopdf/compare/v0.34.0...0.35.0) (2025-01-19) |
| 217 |
|
| 218 |
### Add |
| 219 |
|
| 220 |
* Add test for supported color types in PDF image embedding |
| 221 |
* Add function for text chunks extraction. ([#342](https://github.com/J-F-Liu/lopdf/issues/342)) |
| 222 |
|
| 223 |
### Added |
| 224 |
|
| 225 |
* added binary comment as attribute and for load and write. Binary Comment is gonna be important for pdf in A/2, A/3 format. ([#370](https://github.com/J-F-Liu/lopdf/issues/370)) |
| 226 |
|
| 227 |
### Allow |
| 228 |
|
| 229 |
* Allow parsing off-spec PDF files with prefixes before the header ([#362](https://github.com/J-F-Liu/lopdf/issues/362)) |
| 230 |
|
| 231 |
### Also |
| 232 |
|
| 233 |
* Also accept ASCII85 streams without EOD marker ([#354](https://github.com/J-F-Liu/lopdf/issues/354)) |
| 234 |
|
| 235 |
### Fix |
| 236 |
|
| 237 |
* Fix clippy warning |
| 238 |
* Fix incorrect image data handling in PDF content stream |
| 239 |
* Fix BitsPerComponent calculation and improper ColorSpace mapping |
| 240 |
* Fix incorrect color type detection for JPEG images |
| 241 |
* Fix mulitplication overflow in ascii85 decode ([#348](https://github.com/J-F-Liu/lopdf/issues/348)) |
| 242 |
* Fix out of memory bug ([#347](https://github.com/J-F-Liu/lopdf/issues/347)) |
| 243 |
* Fix addition overflow ([#346](https://github.com/J-F-Liu/lopdf/issues/346)) |
| 244 |
* Fix lowercase s of Procset and no space target string(J-F-Liu[#323](https://github.com/J-F-Liu/lopdf/issues/323)) ([#324](https://github.com/J-F-Liu/lopdf/issues/324)) |
| 245 |
|
| 246 |
### Ignore |
| 247 |
|
| 248 |
* Ignore space after byte index of startxref ([#371](https://github.com/J-F-Liu/lopdf/issues/371)) |
| 249 |
|
| 250 |
### Implement |
| 251 |
|
| 252 |
* Implement ToUnicode for variadic len encodings ([#328](https://github.com/J-F-Liu/lopdf/issues/328)) |
| 253 |
|
| 254 |
### Improve |
| 255 |
|
| 256 |
* Improve JPEG processing efficiency by avoiding unnecessary decode ([#345](https://github.com/J-F-Liu/lopdf/issues/345)) |
| 257 |
* Improve cmap parsing and internal error handling ([#335](https://github.com/J-F-Liu/lopdf/issues/335)) |
| 258 |
|
| 259 |
### Inline |
| 260 |
|
| 261 |
* Inline images ([#356](https://github.com/J-F-Liu/lopdf/issues/356)) |
| 262 |
|
| 263 |
### Keep |
| 264 |
|
| 265 |
* keep existing values when extending dictionary ([#322](https://github.com/J-F-Liu/lopdf/issues/322)) |
| 266 |
|
| 267 |
### Properly |
| 268 |
|
| 269 |
* Properly support document prefixes ([#365](https://github.com/J-F-Liu/lopdf/issues/365)) |
| 270 |
|
| 271 |
### Refactor |
| 272 |
|
| 273 |
* Refactor and optimize image processing logic in xobject.rs |
| 274 |
|
| 275 |
### Release |
| 276 |
|
| 277 |
* Release 0.35 |
| 278 |
|
| 279 |
### Remove |
| 280 |
|
| 281 |
* remove misleading Object::as_string ([#350](https://github.com/J-F-Liu/lopdf/issues/350)) |
| 282 |
|
| 283 |
### Remove |
| 284 |
|
| 285 |
* Remove superfluous `ref` keyword ([#361](https://github.com/J-F-Liu/lopdf/issues/361)) |
| 286 |
* Remove pom parser ([#355](https://github.com/J-F-Liu/lopdf/issues/355)) |
| 287 |
* Remove /Prev from trailer ([#333](https://github.com/J-F-Liu/lopdf/issues/333)) |
| 288 |
|
| 289 |
### Replace |
| 290 |
|
| 291 |
* Replace debug assert with Result ([#349](https://github.com/J-F-Liu/lopdf/issues/349)) |
| 292 |
* Replace unwrap with error handling ([#351](https://github.com/J-F-Liu/lopdf/issues/351)) |
| 293 |
|
| 294 |
### Rework |
| 295 |
|
| 296 |
* Rework errors ([#358](https://github.com/J-F-Liu/lopdf/issues/358)) |
| 297 |
|
| 298 |
### Specify |
| 299 |
|
| 300 |
* Specify minimum Rust version in Cargo.toml ([#320](https://github.com/J-F-Liu/lopdf/issues/320)) |
| 301 |
|
| 302 |
### Support |
| 303 |
|
| 304 |
* Support UTF-16 encoding for bookmark titles with non-ASCII characters ([#364](https://github.com/J-F-Liu/lopdf/issues/364)) |
| 305 |
* Support AES encryption and revision 4 ([#343](https://github.com/J-F-Liu/lopdf/issues/343)) |
| 306 |
|
| 307 |
### Throw |
| 308 |
|
| 309 |
* Throw error if xref stream cannot be uncompressed ([#339](https://github.com/J-F-Liu/lopdf/issues/339)) |
| 310 |
|
| 311 |
### Update |
| 312 |
|
| 313 |
* update changelog |
| 314 |
|
| 315 |
|
| 316 |
<a name="v0.34.0"></a> |
| 317 |
## [v0.34.0](https://github.com/J-F-Liu/lopdf/compare/v0.33.0...v0.34.0) (2024-08-31) |
| 318 |
|
| 319 |
### Add |
| 320 |
|
| 321 |
* Add ASCII85 decoding ([#317](https://github.com/J-F-Liu/lopdf/issues/317)) |
| 322 |
* Add text extraction based on ToUnicode cmap ([#314](https://github.com/J-F-Liu/lopdf/issues/314)) |
| 323 |
* Add error handling to object stream ([#299](https://github.com/J-F-Liu/lopdf/issues/299)) |
| 324 |
* Add PDFDocEncoding ([#296](https://github.com/J-F-Liu/lopdf/issues/296)) |
| 325 |
|
| 326 |
### Cleanup |
| 327 |
|
| 328 |
* Cleanup comments and cargo fmt ([#290](https://github.com/J-F-Liu/lopdf/issues/290)) |
| 329 |
|
| 330 |
### Detect |
| 331 |
|
| 332 |
* Detect reference cycles when going through trailers ([#308](https://github.com/J-F-Liu/lopdf/issues/308)) |
| 333 |
* Detect reference cycles when parsing streams (with nom_parser) ([#300](https://github.com/J-F-Liu/lopdf/issues/300)) |
| 334 |
* Detect reference cycles when collecting page resources ([#298](https://github.com/J-F-Liu/lopdf/issues/298)) |
| 335 |
|
| 336 |
### Fix |
| 337 |
|
| 338 |
* Fix unicode fonts extraction in extract text example. ([#315](https://github.com/J-F-Liu/lopdf/issues/315)) |
| 339 |
* Fix clippy warings |
| 340 |
|
| 341 |
### Implement |
| 342 |
|
| 343 |
* Implement encoding and decoding of text strings (PDF1.7 section 7.9.2.2) ([#297](https://github.com/J-F-Liu/lopdf/issues/297)) |
| 344 |
|
| 345 |
### Improve |
| 346 |
|
| 347 |
* Improve error handling ([#307](https://github.com/J-F-Liu/lopdf/issues/307)) |
| 348 |
|
| 349 |
### Refactor |
| 350 |
|
| 351 |
* Refactor get_or_create_resources() ([#291](https://github.com/J-F-Liu/lopdf/issues/291)) |
| 352 |
|
| 353 |
### Release |
| 354 |
|
| 355 |
* Release 0.34 |
| 356 |
|
| 357 |
### Replace |
| 358 |
|
| 359 |
* Replace unwrap with returning error ([#310](https://github.com/J-F-Liu/lopdf/issues/310)) |
| 360 |
* Replace LinkedHashMap with IndexMap ([#293](https://github.com/J-F-Liu/lopdf/issues/293)) |
| 361 |
|
| 362 |
### Update |
| 363 |
|
| 364 |
* Update dependencies ([#309](https://github.com/J-F-Liu/lopdf/issues/309)) |
| 365 |
* Update readme of pdfutil ([#295](https://github.com/J-F-Liu/lopdf/issues/295)) |
| 366 |
|
| 367 |
|
| 368 |
<a name="v0.33.0"></a> |
| 369 |
## [v0.33.0](https://github.com/J-F-Liu/lopdf/compare/v0.32.0...v0.33.0) (2024-08-31) |
| 370 |
|
| 371 |
### Accept |
| 372 |
|
| 373 |
* Accept comments in content parsing ([#261](https://github.com/J-F-Liu/lopdf/issues/261)) |
| 374 |
|
| 375 |
### Added |
| 376 |
|
| 377 |
* Added a new feature to get images info from the pdf page. ([#275](https://github.com/J-F-Liu/lopdf/issues/275)) |
| 378 |
|
| 379 |
### Async |
| 380 |
|
| 381 |
* Async Examples ([#266](https://github.com/J-F-Liu/lopdf/issues/266)) |
| 382 |
|
| 383 |
### AsyncReader |
| 384 |
|
| 385 |
* AsyncReader ([#265](https://github.com/J-F-Liu/lopdf/issues/265)) |
| 386 |
|
| 387 |
### Fix |
| 388 |
|
| 389 |
* Fix parse outline failed, the key ’D‘ might be an object id ([#274](https://github.com/J-F-Liu/lopdf/issues/274)) |
| 390 |
* Fix parse outline failed([#270](https://github.com/J-F-Liu/lopdf/issues/270)) ([#271](https://github.com/J-F-Liu/lopdf/issues/271)) |
| 391 |
|
| 392 |
### Indexmap |
| 393 |
|
| 394 |
* indexmap use in TOC for sorted TOC ([#267](https://github.com/J-F-Liu/lopdf/issues/267)) |
| 395 |
|
| 396 |
### Release |
| 397 |
|
| 398 |
* Release 0.33 |
| 399 |
|
| 400 |
### Replace |
| 401 |
|
| 402 |
* Replace md5 with md-5 ([#272](https://github.com/J-F-Liu/lopdf/issues/272)) |
| 403 |
|
| 404 |
|
| 405 |
<a name="v0.32.0"></a> |
| 406 |
## [v0.32.0](https://github.com/J-F-Liu/lopdf/compare/v0.31.0...v0.32.0) (2024-08-31) |
| 407 |
|
| 408 |
### Add |
| 409 |
|
| 410 |
* Add debug format for hexadecimal ([#240](https://github.com/J-F-Liu/lopdf/issues/240)) |
| 411 |
|
| 412 |
### Added |
| 413 |
|
| 414 |
* Added big generation value parsing ([#257](https://github.com/J-F-Liu/lopdf/issues/257)) |
| 415 |
|
| 416 |
### Added |
| 417 |
|
| 418 |
* added object parse to get_page_fonts ([#249](https://github.com/J-F-Liu/lopdf/issues/249)) |
| 419 |
* added meta info decryption ([#237](https://github.com/J-F-Liu/lopdf/issues/237)) |
| 420 |
|
| 421 |
### Fix |
| 422 |
|
| 423 |
* Fix clippy warning and format code |
| 424 |
* Fix clippy warnings |
| 425 |
* Fix typo in README.md ([#251](https://github.com/J-F-Liu/lopdf/issues/251)) |
| 426 |
|
| 427 |
### Fixed |
| 428 |
|
| 429 |
* Fixed parsing of the PDFs with incorrect xrefs to indirect objects ([#254](https://github.com/J-F-Liu/lopdf/issues/254)) |
| 430 |
|
| 431 |
### Fixed |
| 432 |
|
| 433 |
* fixed clippy issues ([#238](https://github.com/J-F-Liu/lopdf/issues/238)) |
| 434 |
|
| 435 |
### Handle |
| 436 |
|
| 437 |
* Handle references to arrays in get_page_contents() ([#245](https://github.com/J-F-Liu/lopdf/issues/245)) |
| 438 |
|
| 439 |
### Object |
| 440 |
|
| 441 |
* Object and related types implement PartialEq ([#236](https://github.com/J-F-Liu/lopdf/issues/236)) |
| 442 |
|
| 443 |
### Release |
| 444 |
|
| 445 |
* Release 0.32 |
| 446 |
|
| 447 |
|
| 448 |
<a name="v0.31.0"></a> |
| 449 |
## [v0.31.0](https://github.com/J-F-Liu/lopdf/compare/v0.30.0...v0.31.0) (2023-05-10) |
| 450 |
|
| 451 |
### Add |
| 452 |
|
| 453 |
* Add example of page rotation ([#230](https://github.com/J-F-Liu/lopdf/issues/230)) |
| 454 |
* Add decryption of documents using RC4 encryption. ([#228](https://github.com/J-F-Liu/lopdf/issues/228)) |
| 455 |
|
| 456 |
### Annotate |
| 457 |
|
| 458 |
* Annotate feature usage ([#229](https://github.com/J-F-Liu/lopdf/issues/229)) |
| 459 |
|
| 460 |
### Fix |
| 461 |
|
| 462 |
* Fix typo in README.md ([#233](https://github.com/J-F-Liu/lopdf/issues/233)) |
| 463 |
|
| 464 |
### PDF |
| 465 |
|
| 466 |
* PDF 2.0 is now a free specification |
| 467 |
|
| 468 |
### Release |
| 469 |
|
| 470 |
* Release 0.31 |
| 471 |
|
| 472 |
### Remove |
| 473 |
|
| 474 |
* Remove extraneous `Q` operation from insert_image ([#227](https://github.com/J-F-Liu/lopdf/issues/227)) |
| 475 |
|
| 476 |
|
| 477 |
<a name="v0.30.0"></a> |
| 478 |
## [v0.30.0](https://github.com/J-F-Liu/lopdf/compare/v0.29.0...v0.30.0) (2023-04-09) |
| 479 |
|
| 480 |
### Add |
| 481 |
|
| 482 |
* Add support for extracting TOC, Outlines and NamedDestinations ([#211](https://github.com/J-F-Liu/lopdf/issues/211)) |
| 483 |
* Add example extract_text ([#212](https://github.com/J-F-Liu/lopdf/issues/212)) |
| 484 |
* Add get_encrypted and is_encrypted ([#210](https://github.com/J-F-Liu/lopdf/issues/210)) |
| 485 |
* Add load_filtered method ([#198](https://github.com/J-F-Liu/lopdf/issues/198)) |
| 486 |
* Add as_string method to Object ([#196](https://github.com/J-F-Liu/lopdf/issues/196)) |
| 487 |
|
| 488 |
### Adding |
| 489 |
|
| 490 |
* Adding Comments to examples ([#220](https://github.com/J-F-Liu/lopdf/issues/220)) |
| 491 |
|
| 492 |
### Fix |
| 493 |
|
| 494 |
* Fix clippy warning |
| 495 |
* Fix cliippy warnings |
| 496 |
* Fix datetime using time crate |
| 497 |
* Fix Cargo.toml ([#213](https://github.com/J-F-Liu/lopdf/issues/213)) |
| 498 |
* Fix ci build issue ([#209](https://github.com/J-F-Liu/lopdf/issues/209)) |
| 499 |
* Fix extract_text to split text at word boundaries. |
| 500 |
* Fix embed_image feature |
| 501 |
|
| 502 |
### Make |
| 503 |
|
| 504 |
* Make some more objects public. ([#199](https://github.com/J-F-Liu/lopdf/issues/199)) |
| 505 |
|
| 506 |
### Readd |
| 507 |
|
| 508 |
* Readd accidently deleted pdf files in assets ([#204](https://github.com/J-F-Liu/lopdf/issues/204)) |
| 509 |
|
| 510 |
### Release |
| 511 |
|
| 512 |
* Release 0.30 |
| 513 |
|
| 514 |
### Remove |
| 515 |
|
| 516 |
* Remove obsolete lifetime |
| 517 |
|
| 518 |
### Replace |
| 519 |
|
| 520 |
* Replace unmaitained encoding crate with encoding_rs ([#222](https://github.com/J-F-Liu/lopdf/issues/222)) |
| 521 |
|
| 522 |
### Set |
| 523 |
|
| 524 |
* Set default to nom_parser and rayon ([#208](https://github.com/J-F-Liu/lopdf/issues/208)) |
| 525 |
|
| 526 |
### Update |
| 527 |
|
| 528 |
* Update time dependency ([#206](https://github.com/J-F-Liu/lopdf/issues/206)) |
| 529 |
* Update nom dependency |
| 530 |
* Update time dependency |
| 531 |
* Update edition and some dependencies. |
| 532 |
|
| 533 |
|
| 534 |
<a name="v0.29.0"></a> |
| 535 |
## [v0.29.0](https://github.com/J-F-Liu/lopdf/compare/v0.27.0...v0.29.0) (2023-04-09) |
| 536 |
|
| 537 |
### Add |
| 538 |
|
| 539 |
* Add function get_page_annotations and include an example ([#184](https://github.com/J-F-Liu/lopdf/issues/184)) |
| 540 |
|
| 541 |
### Added |
| 542 |
|
| 543 |
* Added documentation and improved tests ([#178](https://github.com/J-F-Liu/lopdf/issues/178)) |
| 544 |
|
| 545 |
### Allow |
| 546 |
|
| 547 |
* Allow mutable access to the document catalog ([#189](https://github.com/J-F-Liu/lopdf/issues/189)) |
| 548 |
|
| 549 |
### Extend |
| 550 |
|
| 551 |
* Extend match layout change and Full bookmark example in merge. ([#179](https://github.com/J-F-Liu/lopdf/issues/179)) |
| 552 |
|
| 553 |
### Fix |
| 554 |
|
| 555 |
* Fix nom parser |
| 556 |
* Fix clippy warnings |
| 557 |
* Fix add_barcode example |
| 558 |
* Fix Incremental.pdf |
| 559 |
* Fix documentation issues and make README testable ([#171](https://github.com/J-F-Liu/lopdf/issues/171)) |
| 560 |
* Fix pdfutil build error |
| 561 |
* Fix `extend` definition confusion bug ([#161](https://github.com/J-F-Liu/lopdf/issues/161)) |
| 562 |
|
| 563 |
### Fixed |
| 564 |
|
| 565 |
* Fixed [#175](https://github.com/J-F-Liu/lopdf/issues/175) and some clippy issues. ([#182](https://github.com/J-F-Liu/lopdf/issues/182)) |
| 566 |
|
| 567 |
### Guard |
| 568 |
|
| 569 |
* Guard example based on if the "parser" feature is enabled ([#173](https://github.com/J-F-Liu/lopdf/issues/173)) |
| 570 |
|
| 571 |
### Made |
| 572 |
|
| 573 |
* made XREF parser accept an optional space character after 'xref' ([#167](https://github.com/J-F-Liu/lopdf/issues/167)) |
| 574 |
|
| 575 |
### Make |
| 576 |
|
| 577 |
* Make add_xobject follow references ([#187](https://github.com/J-F-Liu/lopdf/issues/187)) |
| 578 |
* Make xref public ,fix line endings and Fix Xref output so Adobe will open them again. ([#181](https://github.com/J-F-Liu/lopdf/issues/181)) |
| 579 |
|
| 580 |
### Merge |
| 581 |
|
| 582 |
* Merge branch 'master' of https://github.com/J-F-Liu/lopdf |
| 583 |
|
| 584 |
### Release |
| 585 |
|
| 586 |
* Release 0.29 |
| 587 |
* Release 0.28 |
| 588 |
|
| 589 |
### Remove |
| 590 |
|
| 591 |
* Remove --no-default-features test |
| 592 |
|
| 593 |
### Remove |
| 594 |
|
| 595 |
* remove unneccessary time 0.1 dependency ([#163](https://github.com/J-F-Liu/lopdf/issues/163)) |
| 596 |
|
| 597 |
### Reorder |
| 598 |
|
| 599 |
* Reorder Pages before Renumbering Objects. ([#193](https://github.com/J-F-Liu/lopdf/issues/193)) |
| 600 |
|
| 601 |
### Support |
| 602 |
|
| 603 |
* Support Incremental Updates ([#176](https://github.com/J-F-Liu/lopdf/issues/176)) |
| 604 |
|
| 605 |
### Switch |
| 606 |
|
| 607 |
* switch to single-precision floating point ([#190](https://github.com/J-F-Liu/lopdf/issues/190)) |
| 608 |
|
| 609 |
### Update |
| 610 |
|
| 611 |
* Update itoa dependency to 1.0 ([#162](https://github.com/J-F-Liu/lopdf/issues/162)) |
| 612 |
|
| 613 |
|
| 614 |
<a name="v0.27.0"></a> |
| 615 |
## [v0.27.0](https://github.com/J-F-Liu/lopdf/compare/v0.26.0...v0.27.0) (2021-12-16) |
| 616 |
|
| 617 |
### Add |
| 618 |
|
| 619 |
* Add GitHub Actions build matrix ([#127](https://github.com/J-F-Liu/lopdf/issues/127)) |
| 620 |
* Add Change Log |
| 621 |
|
| 622 |
### Added |
| 623 |
|
| 624 |
* Added Object::as_float() to convert numerical values to float. ([#124](https://github.com/J-F-Liu/lopdf/issues/124)) |
| 625 |
* Added Object::as_bool ([#123](https://github.com/J-F-Liu/lopdf/issues/123)) |
| 626 |
|
| 627 |
### Avoid |
| 628 |
|
| 629 |
* Avoid panic when encounters negative stream length |
| 630 |
|
| 631 |
### Bookmarks |
| 632 |
|
| 633 |
* Bookmarks ([#135](https://github.com/J-F-Liu/lopdf/issues/135)) |
| 634 |
|
| 635 |
### Change |
| 636 |
|
| 637 |
* Change indent_style to space |
| 638 |
|
| 639 |
### Check |
| 640 |
|
| 641 |
* Check stream length |
| 642 |
|
| 643 |
### Do |
| 644 |
|
| 645 |
* Do not limit Real precision to two digits ([#155](https://github.com/J-F-Liu/lopdf/issues/155)) |
| 646 |
|
| 647 |
### Fix |
| 648 |
|
| 649 |
* Fix document save race in parser_aux::load_and_save and creator::create_document ([#151](https://github.com/J-F-Liu/lopdf/issues/151)) |
| 650 |
* Fix clippy warnings & add clippy build job ([#128](https://github.com/J-F-Liu/lopdf/issues/128)) |
| 651 |
|
| 652 |
### Preserve |
| 653 |
|
| 654 |
* Preserve the eol characters in literal strings ([#131](https://github.com/J-F-Liu/lopdf/issues/131)) |
| 655 |
|
| 656 |
### Reduce |
| 657 |
|
| 658 |
* Reduce allocation by reusing the iterator ([#129](https://github.com/J-F-Liu/lopdf/issues/129)) |
| 659 |
|
| 660 |
### Release |
| 661 |
|
| 662 |
* Release 0.27 |
| 663 |
* Release pdfutil 0.4 |
| 664 |
|
| 665 |
### Replace |
| 666 |
|
| 667 |
* Replace lzw with weezl ([#140](https://github.com/J-F-Liu/lopdf/issues/140)) |
| 668 |
|
| 669 |
### Return |
| 670 |
|
| 671 |
* Return early on error in `Stream::filters` ([#130](https://github.com/J-F-Liu/lopdf/issues/130)) |
| 672 |
|
| 673 |
### Unwrap |
| 674 |
|
| 675 |
* Unwrap the text ([#119](https://github.com/J-F-Liu/lopdf/issues/119)) |
| 676 |
|
| 677 |
### Update |
| 678 |
|
| 679 |
* Update nom to 6.0 ([#126](https://github.com/J-F-Liu/lopdf/issues/126)) |
| 680 |
|
| 681 |
|
| 682 |
<a name="v0.26.0"></a> |
| 683 |
## [v0.26.0](https://github.com/J-F-Liu/lopdf/compare/v0.25.0...v0.26.0) (2020-09-29) |
| 684 |
|
| 685 |
### Add |
| 686 |
|
| 687 |
* Add as_str, as_str_mut methods to Object ([#107](https://github.com/J-F-Liu/lopdf/issues/107)) |
| 688 |
|
| 689 |
### Dtoa |
| 690 |
|
| 691 |
* dtoa may write real number in exponential format which is not allowed in PDF |
| 692 |
|
| 693 |
### Genericize |
| 694 |
|
| 695 |
* Genericize Content to allow AsRef<[Operation]> ([#111](https://github.com/J-F-Liu/lopdf/issues/111)) |
| 696 |
|
| 697 |
### Make |
| 698 |
|
| 699 |
* Make pom dependency optional (but default) ([#112](https://github.com/J-F-Liu/lopdf/issues/112)) |
| 700 |
* Make rayon dependency optional ([#108](https://github.com/J-F-Liu/lopdf/issues/108)) |
| 701 |
|
| 702 |
### Merge |
| 703 |
|
| 704 |
* Merge document PDF logic with some fixes ([#117](https://github.com/J-F-Liu/lopdf/issues/117)) |
| 705 |
|
| 706 |
### Various |
| 707 |
|
| 708 |
* Various improvements, updated libraries and image features ([#118](https://github.com/J-F-Liu/lopdf/issues/118)) |
| 709 |
|
| 710 |
|
| 711 |
<a name="v0.25.0"></a> |
| 712 |
## [v0.25.0](https://github.com/J-F-Liu/lopdf/compare/v0.24.0...v0.25.0) (2020-06-25) |
| 713 |
|
| 714 |
### Add |
| 715 |
|
| 716 |
* add indexing checks ([#98](https://github.com/J-F-Liu/lopdf/issues/98)) |
| 717 |
|
| 718 |
### Add |
| 719 |
|
| 720 |
* Add a test for [#93](https://github.com/J-F-Liu/lopdf/issues/93) ([#95](https://github.com/J-F-Liu/lopdf/issues/95)) |
| 721 |
|
| 722 |
### Bugfix |
| 723 |
|
| 724 |
* Bugfix for xref_start. ([#105](https://github.com/J-F-Liu/lopdf/issues/105)) |
| 725 |
|
| 726 |
### Check |
| 727 |
|
| 728 |
* check that the buffer is big enough for startxref ([#93](https://github.com/J-F-Liu/lopdf/issues/93)) |
| 729 |
|
| 730 |
### Create |
| 731 |
|
| 732 |
* Create rust.yml ([#104](https://github.com/J-F-Liu/lopdf/issues/104)) |
| 733 |
|
| 734 |
### Extend |
| 735 |
|
| 736 |
* extend recursion limit to non-local references ([#100](https://github.com/J-F-Liu/lopdf/issues/100)) |
| 737 |
|
| 738 |
### Fix |
| 739 |
|
| 740 |
* Fix compilation error&test error ([#102](https://github.com/J-F-Liu/lopdf/issues/102)) |
| 741 |
|
| 742 |
### Keep |
| 743 |
|
| 744 |
* keep looking for the last pattern ([#94](https://github.com/J-F-Liu/lopdf/issues/94)) |
| 745 |
|
| 746 |
### Limit |
| 747 |
|
| 748 |
* Limit allowed bracket depth. ([#97](https://github.com/J-F-Liu/lopdf/issues/97)) |
| 749 |
|
| 750 |
### Limit |
| 751 |
|
| 752 |
* limit recursion to the number of objects ([#92](https://github.com/J-F-Liu/lopdf/issues/92)) |
| 753 |
|
| 754 |
### Move |
| 755 |
|
| 756 |
* Move bracket depth checking into parsers. ([#101](https://github.com/J-F-Liu/lopdf/issues/101)) |
| 757 |
|
| 758 |
### Release |
| 759 |
|
| 760 |
* Release 0.25 |
| 761 |
|
| 762 |
### Return |
| 763 |
|
| 764 |
* Return Result from as_array_mut() ([#106](https://github.com/J-F-Liu/lopdf/issues/106)) |
| 765 |
|
| 766 |
### Update |
| 767 |
|
| 768 |
* Update itoa and linked-hash-map ([#91](https://github.com/J-F-Liu/lopdf/issues/91)) |
| 769 |
|
| 770 |
|
| 771 |
<a name="v0.24.0"></a> |
| 772 |
## [v0.24.0](https://github.com/J-F-Liu/lopdf/compare/v0.23.0...v0.24.0) (2020-02-17) |
| 773 |
|
| 774 |
### Compute |
| 775 |
|
| 776 |
* Compute an accurate iterator size when the page tree is sane. |
| 777 |
|
| 778 |
### Fix |
| 779 |
|
| 780 |
* Fix datetime parser ([#89](https://github.com/J-F-Liu/lopdf/issues/89)) |
| 781 |
|
| 782 |
### More |
| 783 |
|
| 784 |
* More permissive datetime parsing ([#90](https://github.com/J-F-Liu/lopdf/issues/90)) |
| 785 |
|
| 786 |
### Release |
| 787 |
|
| 788 |
* Release 0.24 |
| 789 |
|
| 790 |
### Validate |
| 791 |
|
| 792 |
* Validate expected id in pom parser. |
| 793 |
* Validate the expected id when reading indirect objects. |
| 794 |
|
| 795 |
|
| 796 |
<a name="v0.23.0"></a> |
| 797 |
## [v0.23.0](https://github.com/J-F-Liu/lopdf/compare/v0.22.0...v0.23.0) (2019-07-14) |
| 798 |
|
| 799 |
### Adapt |
| 800 |
|
| 801 |
* Adapt pom parser. |
| 802 |
|
| 803 |
### Add |
| 804 |
|
| 805 |
* Add error descriptions. |
| 806 |
* Add a proper error type and remove some more panics. |
| 807 |
|
| 808 |
### Allow |
| 809 |
|
| 810 |
* Allow loading a document from a memory slice. |
| 811 |
|
| 812 |
### Avoid |
| 813 |
|
| 814 |
* Avoid allocating an intermediate collection for iteration. |
| 815 |
* Avoid unwraps when already returning an Option for failure. |
| 816 |
|
| 817 |
### Error |
| 818 |
|
| 819 |
* Error signaling around compression and image handling. |
| 820 |
|
| 821 |
### Escape |
| 822 |
|
| 823 |
* Escape fix ([#68](https://github.com/J-F-Liu/lopdf/issues/68)) |
| 824 |
|
| 825 |
### Export |
| 826 |
|
| 827 |
* Export dereference function as it is useful for PDF consumers. |
| 828 |
* Export filters module. |
| 829 |
|
| 830 |
### Get_font_encoding |
| 831 |
|
| 832 |
* get_font_encoding seems more at home with Dictionary. |
| 833 |
|
| 834 |
### Handle |
| 835 |
|
| 836 |
* Handle stream filter chains ([#66](https://github.com/J-F-Liu/lopdf/issues/66)) |
| 837 |
|
| 838 |
### Hex |
| 839 |
|
| 840 |
* Hex fix ([#67](https://github.com/J-F-Liu/lopdf/issues/67)) |
| 841 |
|
| 842 |
### Implement |
| 843 |
|
| 844 |
* Implement LZW decompression. |
| 845 |
|
| 846 |
### Improve |
| 847 |
|
| 848 |
* Improve hex parsing performance. |
| 849 |
|
| 850 |
### Make |
| 851 |
|
| 852 |
* Make a page iterator. |
| 853 |
* Make Reader::read consume the Reader. |
| 854 |
* Make content operations faillible. |
| 855 |
|
| 856 |
### Protect |
| 857 |
|
| 858 |
* Protect against reference loops. |
| 859 |
* Protect against a corrupted page tree. |
| 860 |
|
| 861 |
### Refactor |
| 862 |
|
| 863 |
* Refactor a bit to allow a utility function. |
| 864 |
|
| 865 |
### Release |
| 866 |
|
| 867 |
* Release 0.23.0 |
| 868 |
|
| 869 |
### Remove |
| 870 |
|
| 871 |
* Remove intermediate assignation. |
| 872 |
* Remove unsafe code around FilterType. |
| 873 |
* Remove unsafe code on get_object_mut. |
| 874 |
* Remove some 'if let' for readability. |
| 875 |
* Remove more panic paths in xref parsing. |
| 876 |
|
| 877 |
### Replace |
| 878 |
|
| 879 |
* Replace unwraps in processor.rs. |
| 880 |
|
| 881 |
### Return |
| 882 |
|
| 883 |
* Return results when appropriate. |
| 884 |
|
| 885 |
### Separate |
| 886 |
|
| 887 |
* Separate decompression into two functions. |
| 888 |
|
| 889 |
### Take |
| 890 |
|
| 891 |
* Take care of panic that I actually hit on the pom side. |
| 892 |
* Take care of creator.rs. |
| 893 |
|
| 894 |
### Unify |
| 895 |
|
| 896 |
* Unify buffer creation. |
| 897 |
|
| 898 |
### Use |
| 899 |
|
| 900 |
* Use lifetime ellision. |
| 901 |
* Use TryInto. |
| 902 |
* Use writeln where appropriate. |
| 903 |
* Use error enum in reader. |
| 904 |
* Use stable cloned. |
| 905 |
|
| 906 |
|
| 907 |
<a name="v0.22.0"></a> |
| 908 |
## [v0.22.0](https://github.com/J-F-Liu/lopdf/compare/v0.21.0...v0.22.0) (2019-05-13) |
| 909 |
|
| 910 |
### Add |
| 911 |
|
| 912 |
* Add parsing benchmark. |
| 913 |
* Add nom dependency. |
| 914 |
|
| 915 |
### Also |
| 916 |
|
| 917 |
* Also test with nom parsing feature enabled. |
| 918 |
|
| 919 |
### Array |
| 920 |
|
| 921 |
* Array and dictionary parsing. |
| 922 |
|
| 923 |
### Avoid |
| 924 |
|
| 925 |
* Avoid using format! when writing. |
| 926 |
|
| 927 |
### Be |
| 928 |
|
| 929 |
* Be explicit about trait objects. |
| 930 |
|
| 931 |
### Boolean |
| 932 |
|
| 933 |
* Boolean and null parsing. |
| 934 |
|
| 935 |
### Content |
| 936 |
|
| 937 |
* Content parsing. |
| 938 |
|
| 939 |
### Duplicate |
| 940 |
|
| 941 |
* Duplicate pom parser for incremental replacement with nom 5. |
| 942 |
|
| 943 |
### Ease |
| 944 |
|
| 945 |
* Ease off on rayon a bit. |
| 946 |
|
| 947 |
### Escape |
| 948 |
|
| 949 |
* Escape sequence parsing. |
| 950 |
|
| 951 |
### Extern |
| 952 |
|
| 953 |
* extern crate is not required anymore with 2018 edition. |
| 954 |
|
| 955 |
### Fix |
| 956 |
|
| 957 |
* Fix last ugly parser. |
| 958 |
* Fix octal parser. |
| 959 |
* Fix pdfutil build |
| 960 |
|
| 961 |
### Float |
| 962 |
|
| 963 |
* Float parsing. |
| 964 |
|
| 965 |
### Header |
| 966 |
|
| 967 |
* Header parsing. |
| 968 |
|
| 969 |
### Hex |
| 970 |
|
| 971 |
* Hex string parsing. |
| 972 |
|
| 973 |
### Indirect |
| 974 |
|
| 975 |
* Indirect object and stream parsing. |
| 976 |
|
| 977 |
### Literal |
| 978 |
|
| 979 |
* Literal string syntax. |
| 980 |
|
| 981 |
### Make |
| 982 |
|
| 983 |
* Make sure Stream.start_position is relative to the whole file. |
| 984 |
|
| 985 |
### Merge |
| 986 |
|
| 987 |
* Merge remote-tracking branch 'upstream/master' into nom5 |
| 988 |
* Merge remote-tracking branch 'upstream/master' into nom5 |
| 989 |
|
| 990 |
### More |
| 991 |
|
| 992 |
* More 2018 edition lints. |
| 993 |
* More cleanup. |
| 994 |
* More cleanup. |
| 995 |
* More simplifications. |
| 996 |
|
| 997 |
### Object |
| 998 |
|
| 999 |
* Object id and reference parsing. |
| 1000 |
|
| 1001 |
### Octal |
| 1002 |
|
| 1003 |
* Octal and hexadecimal parsing. |
| 1004 |
|
| 1005 |
### Parallel |
| 1006 |
|
| 1007 |
* Parallel object stream parsing. |
| 1008 |
|
| 1009 |
### Rayon |
| 1010 |
|
| 1011 |
* Rayon usage proof of concept. |
| 1012 |
|
| 1013 |
### Release |
| 1014 |
|
| 1015 |
* Release 0.22.0 |
| 1016 |
|
| 1017 |
### Remove |
| 1018 |
|
| 1019 |
* Remove pom dependency in tests. |
| 1020 |
|
| 1021 |
### Replace |
| 1022 |
|
| 1023 |
* Replace name parser. |
| 1024 |
|
| 1025 |
### Resolve |
| 1026 |
|
| 1027 |
* Resolve name collisions. |
| 1028 |
|
| 1029 |
### Simplify |
| 1030 |
|
| 1031 |
* Simplify lifetime annotations. |
| 1032 |
|
| 1033 |
### Slowly |
| 1034 |
|
| 1035 |
* Slowly replace the cute pom parser with nom. |
| 1036 |
|
| 1037 |
### Trailer |
| 1038 |
|
| 1039 |
* Trailer and xref start. |
| 1040 |
|
| 1041 |
### Turns |
| 1042 |
|
| 1043 |
* Turns out "contained" already exists in nom. |
| 1044 |
|
| 1045 |
### Unify |
| 1046 |
|
| 1047 |
* Unify both variants of the parsing functions. |
| 1048 |
|
| 1049 |
### Use |
| 1050 |
|
| 1051 |
* Use a BufWriter when saving to path. |
| 1052 |
* Use parse_at(&self.buffer, offset) to read indirect_object |
| 1053 |
* Use nom digit testing functions. |
| 1054 |
* Use lifetime ellision. |
| 1055 |
* Use nom sequence operators. |
| 1056 |
|
| 1057 |
### Useless |
| 1058 |
|
| 1059 |
* Useless move. |
| 1060 |
|
| 1061 |
### Xref |
| 1062 |
|
| 1063 |
* Xref stream and trailer parsing. |
| 1064 |
* Xref parsing. |
| 1065 |
|
| 1066 |
|
| 1067 |
<a name="v0.21.0"></a> |
| 1068 |
## [v0.21.0](https://github.com/J-F-Liu/lopdf/compare/v0.20.0...v0.21.0) (2019-04-26) |
| 1069 |
|
| 1070 |
### Avoid |
| 1071 |
|
| 1072 |
* Avoid allocating a String. |
| 1073 |
|
| 1074 |
### Check |
| 1075 |
|
| 1076 |
* Check offsets read from file to avoid panics |
| 1077 |
* Check and correct Size entry of trailer dictionary |
| 1078 |
|
| 1079 |
### Clean |
| 1080 |
|
| 1081 |
* Clean up bytes_to_string, string_to_bytes iterators |
| 1082 |
|
| 1083 |
### Fix |
| 1084 |
|
| 1085 |
* Fix clippy warnings |
| 1086 |
* Fix .editorconfig |
| 1087 |
|
| 1088 |
### Fixed |
| 1089 |
|
| 1090 |
* fixed finally |
| 1091 |
|
| 1092 |
### Redundant |
| 1093 |
|
| 1094 |
* Redundant imports with 2018 edition. |
| 1095 |
|
| 1096 |
### Release |
| 1097 |
|
| 1098 |
* Release 0.21.0 |
| 1099 |
|
| 1100 |
### Update |
| 1101 |
|
| 1102 |
* Update example |
| 1103 |
* Update Cargo.toml |
| 1104 |
|
| 1105 |
### Use |
| 1106 |
|
| 1107 |
* Use env_logger in pdfutil |
| 1108 |
|
| 1109 |
|
| 1110 |
<a name="v0.20.0"></a> |
| 1111 |
## [v0.20.0](https://github.com/J-F-Liu/lopdf/compare/v0.19.0...v0.20.0) (2019-03-07) |
| 1112 |
|
| 1113 |
### Release |
| 1114 |
|
| 1115 |
* Release 0.20.0 |
| 1116 |
|
| 1117 |
### Replace |
| 1118 |
|
| 1119 |
* Replace println with log macros |
| 1120 |
|
| 1121 |
### Use |
| 1122 |
|
| 1123 |
* Use Rust 2018 |
| 1124 |
* Use pom 3.0 |
| 1125 |
|
| 1126 |
|
| 1127 |
<a name="v0.19.0"></a> |
| 1128 |
## [v0.19.0](https://github.com/J-F-Liu/lopdf/compare/v0.18.0...v0.19.0) (2018-10-24) |
| 1129 |
|
| 1130 |
### Allow |
| 1131 |
|
| 1132 |
* Allow xref section has zero entries |
| 1133 |
|
| 1134 |
### Dictionary |
| 1135 |
|
| 1136 |
* Dictionary key type changed to Vec<u8> |
| 1137 |
|
| 1138 |
### Format |
| 1139 |
|
| 1140 |
* Format code with rustfmt |
| 1141 |
|
| 1142 |
### Improve |
| 1143 |
|
| 1144 |
* Improve codestyle (simplify loops, remove closures, use is_empty() etc.) |
| 1145 |
|
| 1146 |
### Move |
| 1147 |
|
| 1148 |
* Move image dependency to embed_image feature |
| 1149 |
|
| 1150 |
### Release |
| 1151 |
|
| 1152 |
* Release 0.19.0 |
| 1153 |
|
| 1154 |
### Skip |
| 1155 |
|
| 1156 |
* Skip corrupt deflate stream |
| 1157 |
|
| 1158 |
|
| 1159 |
<a name="v0.18.0"></a> |
| 1160 |
## [v0.18.0](https://github.com/J-F-Liu/lopdf/compare/v0.17.0...v0.18.0) (2018-10-05) |
| 1161 |
|
| 1162 |
### Able |
| 1163 |
|
| 1164 |
* Able to read stream when it's length is in object stream |
| 1165 |
|
| 1166 |
### Adress |
| 1167 |
|
| 1168 |
* Adress timezone formatting problem from [#34](https://github.com/J-F-Liu/lopdf/issues/34) |
| 1169 |
|
| 1170 |
### Insert |
| 1171 |
|
| 1172 |
* insert image on page |
| 1173 |
|
| 1174 |
|
| 1175 |
<a name="v0.17.0"></a> |
| 1176 |
## [v0.17.0](https://github.com/J-F-Liu/lopdf/compare/v0.16.0...v0.17.0) (2018-09-19) |
| 1177 |
|
| 1178 |
### Make |
| 1179 |
|
| 1180 |
* Make chrono crate optional |
| 1181 |
|
| 1182 |
### Release |
| 1183 |
|
| 1184 |
* Release 0.17.0 |
| 1185 |
|
| 1186 |
### Update |
| 1187 |
|
| 1188 |
* Update add_barcode example |
| 1189 |
|
| 1190 |
|
| 1191 |
<a name="v0.16.0"></a> |
| 1192 |
## [v0.16.0](https://github.com/J-F-Liu/lopdf/compare/v0.15.3...v0.16.0) (2018-09-18) |
| 1193 |
|
| 1194 |
### Add |
| 1195 |
|
| 1196 |
* Add form xobject to page |
| 1197 |
* Add extract_stream subcommand |
| 1198 |
|
| 1199 |
### Compress |
| 1200 |
|
| 1201 |
* Compress created Form xobject |
| 1202 |
|
| 1203 |
### Compress |
| 1204 |
|
| 1205 |
* compress page content after change |
| 1206 |
|
| 1207 |
### Fix |
| 1208 |
|
| 1209 |
* Fix collect_fonts_from_resources for referenced resources |
| 1210 |
* Fix add xobject to page resources as direct object |
| 1211 |
|
| 1212 |
|
| 1213 |
<a name="v0.15.3"></a> |
| 1214 |
## [v0.15.3](https://github.com/J-F-Liu/lopdf/compare/v0.15.0...v0.15.3) (2018-09-14) |
| 1215 |
|
| 1216 |
### Decompress |
| 1217 |
|
| 1218 |
* Decompress Form XObject |
| 1219 |
|
| 1220 |
### Disable |
| 1221 |
|
| 1222 |
* Disable auto format markdown |
| 1223 |
|
| 1224 |
### Fix |
| 1225 |
|
| 1226 |
* Fix bug in reading incremental updated document |
| 1227 |
* Fix build warning |
| 1228 |
* Fix string_to_bytes method |
| 1229 |
|
| 1230 |
### Hexadecimal |
| 1231 |
|
| 1232 |
* Hexadecimal strings can contain white space. |
| 1233 |
|
| 1234 |
### Remove |
| 1235 |
|
| 1236 |
* Remove println in extract_text |
| 1237 |
|
| 1238 |
### Update |
| 1239 |
|
| 1240 |
* Update example code |
| 1241 |
* Update example |
| 1242 |
|
| 1243 |
|
| 1244 |
<a name="v0.15.0"></a> |
| 1245 |
## [v0.15.0](https://github.com/J-F-Liu/lopdf/compare/v0.14.1...v0.15.0) (2018-02-04) |
| 1246 |
|
| 1247 |
### Add |
| 1248 |
|
| 1249 |
* add `get_object_mut` |
| 1250 |
* add method as_array_mut |
| 1251 |
|
| 1252 |
### Extract |
| 1253 |
|
| 1254 |
* Extract text from specified pages |
| 1255 |
|
| 1256 |
### Replace |
| 1257 |
|
| 1258 |
* Replace text of specified page |
| 1259 |
|
| 1260 |
|
| 1261 |
<a name="v0.14.1"></a> |
| 1262 |
## [v0.14.1](https://github.com/J-F-Liu/lopdf/compare/v0.13.0...v0.14.1) (2017-11-03) |
| 1263 |
|
| 1264 |
### Add |
| 1265 |
|
| 1266 |
* Add `impl From<_> for Object` for more numeric types |
| 1267 |
* Add an Object::string_literal constructor |
| 1268 |
* Add a `dictionary!` macro that creates a Dictionary |
| 1269 |
* Add `impl From<ObjectId> for Object` creating Object::Reference |
| 1270 |
|
| 1271 |
### Derive |
| 1272 |
|
| 1273 |
* Derive Clone for lopdf::Document |
| 1274 |
|
| 1275 |
### Release |
| 1276 |
|
| 1277 |
* Release 0.14.0 |
| 1278 |
|
| 1279 |
### Remove |
| 1280 |
|
| 1281 |
* Remove the Seek bound on Document::save_to |
| 1282 |
|
| 1283 |
|
| 1284 |
<a name="v0.13.0"></a> |
| 1285 |
## [v0.13.0](https://github.com/J-F-Liu/lopdf/compare/v0.11.0...v0.13.0) (2017-10-02) |
| 1286 |
|
| 1287 |
### Avoid |
| 1288 |
|
| 1289 |
* Avoid decompress flate stream which has Subtype |
| 1290 |
|
| 1291 |
### Debug |
| 1292 |
|
| 1293 |
* Debug with lldb |
| 1294 |
|
| 1295 |
### Fix |
| 1296 |
|
| 1297 |
* Fix get_object for created document |
| 1298 |
|
| 1299 |
### Ignore |
| 1300 |
|
| 1301 |
* Ignore invalid objects when reading all object in xref table |
| 1302 |
|
| 1303 |
### Impl |
| 1304 |
|
| 1305 |
* impl fmt::Debug for Object |
| 1306 |
|
| 1307 |
### Pdfutil |
| 1308 |
|
| 1309 |
* pdfutil add extract_pages command |
| 1310 |
|
| 1311 |
### Read |
| 1312 |
|
| 1313 |
* Read optional space at the end of xref subsection header line |
| 1314 |
|
| 1315 |
### Release |
| 1316 |
|
| 1317 |
* Release 0.13.0 |
| 1318 |
* Release 0.12.0 |
| 1319 |
|
| 1320 |
### Store |
| 1321 |
|
| 1322 |
* Store compressed stream objects and normal objects together |
| 1323 |
|
| 1324 |
|
| 1325 |
<a name="v0.11.0"></a> |
| 1326 |
## [v0.11.0](https://github.com/J-F-Liu/lopdf/compare/v0.10.0...v0.11.0) (2017-08-21) |
| 1327 |
|
| 1328 |
### Release |
| 1329 |
|
| 1330 |
* Release 0.11.0 |
| 1331 |
|
| 1332 |
### Use |
| 1333 |
|
| 1334 |
* Use itoa and dtoa to improve writing performance |
| 1335 |
|
| 1336 |
|
| 1337 |
<a name="v0.10.0"></a> |
| 1338 |
## [v0.10.0](https://github.com/J-F-Liu/lopdf/compare/v0.9.0...v0.10.0) (2017-07-20) |
| 1339 |
|
| 1340 |
### Added |
| 1341 |
|
| 1342 |
* Added optional allows_compression for Stream object |
| 1343 |
|
| 1344 |
### Release |
| 1345 |
|
| 1346 |
* Release 0.10.0 |
| 1347 |
|
| 1348 |
|
| 1349 |
<a name="v0.9.0"></a> |
| 1350 |
## [v0.9.0](https://github.com/J-F-Liu/lopdf/compare/v0.8.0...v0.9.0) (2017-05-24) |
| 1351 |
|
| 1352 |
### Add |
| 1353 |
|
| 1354 |
* Add pdfutil readme |
| 1355 |
|
| 1356 |
### Added |
| 1357 |
|
| 1358 |
* Added unit test for load_from() and save_to() |
| 1359 |
* Added Document::with_version + refactored save() and load() |
| 1360 |
* Added Debug trait for lopdf::Document |
| 1361 |
|
| 1362 |
### Apply |
| 1363 |
|
| 1364 |
* Apply multiple operations in one command |
| 1365 |
|
| 1366 |
### Build |
| 1367 |
|
| 1368 |
* Build with Rust stable |
| 1369 |
* Build with Rust beta |
| 1370 |
|
| 1371 |
### Fix |
| 1372 |
|
| 1373 |
* Fix delete_zero_length_streams |
| 1374 |
|
| 1375 |
### Fixed |
| 1376 |
|
| 1377 |
* Fixed unit tests |
| 1378 |
* Fixed breaking API changes |
| 1379 |
|
| 1380 |
### Release |
| 1381 |
|
| 1382 |
* Release 0.9.0 |
| 1383 |
|
| 1384 |
|
| 1385 |
<a name="v0.8.0"></a> |
| 1386 |
## [v0.8.0](https://github.com/J-F-Liu/lopdf/compare/v0.7.0...v0.8.0) (2017-03-16) |
| 1387 |
|
| 1388 |
### Change |
| 1389 |
|
| 1390 |
* Change Name(String) to Name(Vec<u8>) |
| 1391 |
|
| 1392 |
### Delete_object |
| 1393 |
|
| 1394 |
* delete_object and delete_unused_objects |
| 1395 |
|
| 1396 |
### Get_pages |
| 1397 |
|
| 1398 |
* get_pages and delete_pages |
| 1399 |
|
| 1400 |
### Handle |
| 1401 |
|
| 1402 |
* Handle zero length stream |
| 1403 |
|
| 1404 |
### Release |
| 1405 |
|
| 1406 |
* Release 0.8.0 |
| 1407 |
|
| 1408 |
### Traverse |
| 1409 |
|
| 1410 |
* Traverse objects from trailer recursively |
| 1411 |
|
| 1412 |
|
| 1413 |
<a name="v0.7.0"></a> |
| 1414 |
## [v0.7.0](https://github.com/J-F-Liu/lopdf/compare/v0.6.0...v0.7.0) (2017-03-07) |
| 1415 |
|
| 1416 |
### Add |
| 1417 |
|
| 1418 |
* Add Content::decode() function |
| 1419 |
|
| 1420 |
### Build |
| 1421 |
|
| 1422 |
* Build on Rust 1.17 |
| 1423 |
|
| 1424 |
### Create |
| 1425 |
|
| 1426 |
* Create String object for DateTime |
| 1427 |
|
| 1428 |
### Parse |
| 1429 |
|
| 1430 |
* Parse PDF datetime value |
| 1431 |
|
| 1432 |
### Read |
| 1433 |
|
| 1434 |
* Read xref stream in hybrid-reference file |
| 1435 |
|
| 1436 |
### Update |
| 1437 |
|
| 1438 |
* Update create_document example |
| 1439 |
* Update README |
| 1440 |
|
| 1441 |
|
| 1442 |
<a name="v0.6.0"></a> |
| 1443 |
## [v0.6.0](https://github.com/J-F-Liu/lopdf/compare/v0.5.0...v0.6.0) (2017-02-16) |
| 1444 |
|
| 1445 |
### Add |
| 1446 |
|
| 1447 |
* Add Stream::decompressed_content() method |
| 1448 |
|
| 1449 |
### Read |
| 1450 |
|
| 1451 |
* Read previous Xrefs of linearized or incremental updated document |
| 1452 |
|
| 1453 |
|
| 1454 |
<a name="v0.5.0"></a> |
| 1455 |
## [v0.5.0](https://github.com/J-F-Liu/lopdf/compare/v0.4.0...v0.5.0) (2017-02-10) |
| 1456 |
|
| 1457 |
### Add |
| 1458 |
|
| 1459 |
* Add size field to Xref |
| 1460 |
* Add Xref struct |
| 1461 |
|
| 1462 |
### Decode |
| 1463 |
|
| 1464 |
* Decode PNG frame after FlateDecode |
| 1465 |
|
| 1466 |
### Read |
| 1467 |
|
| 1468 |
* Read compressed objects from object stream |
| 1469 |
* Read xref stream |
| 1470 |
|
| 1471 |
### Update |
| 1472 |
|
| 1473 |
* Update README |
| 1474 |
|
| 1475 |
### Use |
| 1476 |
|
| 1477 |
* Use pom 0.9.0 |
| 1478 |
|
| 1479 |
### XrefEntry |
| 1480 |
|
| 1481 |
* XrefEntry as enum type |
| 1482 |
|
| 1483 |
|
| 1484 |
<a name="v0.4.0"></a> |
| 1485 |
## [v0.4.0](https://github.com/J-F-Liu/lopdf/compare/v0.3.0...v0.4.0) (2017-01-29) |
| 1486 |
|
| 1487 |
### Add |
| 1488 |
|
| 1489 |
* Add Operation constructor |
| 1490 |
* Add modify_text test |
| 1491 |
* Add travis-ci build status |
| 1492 |
* Add FAQ in Readme |
| 1493 |
* Add print_xref_size() for debuging |
| 1494 |
|
| 1495 |
### Decode |
| 1496 |
|
| 1497 |
* Decode content stream |
| 1498 |
|
| 1499 |
### Encode |
| 1500 |
|
| 1501 |
* Encode content operations |
| 1502 |
|
| 1503 |
### Fix |
| 1504 |
|
| 1505 |
* Fix load_document test |
| 1506 |
* Fix https://github.com/rust-lang/rust/issues/39177 |
| 1507 |
|
| 1508 |
### Optimize |
| 1509 |
|
| 1510 |
* Optimize parser code |
| 1511 |
|
| 1512 |
### Solve |
| 1513 |
|
| 1514 |
* Solve mutual reference problem between Pages and Page objects |
| 1515 |
|
| 1516 |
### Trigger |
| 1517 |
|
| 1518 |
* Trigger new release to pass build on docs.rs |
| 1519 |
|
| 1520 |
### Update |
| 1521 |
|
| 1522 |
* Update create PDF example |
| 1523 |
|
| 1524 |
|
| 1525 |
<a name="v0.3.0"></a> |
| 1526 |
## [v0.3.0](https://github.com/J-F-Liu/lopdf/compare/v0.2.0...v0.3.0) (2017-01-18) |
| 1527 |
|
| 1528 |
### Add |
| 1529 |
|
| 1530 |
* Add compress/decompress subcommands to pdfutil |
| 1531 |
|
| 1532 |
### Create |
| 1533 |
|
| 1534 |
* create PDF parser using pom instead of nom |
| 1535 |
|
| 1536 |
### Dictionary |
| 1537 |
|
| 1538 |
* Dictionary preserve key insert order |
| 1539 |
|
| 1540 |
### Update |
| 1541 |
|
| 1542 |
* Update README |
| 1543 |
* Update parser to use pom 0.6.0 |
| 1544 |
|
| 1545 |
### Use |
| 1546 |
|
| 1547 |
* Use reader to get stream length if it is a reference object |
| 1548 |
|
| 1549 |
|
| 1550 |
<a name="v0.2.0"></a> |
| 1551 |
## [v0.2.0](https://github.com/J-F-Liu/lopdf/compare/v0.1.0...v0.2.0) (2017-01-05) |
| 1552 |
|
| 1553 |
### Add |
| 1554 |
|
| 1555 |
* Add pdfutil program |
| 1556 |
|
| 1557 |
### Fix |
| 1558 |
|
| 1559 |
* Fix parsing PDF array error |
| 1560 |
|
| 1561 |
### Improve |
| 1562 |
|
| 1563 |
* Improve documentation |
| 1564 |
|
| 1565 |
|
| 1566 |
<a name="v0.1.0"></a> |
| 1567 |
## v0.1.0 (2016-12-23) |
| 1568 |
|
| 1569 |
### Editor |
| 1570 |
|
| 1571 |
* Editor config |
| 1572 |
|
| 1573 |
### Impl |
| 1574 |
|
| 1575 |
* impl Document add_object method |
| 1576 |
|
| 1577 |
### Improve |
| 1578 |
|
| 1579 |
* Improve Document::save functional type |
| 1580 |
|
| 1581 |
### Initial |
| 1582 |
|
| 1583 |
* Initial commit |
| 1584 |
|
| 1585 |
### PDF |
| 1586 |
|
| 1587 |
* PDF objects and document definition |
| 1588 |
|
| 1589 |
### Parse |
| 1590 |
|
| 1591 |
* Parse and load PDF document |
| 1592 |
|
| 1593 |
### Read |
| 1594 |
|
| 1595 |
* Read objects from xref table instead of sequentially from file stream |
| 1596 |
|
| 1597 |
### Save |
| 1598 |
|
| 1599 |
* Save PDF document to file |
| 1600 |
|
| 1601 |
### Store |
| 1602 |
|
| 1603 |
* Store max_id as a field of document |
| 1604 |
|