Commit Graph

570 Commits

Author SHA1 Message Date
3d9c22aa49 Remove old per-object crypto stuff we dont need. 2025-04-13 09:11:43 -04:00
3ae95f1545 Fix decryption of UTF-16 strings (Issue #42) 2025-04-13 09:04:00 -04:00
cfdd6f55d9 Fix decryption of RC4-40 files. 2025-04-13 08:36:58 -04:00
06f38edcc7 Add pdfioFileCreateFontObjFromData function (Issue #120) 2025-04-12 16:25:34 -04:00
76c1cc694f Bump version for start of 1.6.x development. 2025-04-12 15:52:28 -04:00
4219b8fd77 Update release date. 2025-04-12 15:12:07 -04:00
064e7fa473 Fix makesrcdist script. 2025-04-12 15:11:36 -04:00
ea9b7843fc Bump version in NuGet files and update docos. v1.5.2 2025-04-12 14:38:40 -04:00
755efe08da Range check dictionary values in pdfioImageGetBytesPerLine (Issue #121) 2025-04-12 14:33:13 -04:00
0391df5bbd Add logging of when we are repairing the xref table. 2025-04-07 09:01:41 -04:00
49efd97cab Discard duplication key/value pairs in dictionaries with a warning message (Issue #118) 2025-04-07 08:58:18 -04:00
d7eb1fc540 One more tweak to the get_date_time function (Issue #115) 2025-04-07 08:20:08 -04:00
7afefda326 More date/time processing fixes (Issue #115) 2025-04-06 12:10:55 -04:00
cbea3ecc2a Fix timezone offset in date/time values (Issue #115) 2025-04-05 13:48:11 -04:00
130cef8702 Update pdfioinfo example to support Acrobat Form dictionaries as well as indirect references (Issue #114) 2025-04-04 21:24:42 -04:00
0bd9edc845 Move token buffers off the stack (Issue #117) 2025-04-04 21:20:23 -04:00
fe755eac3d Add PDFIO_MAX_STRING constant to control maximum allowed PDF strings (Issue #117) 2025-04-04 19:27:03 -04:00
8cca645835 Update date/time parsing (Issue #115) 2025-04-04 19:12:16 -04:00
b8ea9ea064 Bump version. 2025-04-04 19:11:54 -04:00
2874022aa4 Allow empty name tokens (Issue #116) 2025-04-04 18:26:35 -04:00
3befcf2fd5 Fix warning about shadowed loop variable. 2025-04-04 18:17:04 -04:00
3b2f7e21d9 Prep for 1.5.1 release. v1.5.1 2025-03-28 14:39:59 -04:00
7e01069c5a Fix UTF-16 LE support (Issue #112) 2025-03-28 14:29:24 -04:00
88839ccb56 Fix UTF-16 LE support (Issue #112) 2025-03-28 14:28:43 -04:00
ebd5aab39b Fix handling of 0-length streams (Issue #111) 2025-03-27 12:44:42 -04:00
71d33c03ff Add PDF merge example. 2025-03-27 11:48:41 -04:00
cfe91b4ea2 Fix output of special characters in name values (Issue #106)
Fix output of special characters in string values (Issue #107)
Fi output of large integers in dictionaries (Issue #108)

Bump version to 1.5.1.
2025-03-24 18:33:24 -04:00
458f366d78 Fix some Unicode font embedding issues:
- Reworked Widths array compression for CID fonts to require at least 4 repeated
  widths.
- Fixed the embedded CMap for Unicode fonts.
v1.5.0
2025-03-06 17:09:27 -05:00
4165cd23ba Fix some issues discovered by some PDF checking tools:
- Extremely small floating point numbers would be written with exponential
  notation my the pdfioContent functions.  They are now written with up to 6
  decimal places of precision with excess trailing 0's removed.
- 8-bit (simple) TrueType fonts were embedded without a Widths array, which
  made Acrobat Reader sad but nobody else...
- Switched to using the WinANSI base encoding, which is CP1252.
2025-03-06 16:04:00 -05:00
7e56d26ff8 Prep for release. 2025-03-06 14:41:34 -05:00
712b213ec6 Enable libpng tests in testpdfio, too. 2025-03-06 14:41:38 -05:00
b7b6655db0 Update dependencies on Windows to include libpng. 2025-03-06 14:37:44 -05:00
e9debcd169 Add some more range checking to the cmap code. 2025-03-06 14:16:38 -05:00
2f925ccd3c Update documentation and pdf2text example (Issue #95) 2025-03-06 12:40:19 -05:00
89c2a75376 Fix a potential heap overflow in the TrueType cmap code. 2025-02-24 10:55:28 -05:00
1237599dea Clean up some compiler warnings. 2025-02-22 19:48:09 -05:00
6e2e4bbcc6 Remove unnnecessary length remaining check. 2025-02-22 11:04:31 -05:00
d535067c91 Fix pkg-config dependencies. 2025-02-22 08:30:38 -05:00
e996898b57 Back out object stream changes, as they would require much more significant
reworking of the "write value" private API that I don't want to do right now.
2025-02-21 16:57:01 -05:00
aa6a20c042 Lay the groundwork for object streams. 2025-02-21 15:33:27 -05:00
f09105dd3f Add support for writing the PCLm subset of PDF (Issue #99) 2025-02-20 18:18:53 -05:00
5be5552b2b Turn write_obj_header into private API. 2025-02-20 17:37:31 -05:00
492a4f51b2 Allocate stream compression buffer. 2025-02-16 13:20:51 -05:00
44827bac1a Cleanup. 2025-02-16 12:40:39 -05:00
3fad0d6f15 Support xref streams with encrypted output. 2025-02-16 12:35:45 -05:00
aeee24b856 Add xref stream support (Issue #10) 2025-02-15 21:54:16 -05:00
8d72f22efe Add support for 'repairing' damaged PDF files (Issue #45) 2025-02-15 17:26:23 -05:00
77117ac789 Update MD5 code with proper coding style/documentation for this project. 2025-02-15 13:35:54 -05:00
fceb5a807d Update AES code with proper coding style/documentation for this project. 2025-02-15 12:56:27 -05:00
4f123c2a01 Update makesrcdist script to report all issues before exiting and fix major/minor version checks. 2025-02-15 12:30:19 -05:00