Debian Codegraph @

podofo/CHANGELOG.md

raw symbols SCIP
1 ## Version 0.10.6
2 - Fix [#260](https://github.com/podofo/podofo/issues/260), [#278](https://github.com/podofo/podofo/issues/278),
3 [#290](https://github.com/podofo/podofo/issues/290), [#295](https://github.com/podofo/podofo/issues/295),
4 [#314](https://github.com/podofo/podofo/issues/314), [#317](https://github.com/podofo/podofo/issues/317),
5 [#318](https://github.com/podofo/podofo/issues/318)
6 - `PdfFontMetricsObject`: Handle scalars in the widths array that are cross references
7 - `PdfEncodingMapSimple`: Fix skipping `beginbfrange` unmapped codes in `AppendToUnicodeEntries()`
8 - `PdfCMapEncoding`: Handle `beginbfrange` declared size bigger than actual array
9 - `PdfContents`: Fixed painting to the same page more than twice (#317)
10 - `PdfTokenizer`: Fixed infinite loop for "Unknown" keyword
11 - `PdfDate`: Fixed OOB read in date parsing
12 - `PdfXRefStreamParserObject`: Permit `/W` [1 8 2]
13 - `PdfMemDocument`: Fixed upgrade to PDF 2.0 in incremental updates
14 - `PdfIndirectObjectList`: Fixed incorrect collecting of `/Length` objects in compressed object streams
15 - `PdfPage`: Concatenate form XObject matrix to CTM during text extraction
16 - `PdfDictionary`: Small optimization in `findKey()`
17 - `PdfFlateFilter`: Detect error condition treated as warning during inflate
18 - CMap parser: Fixed infinite loop on negative character codes
19 - `getCodeFromVariant`: Avoid invalid arithmetical shifts
20 - Text operators: Fixed order of operations for `'` and `"` operators (#278)
21 - `charconv_compat`: Fixed support for older MacOS and newer Xcode (#290, #295, libc++ 20+)
22 - `basedefs`: Aggressively remove offending `<Windows.h>` macros and fix `<zlib.h>` conflict (#314)
23 - Document keywords: Fixed retrieving doc keyword list (#318)
24 - Increased minimum GCC version requirement (#260)
25 - Various compilation and warning fixes
26
27 ## Version 0.10.5
28 - Fix [#191](https://github.com/podofo/podofo/issues/191), [#197](https://github.com/podofo/podofo/issues/197),
29 [#201](https://github.com/podofo/podofo/issues/201), [#212](https://github.com/podofo/podofo/issues/212),
30 [#233](https://github.com/podofo/podofo/issues/233), [#241](https://github.com/podofo/podofo/issues/241),
31 [#251](https://github.com/podofo/podofo/issues/251), [#252](https://github.com/podofo/podofo/issues/252),
32 [#253](https://github.com/podofo/podofo/issues/253)
33 - `PdfParser`: Fixed stack overflow parsing documents with many XRef stream updates
34 - `PdfFont`: Fixed `GetBoundingBox()` retrieval
35 - `PdfFontMetricsObject`: Fixed reading `/FontBBox`
36 - `PdfEncodingFactory`: Fixed parsing of limits with `/FirstChar` equals to `/LastChar`
37 - `PdfFontMetricsStandard14`: Fixed parsing /Widths
38 - `PdfMetadata`: Fixed missing init ensure for SetAuthor()
39 - `PdfTokenizer`: Fixed character escaping when reading strings
40 - `PdfPageCollection`: Fix memory leak in `RemovePageAt`
41 - Compilation and linking fixes in various conditions
42 - `PdfFontManager`: Fixed GetOrCreateFontFromBuffer stealing memory
43 - `PdfPageCollection`: Disable copy/assignment
44 - `PdfPage_TextExtraction`: Fix `decodeString` with no font
45 - Fix eating of non-space chars in `SplitTextAsLines`
46 - Fix FreeType segfault race condition
47 - `PdfCheckBox`: Fixed `IsChecked()`
48 - `PdfParser`: Unconditionally try to read XRef stream in all PDFs that don't have a cross reference section
49
50 ## Version 0.10.4
51 - Fixes [#161](https://github.com/podofo/podofo/issues/161), [#162](https://github.com/podofo/podofo/issues/162),
52 [#167](https://github.com/podofo/podofo/issues/167), [#183](https://github.com/podofo/podofo/issues/183),
53 merges [#157](https://github.com/podofo/podofo/issues/)
54 - `StandardStreamDevice`: Fixed `seek()` in case of `iostream`/`fstream`
55 - `PdfWriter`: Fixed computing the doc identifier with a wrong buffer
56 - `PdfPainter`: Fix `SetCurrentMatrix()` to really update CTM
57 - Fixed compilation in mingw < 12
58 - `PdfCIDToGIDMap`: Fixed map reading
59 - `PdfPainter`: Fixed offset on multiline text if text is not left aligned
60
61 ## Version 0.10.3
62 - Fixed big performance regression introduced in 0.10, see [#108](https://github.com/podofo/podofo/issues/108)
63 - Fixed data loss with encrypted documents, see [#99](https://github.com/podofo/podofo/issues/99)
64 - Fixed compilation with VS2022 >= 17.8
65 - Fixed compilation using libxml >= 2.12.0
66
67 ## Version 0.10.2
68 - Security related bugfixes [#76](https://github.com/podofo/podofo/issues/76),
69 [#89](https://github.com/podofo/podofo/issues/89),
70 [#96](https://github.com/podofo/podofo/issues/96)
71 - Some compilation and test fixes
72
73 ## Version 0.10.1
74 - Security bugfixes, [#66](https://github.com/podofo/podofo/issues/66), [#67](https://github.com/podofo/podofo/issues/67),
75 [#69](https://github.com/podofo/podofo/issues/69), [#70](https://github.com/podofo/podofo/issues/70),
76 [#71](https://github.com/podofo/podofo/issues/71), [#72](https://github.com/podofo/podofo/issues/72)
77 - Rewritten `PdfPageCollection` for performance
78 - `PdfCMapEncoding`: Fix parsing some invalid CMap(s) supported by Acrobat
79 - `PdfXRefStreamParserObject`: Fixed handling of invalid XRef stream entries
80 - Support compilation of the library header (not the library itself) with C++20
81
82 ## Version 0.10.0
83 - PdfPage/PdfAnnotationCollection/PdfAnnotation: Now functions with
84 rect input assume it to be using the canonical coordinate system
85 with no rotation
86 - PdfImage: Added support for CYMK jpeg
87 - PdfParser: Cleaned FindToken2 -> FindTokenBackward
88 - Renamed base source folder -> main
89 - PdfPainter: Revamped API, added full state inspection with current point,
90 added added PdfPainterTextContext to handle text object operations
91 Use it with PdfPainter::Text instance member.
92 Added PdfContentStreamOperators low level interface for PdfPainter
93 moved SmoothCurveTo, QuadCurveTo SmoothQuadCurveTo, ArcTo, Arc,
94 to an helper structure until cleaned
95 - PdfFontMetrics: Added FilePath/FaceIndex for debugging, when available
96 - PdfFont: Renamed GetStringLength() overloads with
97 PdfString to GetEncodedStringLength()
98 - PdfFontManager: Renamed GetFont() -> SearchFont()
99 Re-Added better GetOrCreateFont() from file/buffer
100 - PdfEncrypt: Cleaned factory methods
101 - Added PdfArray::FindAtAs(), PdfArray::FindAtAsSafe(), PdfArray::TryFindAtAs(),
102 PdfArray::GetAtAs(), PdfArray::GetAtAsSafe(), PdfArray::TryGetAtAs()
103 - Added PdfDictionary::FindKeyAsSafe() and PdfDictionary::TryFindKeyAs()
104 - PdfDictionary::AddKeyIndirect/PdfArray::AddKeyIndirect accepts a reference
105 - PdfAnnotation/PdfField API review
106 - PdfDate: Introduced PdfDate::LocalNow() and PdfDate::UtcNow()
107 and default constructor is epoch time instead
108 - Renamed PdfDocument::GetNameTree() -> GetNames()
109 - PdfObject: Flate compress on write objects that have no filters
110 - PdfMemDocument does collect garbage by default when saving
111 - PdfField/PdfAnntation: Fully reworked the hierarchy
112 and added proper fields ownership
113 - Added PdfField::GetParent(), PdfField::GetChildren()
114 - PdfImage: Cleaned/reviewed/fixed SetData()/SetDataRaw()
115 - Renamed PdfPageTree -> PdfPageCollection
116 - Added XMP metadata reading/saving. Added PdfMetadata class
117 - Added text extraction API
118 - Review I/O API: Merged InputDevice/OutputDevice into StreamDevice.
119 New hierarchy deriving StreamDevice
120 - Reviewed PdfObjectStream API: added streaming operations,
121 GetInputStream(), GetOutputStream(). Renamed
122 GetFilteredCopy() -> GetUnwrappedCopy()/UnwrapTo().
123 They only unwrap non media filters (see PdfImage::DecodeTo
124 for media ones). Added proper copy and move assignment operators
125 - PdfImage: Added DecodeTo(pixelFormat)
126
127 ## Version 0.9.22 (pdfmm)
128 - Fixed serialization of strings with non ASCII PdfDocEncoding
129 characters
130 - Removed PdfLocaleImbue
131 - PdfEncrypt: Removed PdfReference state. Added PdfStatefulEncrypt
132 - Removed use of std::ostringstream. Added efficient outstringstream
133 - Added PdfMath functionalities (matrix transformations and so on)
134
135 ## Version 0.9.21 (pdfmm)
136 - Fixed serialization of UTF-16BE strings
137 - More lenient PdfDate parsing
138
139 ## Version 0.9.20 (pdfmm)
140
141 - The project is now a C++17 library
142 - Added move semantics for PdfVariant, PdfObject, PdfArray, PdfDictionary
143 - Improved XRefStream support, added support in incremental saves
144 - Many fixes in save incremental object/generation number incrementing
145 - String backed with UTF-8 storage
146 - PdfName backed with UTF-8 storage
147 - Brand new PdfEncoding class with support for both /Encoding and /ToUnicode,
148 more complete Unicode support
149 - Added a PdfDynamicEncoding class that creates a custom CID encoding
150 based on actual used glyphs used
151 - Automatic creation of CIDMap and /ToUnicode
152 - Added PdfSigner class and SignDocument()
153 - Added PdfFontType1Encoding, which support Type1 implicit encoding
154 - Added support for PDF 2.0 UTF-8 strings (untested)
155 - Added indirect iteration for PdfArray/PdfDictionary (see GetIndirectIterator methods)
156 - Added PdfDocument::GetPdfALevel()
157 - Added PDFA preserving writing
158 - Refactored/Reviewed PdfInputDevice: versions that take buffer
159 do not copy it (use istringviewstream)
160 - Added font replacement facility PdfFont::TryCreateFontSubstitute()
161 - Added standard14 fonts embedding, with font programs from PDFium
162 - Reviewed PdfXObject hierarchy, added PdfXObjectForm, PdfXObjectPostScript
163 - Added PdfTextState and use it to compute string widths in PdfFont
164 - Improved PdfDocEncoding to expose conversion utf8 conversion facilities
165 - PdfParser: Support also files with whitespace offset before magic start
166 - PdfObject auto ownership
167 - PdfContents: create on demand /Contents. First create a single stream, after array
168 - Improved IsDirty handling: less dirty bit sets
169 - Added PdfPostScriptTokenizer that as better general support for PostScript
170 - PdfDictionary: Review/convert GetKey -> FindKey
171 - PdfDictionary: Review GetKeyAs methods
172 - Fixed hundreds of warnings. No warnings left in tested builds
173 - FontConfigManager: better handling with custom configurations
174 - Removed PdfMutex. Used std::mutex where necessary
175 - Datatypte: remove PdfDataType::HexString
176 - Removed support for old compilers (MSVC6, hpux, borland, turbo...)
177 - Added better endian swap functions
178 - Removed auto_ptr usage
179 - Removed pdf_int/pdf_uint types
180 - Removed use of pdf_long/long types
181 - Removed use of ptrdiff_t
182 - Removed unistring and ugly string conversion code. Moved to utfcpp
183 - Reviewed PdfObject::GetNumber/PdfObject::GetReal (strict/lenient)
184 - Remove PdfObject inheritance on PdfVariant
185 - Reviewed PdfVariant/PdfObject/PdfArray/PdfDictionary equality/disequality operators
186 - Simplified copyright headers
187 - Object copy constructor must copy also stream
188 - PdfElement: GetDocument(), GetObject() refs
189 - PdfVecObjects: GetParentDocument() -> GetDocument()
190 - Remove PdfSignOutputDevice::SetSignatureSize(size)
191 - Moved inline code to .cpp
192 - Remove comments on overrides
193 - Cleaned CMakeFiles (removed custom Find<>.cmake)
194 - NULL -> nullptr
195 - Use shared_ptr in PdfFontMetrics, PdfEncoding in PdfFont
196 - Cleaned PdfFontCache (renamed PdfFontManager), removed font functions from PdfDocument
197 - PdfArray::FindAt() return ref
198 - Simplified license headers
199 - Reviewed PdfPageTree and PdfPageTreeCache API
200 - Reviewed most int vs unsigned indexing
201 - Remove all hungarian notation
202 - Sanitize code style
203 - Removed all const char* and passed to string/string_view
204 - Renamed PdfFontCache -> PdfFontManager
205 - Renamed PdfVecObjects -> PdfIndirectObjectList
206 - Renamed PdfNamesTree -> PdfNameTree
207 - Renamed PdfPagesTree -> PdfPageTree
208 - Renamed PdfPagesTreeCache -> PdfPageTreeCache
209 - PdfObject: removed GetIndirectObject(), MustGetIndirectKey (must use PdfDictionary now)
210 - Remove PdfMemoryManagement.cpp, Removed podofo_new, podofo_free
211 - Add chars type for char array storage/buffering which inerits string
212 - Review pointer vs ref parameters/return types
213 - Remove PdfRefCountedBuffer, PdfRefCountedInputDevice, PdfRefCountedOutputDevice
214 - Removed PdfMemoryManagement and all C style malloc/free usage
215 - Refactored PdfOutputDevice (PdfMemoryOutputDevice/PdfFileOutputDevice/etc.)
216 - Clean PdfError, remove wchar_t
217 - Remove printf, snprintf
218 - Renamed PdfElement-> {PdfDictionaryElement|PdfArrayElement} that
219 respectively have GetDictionary(), GetArray()
220 - Reviwed PdfWriteFlags, added PdfSaveOptions
221
222 ## Old PoDoFo ChangeLog
223
224 Version 0.7
225
226 - Fixed PdfPainter::ArcTo
227 - Fixed crash in FlateDecode and LZWDecode predictor functions
228 - Fixed writing of unicode PdfStrings with brackets (will be escaped
229 now)
230 - Fixed encoding of bytes in PdfName
231 - Added many new unit tests
232 - Added methods to free object memory of objects that are not needed
233 - anymore (These objects will be re-read from disk if they are
234 needed again)
235 - Fixed a crash when appending PDFs
236 - Added unicode support on Win32 (wchar_t* constructors and methods
237 - where apropriate, e.g. file handling)
238 - Fixed a memory leak in PdfStream
239 - Small optimizations in various places
240 - Fixed DCTDecode filter for CMYK images
241 - PdfReference is now immutable, which allows for various optimizations
242 - Fixed PdfInputDevice::Read to return now the correct number of bytes
243 read
244 - Fixed a memory leak in PdfImmediateWriter/PdfStreamedDocument
245 - Fixed several minor parsing issues
246 - Fixed adding text to existing pages
247 - Added Lua5.1 plan file support to podofoimpose
248 - Several fixes in creating XObjects from pages
249 - Fixed a possible crash in PdfNamesTree
250 - Added support for setting colors in PdfAnnotations
251 - Added advanced text drawing support to PdfPainter
252 - Fixed parsing of Type1 fonts
253 - Fixed deletion of PdfAnnations (fixes a memory leak)
254
255 Version 0.5
256
257 - Added support for Embedded Files (annotations & named objects)
258 - Added support for ExtGStates when drawing
259 initially only supports basic transparency
260 - Fixed reading values from nametrees
261 - Added support for named destinations
262 - Fixed a memory leak in PdfDestination::GetPage
263 - Pages do not know their page number inside of the document
264 - Fixed reading PdfActions from PDF files
265 - Moved filter implementations to PdfFiltersPrivate.h
266 - Added PdfFilter::CanEncode and PdfFilter::CanDecode
267 - Simpliefid PoDoFos handling of XRef tables
268
269 Version 0.4
270
271 - PdfImage now supports creating an image stream from a "raw bitmap"
272 which can also be optionally Flate compressed
273 - Added some new Page-related methods to PdfDocument:
274 * Append - append one document to another
275 * InsertPages - insert a range of pages from one document to another
276 * DeletePages - delete a range of pages
277 - Added new tool podofomerge for merging two PDFs together
278 - Added methods to get & set a document's PageMode
279 - Added methods to set a document's FullScreen mode
280 - Added methods to set all the various ViewerPreferences for a document
281 - Added methods to set the document's PageLayout
282 - Added Outline support
283 modified podofoinfo to display them, if present
284 - Added a PdfDestination class
285 - Added PdfNamesTree class for handling the global named objects
286 modified podofoinfo to display them, if present
287 - PdfPainter can draw bezier curves
288 - Added XCode project for building on Mac OS X
289 fixed up conditionals in font code to enable building on
290 MacOSX - but no font loading, YET
291 - Added support for writing linearized PDF
292 - Added support for garbage collection of unused objects
293 - Simplified PdfObject constructor
294 - Improved annotation support
295 - Added support to encode names and various name testcases
296 - Fixed ascent and descent of fonts
297 - Improved PdfImage API
298 - Added support for the creation of file identifiers which makes
299 PoDoFo created PDF files work in more different PDF
300 workflows
301 - PdfImage optionally takes ownership of buffers
302 - Fixed a major parser bug: The parser expected all objects in
303 object streams to be of type dictionary.
304
305 Version 0.3
306 - TOTAL revamp of PdfObject & PdfVariant to enable clean/consistent object handling;
307 Added new PdfDocument object - new high level object for reading & writing a PDF doc;
308 - TOTAL revamp of the PdfDocument, PdfWriter & PdfParser relationship
309 PdfDocument is now hub for both reading and writing a document
310 it holds the PdfVecObjects - the others just reference them.
311 - TOTAL revamp of PdfPainter
312 * now uses PDF coordinates - UserUnits from bottom/left
313 added PdfPainterMM for mm-based coords
314 * supports user-specified float precision
315 and writes out floats in an optimal manner
316 * supports "appending" mode for drawing on existing documents
317 - Improved handling of the /Info dict for both reading and writing PDFs;
318 - Added new test app - podofopdfinfo, which will be used to dump metadata, etc. from a PDF;
319 - Added PdfError::DebugMessage() as the official way to write out debugging info;
320 updated all other debugging msgs to use this;
321 - Added PdfError::DebugEnabled() to enable/disable display of debug messages;
322 - Added tracking of file size in PdfParser;
323 - Minor tweak to Linearization handling - to enable getting the status from a doc;
324 - Added getting GetPdfVersionAsString() to PdfWriter;
325 - Added new info/object getting methods to PdfDocument:
326 * bool IsLinearized();
327 * size_t FileSize();
328 * PdfObject* GetStructTreeRoot();
329 * PdfObject* GetMetadata();
330 * PdfObject* GetOutlines();
331 * PdfObject* GetAcroForm().
332 - Updated pdfinfo & podofopdfinfo to call the new PdfDocument methods;
333 - Added PdfDictionary and PdfArray classes;
334 - Added new PdfPagesTree (inside of PdfDocument.cpp) for handling walking a /Pages tree;
335 - Added new GetPageCount() method to PdfDocument;
336 - Modifications to PdfPage to attach it to a PdfDocument & construct from a PdfObject;
337 - Added new Legal and A3 standard page sizes;
338 - Changed page coordinates to be PDF unit-based instead of 1/1000mm;
339 - Changed PdfRect to use PDF units and also use bottom instead of top;
340 - Added ability to go between PdfRect and PdfArray & also get string version of a PdfRect;
341 - Added support for PdfPage to return all the standard boxes (Media, Crop, etc);
342 - Added support for fetching inherited values from pages (eg. boxes, rotation, etc.)
343 - Added more methods to PdfPage:
344 * GetRotation();
345 * GetNumAnnots().
346 - Use Exceptions now instead of error codes;
347 - Removed Init from PdfOutputDevice;
348 - Removed Init from PdfParser;
349 - Added LZW Filter support;
350 - Added PdfElement as base class for PdfAction, PdfAnnotation and
351 - PdfPage;
352 - Fixed podofoimageextract, podofotxt2pdf and podofopdfinfo;
353 - Removed PdfSimpleWriter in favour of PdfDocument;
354 - Headers are now installed in includedir/podofo/;
355 - Added a new WatermarkTest
356 demonstrates how to read an existing PDF and draw on each page.
357
358 Version 0.2
359
360 - Improved Documentation;
361 - Added SetInformation for additional error information to PdfError;
362 - Fixed the underline color of text;
363 - Introduced PdfReference class;
364 - Fixed PdfStream::GetFilteredCopy;
365 - Improved handling of DecodeParms for filters;
366 - Fixed PDF files with more than one DecodeParms dictionary
367 in one object;
368 - Added on demand loading of objects to the PdfParser;
369 - Ported to windows by Leonard Rosenthol;
370 - On demand loading of objects is now the default;
371 - Refactored PdfFilter interface so that filters are cached;
372 - Fixed multiple connected XRef tables through /Prev keys in the trailer;
373 - Fixed a number of compiler warnings;
374 - Replaced char*'s with std::strings in a number of classes;
375 - Added std::ostream support to PdfOutputDevice;
376 - Improvements to the ImageExtractor tool;
377 - Refactored PdfVariant so that it is easier to use.
378
379 Version 0.1 (11 June 2006)
380
381 - Initial release.