| 1 |
## Version 1.1.2 |
| 2 |
- `CodePointSpan`: Fixed constructor with base view plus one code point, [GHSA](https://github.com/podofo/podofo/security/advisories/GHSA-7vfg-cp83-9rxr) |
| 3 |
- `FreeTypePrivate`: Fixed potential access of thread local `FT_LibraryPtr` by a garbage collector when the creation thread already quitted |
| 4 |
- Fixed reading arrays with indirect references |
| 5 |
- `PdfParser`: Ensure the document has a valid catalog |
| 6 |
- `PdfParser`: Parse XRef sections iteratively instead of recursively, avoiding stack exhaustion on crafted files |
| 7 |
- `PdfParser`: Don't follow a `/Prev` entry `/XRefStm` on hybrid legacy trailer plus supplement stream |
| 8 |
- `PdfParser`: Fixed parsing the file on strict `%%EOF` rules |
| 9 |
- `PdfIndirectObjectList`: Perform garbage collection with a support stack instead of recursive traversal |
| 10 |
- `PdfIndirectObjectList`: Fix references to missing objects by forcing them to `0 0 R`, added `PdfGarbageCollectionFlags` |
| 11 |
- Improved lenience and error reporting in several parsing routines, added `PdfTokenizerParams` |
| 12 |
- `PdfDocument`: Be lenient if `/Info` has parsing errors |
| 13 |
- `PdfDocument`: Rewrite page/document import functions |
| 14 |
- `PdfDocument`: Fix references pointing to missing objects in copied objects during page imports |
| 15 |
- `PdfDocument`: Flatten page annotations into the xobject in `FillXObjectFromPage` |
| 16 |
- Added `PdfObjectRelocationMap` and use it in `PdfPageCollection`, `PdfXObjectForm` import methods, |
| 17 |
preventing spurious copies across separate imports |
| 18 |
- `PdfPage`: Fixed handling rotation in text extraction |
| 19 |
- `PdfPage`: Fix computed length of substring during extraction when the matched string is in a single fragment |
| 20 |
- `PdfPainter`: In rotated pages, preset a normalizing rotation that aligns the painter frame to the PDF canonical one |
| 21 |
- `PdfRLEFilter`: Fixed `RunLengthDecode` correctness bugs |
| 22 |
- `PdfFontMetricsObject`: Fixed missing retrieval of `/CharProcs` for Type3 fonts when the descriptor is available |
| 23 |
- `PdfFontManager`: Fixed missing clear of cached paths in `EmbedFonts()` and `Clear()` |
| 24 |
- `PdfField`: Fixed setting field flags |
| 25 |
- `PdfField`: Properly init parent to null if no `/Parent` is found |
| 26 |
- `PdfChoiceField`: Fix `SetSelectedIndex()` to deselect the item on negative index |
| 27 |
- `OpenSSLInternal`: Fixed leaking an `ASN1_TIME` in `cmsAddSigningTime()` |
| 28 |
- `OpenSSLInternal`: Fixed leak of a copied hash in `AddSigningCertificateV2()` |
| 29 |
- `OpenSSLInternal`: Tentative support for OpenSSL 4.0, and support for returning the `OSSL_LIB_CTX` in `Init()` with OpenSSL >= 3.0 |
| 30 |
- `basedefs`: Move sanitization of `<Windows.h>` defines to all kind of builds |
| 31 |
- Fixed libxml2 linking error on MSVC that appeared after upgrading to OpenSSL 3.5.7 |
| 32 |
- Updated vendored fmt to 12.2.0 |
| 33 |
|
| 34 |
## Version 1.1.1 |
| 35 |
- `PdfColorSpaceFilterIndexed`: Added support for fetching `/DeviceRGB` images with `/BitsPerComponent` != 8 |
| 36 |
- `PdfColorSpaceIndexed`: Fixed handling of palette out-of-bounds access, [GHSA](https://github.com/podofo/podofo/security/advisories/GHSA-f3j2-7846-h5gg) |
| 37 |
- `PdfDocument`: Make `PdfInfo` lazy-loadable |
| 38 |
- `PdfImage`: Handle color space for `/ImageMask` images |
| 39 |
- Added `PODOFO_WITH_FONTMANAGER` CMake option to control enablement of Fontconfig: now Fontconfig is a requirement also for Windows builds, unless Win32 GDI font search is enabled with `PODOFO_WITH_WIN32GDI_FONT_SEARCH` |
| 40 |
- Fixed devendoring of `tcbspan` and `utf8proc` |
| 41 |
- `charconv_compat`: Fixed compilation targeting macOS 13 on older Xcode |
| 42 |
- Increased minimum compiler/toolchain requirements |
| 43 |
|
| 44 |
## Version 1.1.0 |
| 45 |
- `OpenSSLInternal`: Fixed potential double-free in `compute_hash_to_sign()`, [GHSA](https://github.com/podofo/podofo/security/advisories/GHSA-8fq6-rqpv-xq72) |
| 46 |
- PoDoFo is now licensed under the LGPLv2+ or MPL-2.0 license terms. Refer to the [licensing](https://github.com/podofo/podofo#licensing) section in the README for more details |
| 47 |
- Added support for ECDSA signing |
| 48 |
- Added resumable signing context feature with functions `PdfSigningContext::DumpInPlace()` and `PdfSigningContext::Restore()` |
| 49 |
- Added `PdfXMPPAcket::PruneAndValidate(pdfaLevel)` for XMP validation |
| 50 |
- PdfParser: Try to rebuild the index if cross reference sections parsing fails |
| 51 |
- Added initial support for several raw images with /BitsPerComponent != 8 |
| 52 |
- Added support for updating/signing files with data offset before `%PDF-` magic |
| 53 |
- Added support for updating/signing files with broken XRef sections |
| 54 |
- Added support for devendoring 3rd party dependencies |
| 55 |
- AFDKO: Integration made optional (still enabled by default) |
| 56 |
- Added support for PEM encoded X509 certificate loading |
| 57 |
- Fixed AESV3 permission encryption |
| 58 |
- Improved `PdfPainter` exception-safety for text drawing and XObject operations |
| 59 |
- Improved `FillXObjectFromPage` to copy `/Group` dictionary, preserving transparency |
| 60 |
- Improved `PdfFont` subsetting to include `/ToUnicode` maps |
| 61 |
- Improved `PdfSignature` with `SetCreatingApplication()` and `SetCreationApplication()` |
| 62 |
- Fixed `std::terminate` on malformed XRef stream during document load |
| 63 |
- Fixed `PdfXObjectForm` incorrect `BBox` and `Matrix` for rotated source pages |
| 64 |
- Fixed painting to the same page more than twice |
| 65 |
- Fixed several memory leaks in CMS signing and AFDKO wrapper |
| 66 |
- Fixed retrieval of document keyword list |
| 67 |
- Fixed retrieval of font metrics ascent/descent in FreeType |
| 68 |
- Fixed various infinite loops and UB in CMap parser and `PdfCharCodeMap` |
| 69 |
- Fixed handling of `/Type1` and `/TrueType` standard 14 like fonts without `/FontDescriptor` |
| 70 |
- Added support for devendoring 3rd party libraries: `date`, `fast_float`, `fmt`, `utf8cpp`, `utf8proc`, `span` |
| 71 |
- Fixed and updated GitHub Actions workflows and 3rd party dependencies |
| 72 |
|
| 73 |
## Version 1.0.4 |
| 74 |
- Fixed [#314](https://github.com/podofo/podofo/issues/314), [#317](https://github.com/podofo/podofo/issues/317), |
| 75 |
[#318](https://github.com/podofo/podofo/issues/318), [#335](https://github.com/podofo/podofo/issues/335), |
| 76 |
[#336](https://github.com/podofo/podofo/issues/336), [#337](https://github.com/podofo/podofo/issues/337) |
| 77 |
- `OpenSSLInternal`: Fixed potential double-free in `compute_hash_to_sign()`, [GHSA](https://github.com/podofo/podofo/security/advisories/GHSA-8fq6-rqpv-xq72) |
| 78 |
- CMS signing: Fixed minor/potential memory leaks |
| 79 |
- `FillXObjectFromPage`: Copy `/Group` dictionary to preserve transparency compositing (#337) |
| 80 |
- `PdfPainter`: Fix exception-safety for text drawing and XObject operations (#336) |
| 81 |
- `PdfXObjectForm`: Fix incorrect `BBox` and `Matrix` for rotated source pages in `FillFromPage` (#335) |
| 82 |
- `PdfContents`: Fixed painting to the same page more than twice (#317) |
| 83 |
- `PdfFontMetricsObject`: Handle scalars in the widths array that are cross references |
| 84 |
- `PdfTokenizer`: Fixed infinite loop for "Unknown" keyword |
| 85 |
- `PdfDate`: Fixed OOB read in date parsing |
| 86 |
- Fix CFF font subsetting leak |
| 87 |
- `PdfEncodingMapSimple`: Fix skipping `beginbfrange` unmapped codes in `AppendToUnicodeEntries()` |
| 88 |
- `PdfCMapEncoding`: Handle `beginbfrange` declared size bigger than actual array |
| 89 |
- `PdfFlateFilter`: Detect error condition treated as warning during inflate |
| 90 |
- `basedefs`: Aggressively remove offending `<Windows.h>` macros and fix `<zlib.h>` conflict (#314) |
| 91 |
- `getCodeFromVariant`: Avoid invalid arithmetical shifts |
| 92 |
- CMap parser: Fixed infinite loop on negative character codes |
| 93 |
- Document keywords: Fixed retrieving doc keyword list (#318) |
| 94 |
- `PdfParser`: Fix `std::terminate` on malformed XRef stream during document load |
| 95 |
- `PdfFont`: Fixed `GetCharGIDInfos()` when font program subsetting is not enabled |
| 96 |
- `PdfFontMetricsFreetype`: Fixed retrieval of ascent/descent |
| 97 |
- `PdfCharCodeMap`: Fix UB in `PushRange` when duplicate range is at begin |
| 98 |
- `PdfDestination`: Removed spurious check for `PdfMemDocument` in `TryCreateFromObject` |
| 99 |
- `PdfAnnotationActionBase`: Fixed segfault in `getAction()` |
| 100 |
- `InputStream`: Try to ignore `/FlateDecode` errors |
| 101 |
- AFDKO: Integration made optional (still enabled by default) |
| 102 |
- Build: Fix link issues when client links against PoDoFo and pdfium |
| 103 |
|
| 104 |
## Version 1.0.3 |
| 105 |
- Fixed [#278](https://github.com/podofo/podofo/issues/278), [#288](https://github.com/podofo/podofo/issues/288), [#292](https://github.com/podofo/podofo/issues/292), [#290](https://github.com/podofo/podofo/issues/290), [#295](https://github.com/podofo/podofo/issues/295) |
| 106 |
- PdfParser: Fix the /Prev offsets by adding the %PDF- magic offset |
| 107 |
- PdfSignature: Fixed TryGetPreviousRevision() |
| 108 |
- PdfParser: Handled all [edge cases](https://www.mail-archive.com/[email protected]/msg04801.html) pdfs reported in the ML |
| 109 |
|
| 110 |
## Version 1.0.2 |
| 111 |
- Fixed [#275](https://github.com/podofo/podofo/issues/275), [#276](https://github.com/podofo/podofo/issues/276) |
| 112 |
- `PdfTokenizer`: Fixed free-after-use after failing to parse content while reading literal tokens |
| 113 |
- `PdfFont`: Improved heuristic for word spacing |
| 114 |
- `PdfDifferenceEncoding`: Fixed handling of ligatures in AGL character names |
| 115 |
- `PdfXMPPAcket`: Make `GetDescription()` const correct |
| 116 |
- `PdfMemDocument`: Fixed upgrade to PDF2.0 in a incremental update |
| 117 |
|
| 118 |
## Version 1.0.1 |
| 119 |
- Fixed [#265](https://github.com/podofo/podofo/issues/265), [#264](https://github.com/podofo/podofo/issues/264) |
| 120 |
- Fixed several issues related to use of `nullable<std::unique_ptr<T>>` |
| 121 |
- XMP: Fixed removing extension from extension bag |
| 122 |
- XMP: Fix double inserting pdfuaid schema |
| 123 |
- Text extraction fixes: improved word spacing heuristic, space trimming in ligatures, text in XObject form with non identity matrix |
| 124 |
- Fixed pkg-config for shared built library |
| 125 |
|
| 126 |
## Version 1.0.0 |
| 127 |
|
| 128 |
- Added support for Type1, CFF and OpenType CFF font subsetting |
| 129 |
- Added support for Type3 font subsetting (no encoding subsetting, yet) |
| 130 |
- Implemented full "Adobe Glyph List" specification (https://github.com/adobe-type-tools/agl-specification) for text extraction and glyph selection |
| 131 |
- Implemented full Type1, TrueType font glyph selection |
| 132 |
- Many fixes in TrueType legacy subsetting |
| 133 |
- Added support for PDF/UA preserving when adding annotations/form fields |
| 134 |
- Improved PDF/A preserving (eg. when PDF/UA level is set as well in the XMP metadata) |
| 135 |
- Added support for automatically rotating imported images drawn on a `PdfPainter` |
| 136 |
when a orientation is detected in the source image codec metadata. Currently supported |
| 137 |
on Tiff images only (Jpeg exif metadata support pending) |
| 138 |
- Added high-level signing API, see `PdfSignerCMS` and [`TestSignature1`](https://github.com/podofo/podofo/blob/edbcb16a5b18cb20f1d0da1724639cee13608436/test/unit/SignatureTest.cpp#L37) test case |
| 139 |
- Added support for signing encrypted documents |
| 140 |
- Added support for preserving encryption among savings |
| 141 |
- Removed Libidn dependency, default to AESV3R6 encryption |
| 142 |
- Added support for predefined CMap(s) for improved CJK text extraction |
| 143 |
- Added much better CMake [integration](https://github.com/podofo/podofo?tab=readme-ov-file#consume-podofo-from-package-managers-with-cmake) |
| 144 |
- Added raw rectangle corners retrieval in `PdfAnnotation`, `PdfPage` |
| 145 |
- `PdfDocument`: Added `GetFieldsIterator()` |
| 146 |
- `PdfPage`: Added `GetFieldsIterator()` |
| 147 |
- `PdfSignature`: Added `TryGetPreviousRevision()` |
| 148 |
- `PdfCanvas`: Added `CopyContentsTo()` |
| 149 |
- `FileStreamDevice` now uses again C stdio for better performance |
| 150 |
- `PdfName`: |
| 151 |
* Optimized for struct size and construction from string const literal |
| 152 |
* Added `PdfName operator""_nm(const char*, size_t)` |
| 153 |
- `PdfString`: |
| 154 |
* Optimized for struct size |
| 155 |
* Added `std::string&&` constructor |
| 156 |
- `PdfVariant`: Optimized for accessing `PdfString`, `PdfName` and `PdfReference` |
| 157 |
- Reviewed `PdfFileSpec`, `PdfAction`, `PdfDestination` API and their usage in |
| 158 |
`PdfOutlineItem`, `PdfOutlines`, `PdfAnnotationActionBase`, `PdfAnnotationLink`, `PdfAnnotationFileAttachment` |
| 159 |
- Reviewed `PdfExtension` API |
| 160 |
- Reviewed `PdfNameTree`, renamed to `PdfNameTrees` and added `PdfNameTree` to pick specific trees with typed element |
| 161 |
- Reviewed `PdfExtGState` |
| 162 |
- Reviewed `PdfTilingPattern`, `PdfShadingPattern`, `PdfFunction`: the API now exposes the full capabilities of the PDF specification |
| 163 |
- `PdfEncrypt` is now stateless: added `PdfEncryptContext` as a |
| 164 |
separate state context and used as argument in `PdfEncrypt` methods |
| 165 |
- Set `PdfSignature` to have correct `/ByteRange` and `/Contents` after signing with `PoDoFo::SignDocument` |
| 166 |
- Added `PdfNames` and moved all known names there from `PdfName` |
| 167 |
- `PdfPageCollection`: Methods creating pages now takes `PdfPageSize` or default inferred size from doc |
| 168 |
- Fixed `PdfStreamedDocument`, see #88 |
| 169 |
- Tons of API improvements (see [API-MIGRATION.md](https://github.com/podofo/podofo/blob/master/API-MIGRATION.md)) |
| 170 |
- Tons of other bug fixes |
| 171 |
|
| 172 |
## Version 0.10.6 |
| 173 |
- Fix [#260](https://github.com/podofo/podofo/issues/260), [#278](https://github.com/podofo/podofo/issues/278), |
| 174 |
[#290](https://github.com/podofo/podofo/issues/290), [#295](https://github.com/podofo/podofo/issues/295), |
| 175 |
[#314](https://github.com/podofo/podofo/issues/314), [#317](https://github.com/podofo/podofo/issues/317), |
| 176 |
[#318](https://github.com/podofo/podofo/issues/318) |
| 177 |
- `PdfFontMetricsObject`: Handle scalars in the widths array that are cross references |
| 178 |
- `PdfEncodingMapSimple`: Fix skipping `beginbfrange` unmapped codes in `AppendToUnicodeEntries()` |
| 179 |
- `PdfCMapEncoding`: Handle `beginbfrange` declared size bigger than actual array |
| 180 |
- `PdfContents`: Fixed painting to the same page more than twice (#317) |
| 181 |
- `PdfTokenizer`: Fixed infinite loop for "Unknown" keyword |
| 182 |
- `PdfDate`: Fixed OOB read in date parsing |
| 183 |
- `PdfXRefStreamParserObject`: Permit `/W` [1 8 2] |
| 184 |
- `PdfMemDocument`: Fixed upgrade to PDF 2.0 in incremental updates |
| 185 |
- `PdfIndirectObjectList`: Fixed incorrect collecting of `/Length` objects in compressed object streams |
| 186 |
- `PdfPage`: Concatenate form XObject matrix to CTM during text extraction |
| 187 |
- `PdfDictionary`: Small optimization in `findKey()` |
| 188 |
- `PdfFlateFilter`: Detect error condition treated as warning during inflate |
| 189 |
- CMap parser: Fixed infinite loop on negative character codes |
| 190 |
- `getCodeFromVariant`: Avoid invalid arithmetical shifts |
| 191 |
- Text operators: Fixed order of operations for `'` and `"` operators (#278) |
| 192 |
- `charconv_compat`: Fixed support for older MacOS and newer Xcode (#290, #295, libc++ 20+) |
| 193 |
- `basedefs`: Aggressively remove offending `<Windows.h>` macros and fix `<zlib.h>` conflict (#314) |
| 194 |
- Document keywords: Fixed retrieving doc keyword list (#318) |
| 195 |
- Increased minimum GCC version requirement (#260) |
| 196 |
- Various compilation and warning fixes |
| 197 |
|
| 198 |
## Version 0.10.5 |
| 199 |
- Fix [#191](https://github.com/podofo/podofo/issues/191), [#197](https://github.com/podofo/podofo/issues/197), |
| 200 |
[#201](https://github.com/podofo/podofo/issues/201), [#212](https://github.com/podofo/podofo/issues/212), |
| 201 |
[#233](https://github.com/podofo/podofo/issues/233), [#241](https://github.com/podofo/podofo/issues/241), |
| 202 |
[#251](https://github.com/podofo/podofo/issues/251), [#252](https://github.com/podofo/podofo/issues/252), |
| 203 |
[#253](https://github.com/podofo/podofo/issues/253) |
| 204 |
- `PdfParser`: Fixed stack overflow parsing documents with many XRef stream updates |
| 205 |
- `PdfFont`: Fixed `GetBoundingBox()` retrieval |
| 206 |
- `PdfFontMetricsObject`: Fixed reading `/FontBBox` |
| 207 |
- `PdfEncodingFactory`: Fixed parsing of limits with `/FirstChar` equals to `/LastChar` |
| 208 |
- `PdfFontMetricsStandard14`: Fixed parsing /Widths |
| 209 |
- `PdfMetadata`: Fixed missing init ensure for SetAuthor() |
| 210 |
- `PdfTokenizer`: Fixed character escaping when reading strings |
| 211 |
- `PdfPageCollection`: Fix memory leak in `RemovePageAt` |
| 212 |
- Compilation and linking fixes in various conditions |
| 213 |
- `PdfFontManager`: Fixed GetOrCreateFontFromBuffer stealing memory |
| 214 |
- `PdfPageCollection`: Disable copy/assignment |
| 215 |
- `PdfPage_TextExtraction`: Fix `decodeString` with no font |
| 216 |
- Fix eating of non-space chars in `SplitTextAsLines` |
| 217 |
- Fix FreeType segfault race condition |
| 218 |
- `PdfCheckBox`: Fixed `IsChecked()` |
| 219 |
- `PdfParser`: Unconditionally try to read XRef stream in all PDFs that don't have a cross reference section |
| 220 |
|
| 221 |
## Version 0.10.4 |
| 222 |
- Fixes [#161](https://github.com/podofo/podofo/issues/161), [#162](https://github.com/podofo/podofo/issues/162), |
| 223 |
[#167](https://github.com/podofo/podofo/issues/167), [#183](https://github.com/podofo/podofo/issues/183), |
| 224 |
merges [#157](https://github.com/podofo/podofo/issues/) |
| 225 |
- `StandardStreamDevice`: Fixed `seek()` in case of `iostream`/`fstream` |
| 226 |
- `PdfWriter`: Fixed computing the doc identifier with a wrong buffer |
| 227 |
- `PdfPainter`: Fix `SetCurrentMatrix()` to really update CTM |
| 228 |
- Fixed compilation in mingw < 12 |
| 229 |
- `PdfCIDToGIDMap`: Fixed map reading |
| 230 |
- `PdfPainter`: Fixed offset on multiline text if text is not left aligned |
| 231 |
|
| 232 |
## Version 0.10.3 |
| 233 |
- Fixed big performance regression introduced in 0.10, see [#108](https://github.com/podofo/podofo/issues/108) |
| 234 |
- Fixed data loss with encrypted documents, see [#99](https://github.com/podofo/podofo/issues/99) |
| 235 |
- Fixed compilation with VS2022 >= 17.8 |
| 236 |
- Fixed compilation using libxml >= 2.12.0 |
| 237 |
|
| 238 |
## Version 0.10.2 |
| 239 |
- Security related bugfixes [#76](https://github.com/podofo/podofo/issues/76), |
| 240 |
[#89](https://github.com/podofo/podofo/issues/89), |
| 241 |
[#96](https://github.com/podofo/podofo/issues/96) |
| 242 |
- Some compilation and test fixes |
| 243 |
|
| 244 |
## Version 0.10.1 |
| 245 |
- Security bugfixes, [#66](https://github.com/podofo/podofo/issues/66), [#67](https://github.com/podofo/podofo/issues/67), |
| 246 |
[#69](https://github.com/podofo/podofo/issues/69), [#70](https://github.com/podofo/podofo/issues/70), |
| 247 |
[#71](https://github.com/podofo/podofo/issues/71), [#72](https://github.com/podofo/podofo/issues/72) |
| 248 |
- Rewritten `PdfPageCollection` for performance |
| 249 |
- `PdfCMapEncoding`: Fix parsing some invalid CMap(s) supported by Acrobat |
| 250 |
- `PdfXRefStreamParserObject`: Fixed handling of invalid XRef stream entries |
| 251 |
- Support compilation of the library header (not the library itself) with C++20 |
| 252 |
|
| 253 |
## Version 0.10.0 |
| 254 |
- `PdfPage`/`PdfAnnotationCollection`/`PdfAnnotation`: Now functions with |
| 255 |
rect input assume it to be using the canonical coordinate system |
| 256 |
with no rotation |
| 257 |
- `PdfImage`: Added support for CMYK jpeg |
| 258 |
- `PdfParser`: Cleaned `FindToken2` -> `FindTokenBackward` |
| 259 |
- Renamed base source folder -> main |
| 260 |
- `PdfPainter`: Revamped API, added full state inspection with current point, |
| 261 |
added added `PdfPainterTextContext` to handle text object operations |
| 262 |
Use it with `PdfPainter::Text` instance member. |
| 263 |
Added `PdfContentStreamOperators` low level interface for PdfPainter |
| 264 |
- `PdfFontMetrics`: Added `FilePath`/`FaceIndex` for debugging, when available |
| 265 |
- `PdfFont`: Renamed `GetStringLength()` overloads with |
| 266 |
`PdfString` to `GetEncodedStringLength()` |
| 267 |
- `PdfFontManager`: Renamed `GetFont()` -> `SearchFont()` |
| 268 |
Re-Added better `GetOrCreateFont()` from file/buffer |
| 269 |
- `PdfEncrypt`: Cleaned factory methods |
| 270 |
- Added `PdfArray::FindAtAs()`, `PdfArray::FindAtAsSafe()`, `PdfArray::TryFindAtAs()`, |
| 271 |
`PdfArray::GetAtAs()`, `PdfArray::GetAtAsSafe()`, `PdfArray::TryGetAtAs()` |
| 272 |
- Added `PdfDictionary::FindKeyAsSafe()` and `PdfDictionary::TryFindKeyAs()` |
| 273 |
- `PdfDictionary::AddKeyIndirect`/`PdfArray::AddKeyIndirect` accepts a reference |
| 274 |
- `PdfAnnotation`/`PdfField` API review |
| 275 |
- `PdfDate`: Introduced `PdfDate::LocalNow()` and `PdfDate::UtcNow()` |
| 276 |
and default constructor is epoch time instead |
| 277 |
- Renamed `PdfDocument::GetNameTree()` -> `GetNames()` |
| 278 |
- `PdfObject`: Flate compress on write objects that have no filters |
| 279 |
- `PdfMemDocument` does collect garbage by default when saving |
| 280 |
- `PdfField`/`PdfAnntation`: Fully reworked the hierarchy |
| 281 |
and added proper fields ownership |
| 282 |
- Added `PdfField::GetParent()`, `PdfField::GetChildren()` |
| 283 |
- `PdfImage`: Cleaned/reviewed/fixed `SetData()`/`SetDataRaw()` |
| 284 |
- Renamed `PdfPageTree` -> `PdfPageCollection` |
| 285 |
- Added XMP metadata reading/saving. Added `PdfMetadata` class |
| 286 |
- Added text extraction API |
| 287 |
- Review I/O API: Merged `InputDevice`/`OutputDevice` into `StreamDevice`. |
| 288 |
New hierarchy deriving `StreamDevice` |
| 289 |
- Reviewed `PdfObjectStream` API: added streaming operations, |
| 290 |
`GetInputStream()`, `GetOutputStream()`. Renamed |
| 291 |
`GetFilteredCopy()` -> `GetUnwrappedCopy()`/`UnwrapTo()`. |
| 292 |
They only unwrap non media filters (see `PdfImage::DecodeTo` |
| 293 |
for media ones). Added proper copy and move assignment operators |
| 294 |
- `PdfImage`: Added `DecodeTo(pixelFormat)` |
| 295 |
|
| 296 |
## Version 0.9.22 (pdfmm) |
| 297 |
- Fixed serialization of strings with non ASCII `PdfDocEncoding` |
| 298 |
characters |
| 299 |
- Removed `PdfLocaleImbue` |
| 300 |
- `PdfEncrypt`: Removed `PdfReference` state. Added `PdfStatefulEncrypt` |
| 301 |
- Removed use of `std::ostringstream`. Added efficient `outstringstream` |
| 302 |
- Added `PdfMath` functionalities (matrix transformations and so on) |
| 303 |
|
| 304 |
## Version 0.9.21 (pdfmm) |
| 305 |
- Fixed serialization of UTF-16BE strings |
| 306 |
- More lenient `PdfDate` parsing |
| 307 |
|
| 308 |
## Version 0.9.20 (pdfmm) |
| 309 |
|
| 310 |
- The project is now a C++17 library |
| 311 |
- Added move semantics for `PdfVariant`, `PdfObject`, `PdfArray`, `PdfDictionary` |
| 312 |
- Improved XRefStream support, added support in incremental saves |
| 313 |
- Many fixes in save incremental object/generation number incrementing |
| 314 |
- `PdfString` backed with UTF-8 storage |
| 315 |
- `PdfName` backed with UTF-8 storage |
| 316 |
- Brand new P`dfEncoding` class with support for both `/Encoding` and `/ToUnicode`, |
| 317 |
more complete Unicode support |
| 318 |
- Added a `PdfDynamicEncoding` class that creates a custom CID encoding |
| 319 |
based on actual used glyphs used |
| 320 |
- Automatic creation of CIDMap and `/ToUnicode` |
| 321 |
- Added `PdfSigner` class and `SignDocument()` |
| 322 |
- Added `PdfFontType1Encoding`, which support Type1 implicit encoding |
| 323 |
- Added support for PDF 2.0 UTF-8 strings (untested) |
| 324 |
- Added indirect iteration for `PdfArray`/`PdfDictionary` (see `GetIndirectIterator` methods) |
| 325 |
- Added `PdfDocument::GetPdfALevel()` |
| 326 |
- Added PDFA preserving writing |
| 327 |
- Refactored/Reviewed `PdfInputDevice`: versions that take buffer |
| 328 |
do not copy it (use `istringviewstream`) |
| 329 |
- Added font replacement facility `PdfFont::TryCreateFontSubstitute()` |
| 330 |
- Added standard14 fonts embedding, with font programs from PDFium |
| 331 |
- Reviewed `PdfXObject` hierarchy, added `PdfXObjectForm`, `PdfXObjectPostScript` |
| 332 |
- Added `PdfTextState` and use it to compute string widths in `PdfFont` |
| 333 |
- Improved `PdfDocEncoding` to expose conversion utf8 conversion facilities |
| 334 |
- `PdfParser`: Support also files with whitespace offset before magic start |
| 335 |
- `PdfObject` auto ownership |
| 336 |
- `PdfContents`: create on demand /Contents. First create a single stream, after array |
| 337 |
- Improved `IsDirty` handling: less dirty bit sets |
| 338 |
- Added `PdfPostScriptTokenizer` that as better general support for PostScript |
| 339 |
- `PdfDictionary`: Reviewed/convert `GetKey` -> `FindKey` |
| 340 |
- `PdfDictionary`: Reviewed `GetKeyAs` methods |
| 341 |
- Fixed hundreds of warnings. No warnings left in tested builds |
| 342 |
- `FontConfigManager`: better handling with custom configurations |
| 343 |
- Removed `PdfMutex`. Used `std::mutex` where necessary |
| 344 |
- Datatypte: removed `PdfDataType::HexString` |
| 345 |
- Removed support for old compilers (MSVC6, hpux, borland, turbo...) |
| 346 |
- Added better endian swap functions |
| 347 |
- Removed `auto_ptr` usage |
| 348 |
- Removed `pdf_int`/`pdf_uint` types |
| 349 |
- Removed use of `pdf_long`/`long` types |
| 350 |
- Removed use of `ptrdiff_t` |
| 351 |
- Removed unistring and ugly string conversion code. Moved to utfcpp |
| 352 |
- Reviewed `PdfObject::GetNumber`/`PdfObject::GetReal` (strict/lenient) |
| 353 |
- Remove `PdfObject` inheritance on `PdfVariant` |
| 354 |
- Reviewed `PdfVariant`/`PdfObject`/`PdfArray`/`PdfDictionary` equality/disequality operators |
| 355 |
- Simplified copyright headers |
| 356 |
- Object copy constructor must copy also stream |
| 357 |
- `PdfElement`: `GetDocument()`, `GetObject()` refs |
| 358 |
- `PdfIndirectObjectList`: `GetParentDocument()` -> `GetDocument()` |
| 359 |
- Remove `PdfSignOutputDevice::SetSignatureSize(size)` |
| 360 |
- Moved inline code to .cpp |
| 361 |
- Remove comments on overrides |
| 362 |
- Cleaned CMakeFiles (removed custom Find<>.cmake) |
| 363 |
- `NULL` -> `nullptr` |
| 364 |
- Use `std::shared_ptr` in `PdfFontMetrics`, `PdfEncoding` in `PdfFont` |
| 365 |
- Cleaned `PdfFontCache` (renamed `PdfFontManager`), removed font functions from `PdfDocument` |
| 366 |
- `PdfArray::FindAt()` return ref |
| 367 |
- Simplified license headers |
| 368 |
- Reviewed `PdfPageTree` and `PdfPageTreeCache` API |
| 369 |
- Reviewed most int vs unsigned indexing |
| 370 |
- Remove all hungarian notation |
| 371 |
- Sanitize code style |
| 372 |
- Removed all const char* and passed to string/string_view |
| 373 |
- Renamed `PdfFontCache` -> `PdfFontManager` |
| 374 |
- Renamed `PdfVecObjects` -> `PdfIndirectObjectList` |
| 375 |
- Renamed `PdfNamesTree` -> `PdfNameTree` |
| 376 |
- Renamed `PdfPagesTree` -> `PdfPageTree` |
| 377 |
- Renamed `PdfPagesTreeCache` -> `PdfPageTreeCache` |
| 378 |
- PdfObject: removed GetIndirectObject(), MustGetIndirectKey (must use PdfDictionary now) |
| 379 |
- Remove `PdfMemoryManagement.cpp`, Removed `podofo_new`, `podofo_free` |
| 380 |
- Add chars type for char array storage/buffering which inherits string |
| 381 |
- Review pointer vs ref parameters/return types |
| 382 |
- Removed `PdfRefCountedBuffer`, `PdfRefCountedInputDevice`, `PdfRefCountedOutputDevice` |
| 383 |
- Removed `PdfMemoryManagement` and all C style malloc/free usage |
| 384 |
- Refactored `PdfOutputDevice` (`PdfMemoryOutputDevice`/`PdfFileOutputDevice`/etc.) |
| 385 |
- Clean `PdfError`, remove `wchar_t` |
| 386 |
- Remove `printf`, `snprintf` |
| 387 |
- Renamed `PdfElement`-> {`PdfDictionaryElement`|`PdfArrayElement`} that |
| 388 |
respectively have `GetDictionary()`, `GetArray()` |
| 389 |
- Reviewed `PdfWriteFlags`, added `PdfSaveOptions` |
| 390 |
|
| 391 |
## Old PoDoFo ChangeLog |
| 392 |
|
| 393 |
Version 0.7 |
| 394 |
|
| 395 |
- Fixed `PdfPainter::ArcTo` |
| 396 |
- Fixed crash in `FlateDecode` and `LZWDecode` predictor functions |
| 397 |
- Fixed writing of unicode `PdfString`(s) with brackets (will be escaped |
| 398 |
now) |
| 399 |
- Fixed encoding of bytes in `PdfName` |
| 400 |
- Added many new unit tests |
| 401 |
- Added methods to free object memory of objects that are not needed |
| 402 |
- anymore (These objects will be re-read from disk if they are |
| 403 |
needed again) |
| 404 |
- Fixed a crash when appending PDFs |
| 405 |
- Added unicode support on Win32 (`wchar_t` constructors and methods |
| 406 |
- where appropriate, e.g. file handling) |
| 407 |
- Fixed a memory leak in `PdfStream` |
| 408 |
- Small optimizations in various places |
| 409 |
- Fixed `DCTDecode` filter for CMYK images |
| 410 |
- `PdfReference` is now immutable, which allows for various optimizations |
| 411 |
- Fixed `PdfInputDevice::Read` to return now the correct number of bytes |
| 412 |
read |
| 413 |
- Fixed a memory leak in `PdfImmediateWriter`/`PdfStreamedDocument` |
| 414 |
- Fixed several minor parsing issues |
| 415 |
- Fixed adding text to existing pages |
| 416 |
- Added Lua5.1 plan file support to `podofoimpose` |
| 417 |
- Several fixes in creating XObjects from pages |
| 418 |
- Fixed a possible crash in `PdfNamesTree` |
| 419 |
- Added support for setting colors in `PdfAnnotations` |
| 420 |
- Added advanced text drawing support to `PdfPainter` |
| 421 |
- Fixed parsing of Type1 fonts |
| 422 |
- Fixed deletion of `PdfAnnotations` (fixes a memory leak) |
| 423 |
|
| 424 |
Version 0.5 |
| 425 |
|
| 426 |
- Added support for `/EmbeddedFiles` (annotations & named objects) |
| 427 |
- Added support for `/ExtGStates` when drawing |
| 428 |
initially only supports basic transparency |
| 429 |
- Fixed reading values from nametrees |
| 430 |
- Added support for named destinations |
| 431 |
- Fixed a memory leak in `PdfDestination::GetPage` |
| 432 |
- Pages do not know their page number inside of the document |
| 433 |
- Fixed reading `PdfActions` from PDF files |
| 434 |
- Moved filter implementations to `PdfFiltersPrivate.h` |
| 435 |
- Added `PdfFilter::CanEncode` and `PdfFilter::CanDecode` |
| 436 |
- Simpliefid PoDoFos handling of XRef tables |
| 437 |
|
| 438 |
Version 0.4 |
| 439 |
|
| 440 |
- `PdfImage` now supports creating an image stream from a "raw bitmap" |
| 441 |
which can also be optionally Flate compressed |
| 442 |
- Added some new Page-related methods to PdfDocument: |
| 443 |
* `Append` - append one document to another |
| 444 |
* `InsertPages` - insert a range of pages from one document to another |
| 445 |
* `DeletePages` - delete a range of pages |
| 446 |
- Added new tool `podofomerge` for merging two PDFs together |
| 447 |
- Added methods to get & set a document's `PageMode` |
| 448 |
- Added methods to set a document's `FullScreen` mode |
| 449 |
- Added methods to set all the various `/ViewerPreferences` for a document |
| 450 |
- Added methods to set the document's PageLayout |
| 451 |
- Added `/Outlines` support |
| 452 |
modified `podofoinfo` to display them, if present |
| 453 |
- Added a `PdfDestination` class |
| 454 |
- Added `PdfNamesTree` class for handling the global named objects |
| 455 |
modified `podofoinfo` to display them, if present |
| 456 |
- `PdfPainter` can draw bezier curves |
| 457 |
- Added XCode project for building on Mac OS X |
| 458 |
fixed up conditionals in font code to enable building on |
| 459 |
MacOSX - but no font loading yet |
| 460 |
- Added support for writing linearized PDF |
| 461 |
- Added support for garbage collection of unused objects |
| 462 |
- Simplified `PdfObject` constructor |
| 463 |
- Improved annotation support |
| 464 |
- Added support to encode names and various name testcases |
| 465 |
- Fixed ascent and descent of fonts |
| 466 |
- Improved `PdfImage` API |
| 467 |
- Added support for the creation of file identifiers which makes |
| 468 |
PoDoFo created PDF files work in more different PDF |
| 469 |
workflows |
| 470 |
- `PdfImage` optionally takes ownership of buffers |
| 471 |
- Fixed a major parser bug: the parser expected all objects in |
| 472 |
object streams to be of type dictionary. |
| 473 |
|
| 474 |
Version 0.3 |
| 475 |
- Total revamp of `PdfObject` & `PdfVariant` to enable clean/consistent object handling; |
| 476 |
Added new `PdfDocument` object - new high level object for reading & writing a PDF doc; |
| 477 |
- Total revamp of the `PdfDocument`, `PdfWriter` & `PdfParser` relationship |
| 478 |
`PdfDocument` is now hub for both reading and writing a document |
| 479 |
it holds the `PdfVecObjects` - the others just reference them. |
| 480 |
- Total revamp of `PdfPainter` |
| 481 |
* now uses PDF coordinates - UserUnits from bottom/left |
| 482 |
added `PdfPainterMM` for mm-based coords |
| 483 |
* supports user-specified float precision |
| 484 |
and writes out floats in an optimal manner |
| 485 |
* supports "appending" mode for drawing on existing documents |
| 486 |
- Improved handling of the `/Info` dict for both reading and writing PDFs; |
| 487 |
- Added new test app - `podofopdfinfo`, which will be used to dump metadata, etc. from a PDF; |
| 488 |
- Added `PdfError::DebugMessage()` as the official way to write out debugging info; |
| 489 |
updated all other debugging msgs to use this; |
| 490 |
- Added `PdfError::DebugEnabled()` to enable/disable display of debug messages; |
| 491 |
- Added tracking of file size in `PdfParser`; |
| 492 |
- Minor tweak to linearization handling - to enable getting the status from a doc; |
| 493 |
- Added getting `GetPdfVersionAsString()` to `PdfWriter`; |
| 494 |
- Added new info/object getting methods to `PdfDocument`: |
| 495 |
* `IsLinearized()`; |
| 496 |
* `FileSize()`; |
| 497 |
* `GetStructTreeRoot()`; |
| 498 |
* `GetMetadata()`; |
| 499 |
* `GetOutlines()`; |
| 500 |
* `GetAcroForm()`. |
| 501 |
- Updated `pdfinfo` & `podofopdfinfo` to call the new `PdfDocument` methods; |
| 502 |
- Added `PdfDictionary` and `PdfArray` classes; |
| 503 |
- Added new `PdfPagesTree` (inside of `PdfDocument.cpp`) for handling walking a `/Pages` tree; |
| 504 |
- Added new `GetPageCount()` method to `PdfDocument`; |
| 505 |
- Modifications to `PdfPage` to attach it to a `PdfDocument` & construct from a `PdfObject`; |
| 506 |
- Added new Legal and A3 standard page sizes; |
| 507 |
- Changed page coordinates to be PDF unit-based instead of 1/1000mm; |
| 508 |
- Changed `PdfRect` to use PDF units and also use bottom instead of top; |
| 509 |
- Added ability to go between `PdfRect` and `PdfArray` & also get string version of a `PdfRect`; |
| 510 |
- Added support for `PdfPage` to return all the standard boxes (Media, Crop, etc); |
| 511 |
- Added support for fetching inherited values from pages (eg. boxes, rotation, etc.) |
| 512 |
- Added more methods to `PdfPage`: |
| 513 |
* `GetRotation()`; |
| 514 |
* `GetNumAnnots()`. |
| 515 |
- Use exceptions now instead of error codes; |
| 516 |
- Removed `Init` from `PdfOutputDevice`; |
| 517 |
- Removed `Init` from `PdfParser`; |
| 518 |
- Added LZW Filter support; |
| 519 |
- Added `PdfElement` as base class for `PdfAction`, `PdfAnnotation` and |
| 520 |
- PdfPage; |
| 521 |
- Fixed `podofoimageextract`, `podofotxt2pdf` and `podofopdfinfo`; |
| 522 |
- Removed `PdfSimpleWriter` in favour of `PdfDocument`; |
| 523 |
- Headers are now installed in `includedir/podofo/`; |
| 524 |
- Added a new `WatermarkTest` |
| 525 |
demonstrates how to read an existing PDF and draw on each page. |
| 526 |
|
| 527 |
Version 0.2 |
| 528 |
|
| 529 |
- Improved Documentation; |
| 530 |
- Added `SetInformation` for additional error information to `PdfError`; |
| 531 |
- Fixed the underline color of text; |
| 532 |
- Introduced `PdfReference` class; |
| 533 |
- Fixed `PdfStream::GetFilteredCopy`; |
| 534 |
- Improved handling of `/DecodeParms` for filters; |
| 535 |
- Fixed PDF files with more than one `/DecodeParms` dictionary |
| 536 |
in one object; |
| 537 |
- Added on demand loading of objects to the `PdfParser`; |
| 538 |
- Ported to Windows by Leonard Rosenthol; |
| 539 |
- On demand loading of objects is now the default; |
| 540 |
- Refactored `PdfFilter` interface so that filters are cached; |
| 541 |
- Fixed multiple connected XRef tables through `/Prev` keys in the trailer; |
| 542 |
- Fixed a number of compiler warnings; |
| 543 |
- Replaced `char*` with `std::strings` in a number of classes; |
| 544 |
- Added `std::ostream` support to `PdfOutputDevice;` |
| 545 |
- Improvements to the `ImageExtractor` tool; |
| 546 |
- Refactored `PdfVariant` so that it is easier to use. |
| 547 |
|
| 548 |
Version 0.1 (11 June 2006) |
| 549 |
|
| 550 |
- Initial release. |