Commit Graph

66 Commits

Author SHA1 Message Date
Michael R Sweet
a3f3bbfe11
Fix pdfioFileGetAuthor, etc. APIs (Issue #33) 2022-07-12 18:36:08 -04:00
Michael R Sweet
067683cbcd
Add some protection against opening multiple streams in the same file at the same time. 2022-07-04 13:03:11 -04:00
Michael R Sweet
f4b8983c61
Implement pdfioDictIterateKeys API (Issue #31) 2022-06-27 10:17:00 -04:00
Michael R Sweet
316b0ad559
Add pdfioFileCreateTemporary function (Issue #29) 2022-05-15 22:52:53 -04:00
Michael R Sweet
001dcbb123
Fix testpdfio build - dependencies on pdfio-private.h were missing. 2021-11-29 17:57:49 -05:00
Michael R Sweet
90ad1e694a
Fix early closing of input PDF. 2021-10-25 21:36:01 -04:00
Michael R Sweet
e2b33a6cbb
Merge branch 'master' into crypto 2021-10-25 21:25:12 -04:00
Michael R Sweet
038046e6d5
Save work on encrypted PDF reading. 2021-10-25 19:36:39 -04:00
Michael R Sweet
dd56317635
Need object when reading/writing encrypted PDFs (to decrypt/encrypt strings),
RC4 writing is now working, AES-128 needs work, AES-256 hasn't been done yet.
2021-10-23 18:08:16 -04:00
Michael R Sweet
19571d00f2
Fix AES cipher implementation.
Update test program to validate the key expansion using the FIPS-197 example.

Add password-protected RC4 test output.

Add no-password AES-128 test output.
2021-10-23 00:07:13 -04:00
Michael R Sweet
095a4c10d4 Fix some memory leaks (Issue #23) 2021-10-16 00:02:31 -04:00
Michael R Sweet
ea126c7e8d
Save work. 2021-10-15 10:40:42 -04:00
Michael R Sweet
493fbca31c
Save work on unit tests for crypto. RC4 and AES are having trouble for some reason... 2021-10-12 17:11:10 -04:00
Michael R Sweet
c24243a2bc
Refactor crypto callback to have separate input/output pointers. Add initial writing support. 2021-10-12 09:13:30 -04:00
Michael R Sweet
43239eaf8a
Add placeholder password callback to support reading of encrypted PDF files in the future. 2021-09-27 08:37:14 -04:00
Michael R Sweet
d6746c08a4
Add pdfioFileCreateOutput API (Issue #21) 2021-09-27 07:41:50 -04:00
Michael R Sweet
6f726602c6
Clean up object stream support. 2021-08-29 18:35:23 -04:00
Michael R Sweet
525279eff0
Don't show function name, just filename. 2021-08-26 14:00:40 -04:00
Michael R Sweet
3f2de9c46a
Update test program to process all files on the command-line, add a --help and
--verbose option, and return the results of the unit tests.
2021-08-23 14:40:15 -04:00
Michael R Sweet
543364dfa2
More efficiently implement reading of integers vs. indirect references.
"testpdfio filename.pdf objnum" now shows object value if there is no stream.

Clean up debugging printfs.
2021-08-23 14:31:54 -04:00
Michael R Sweet
e71c1a7e5e Don't export color constants since that breaks with DLLs... (Issue #19) 2021-08-18 10:17:47 -04:00
Michael R Sweet
21823fb0d9 Add testpdfio target for MSVC. 2021-07-26 11:58:20 -04:00
Michael R Sweet
2cc4789cf6
Fix image writing issues for pdfioFileCreateImageObjFromData (Issue #15) 2021-07-18 09:50:22 -04:00
Michael R Sweet
3e0507ba6c
Rework pdfioFileCreateImageObjFromData to have a separate alpha argument so
that CMYK images can be supported.

Add unit tests.
2021-07-18 09:23:39 -04:00
Michael R Sweet
43b5e03c71
Add unit tests for accessors (Issue #9) 2021-07-06 20:51:21 -04:00
Michael R Sweet
4f6a7ab03f
Debug output. 2021-06-29 20:39:31 -04:00
Michael R Sweet
90c7591190
Save work. 2021-06-24 09:07:03 -04:00
Michael R Sweet
10c8d222cf
Test both CP1252 and Unicode font rendering.
Add cached CP1252 and Unicode font encoding objects.

Clean up CP1252 ("simple") TrueType font embedding.
2021-06-23 21:26:01 -04:00
Michael R Sweet
060e7cdbd5
Fiddle with Unicode support some more. 2021-06-22 17:10:19 -04:00
Michael R Sweet
01ca711ec8
Add decode testing to testpdfio 2021-06-21 16:03:05 -04:00
Michael R Sweet
e9d5e082af
Save work on Unicode font support - still something isn't quite right. 2021-06-21 07:58:23 -04:00
Michael R Sweet
d1f199c7ae
Hard wrap text in README.md 2021-06-11 11:33:41 -04:00
Michael R Sweet
bca0add5d8
Very early TrueType support. 2021-06-11 11:22:08 -04:00
Michael R Sweet
42e7183eb0
Normalize test pages and add function to draw standard header and footer content. 2021-06-11 10:36:32 -04:00
Michael R Sweet
0aea9c5439
Rename some of the content APIs for consistency. 2021-06-10 19:41:39 -04:00
Michael R Sweet
5533408c09
ICC profile support (Issue #3) 2021-06-10 12:40:06 -04:00
Michael R Sweet
534da32343
Update PNG test images, particularly to add transparency to the indexed image.
Add demonstration of transparency backing for indexed image to test suite.
2021-06-10 11:18:51 -04:00
Michael R Sweet
466cb473d1
Fix _pdfioFileRead/Seek to fix test suite-reported error loading an object. 2021-06-10 10:58:07 -04:00
Michael R Sweet
a698b9c1a2
API cleanup, more work on documentation. 2021-06-07 08:34:30 -04:00
Michael R Sweet
c158587070
Fix issues with grayscale PNG images.
Update PNG test page content.
2021-06-06 00:27:33 -04:00
Michael R Sweet
1ea2b7514a
Rework the color space support.
Start work on PNG file reader.
2021-06-05 11:28:32 -04:00
Michael R Sweet
3a133bd1c0
Fix one more resource leak found by Coverity. 2021-06-04 11:09:34 -04:00
Michael R Sweet
07b9ce80bb
Fix one more resource leak found by Coverity. 2021-06-04 11:07:27 -04:00
Michael R Sweet
ee5fcc2a4a
Fix Coverity-discovered issues. 2021-06-04 10:56:23 -04:00
Michael R Sweet
3ec771e688
Add read-back tests. 2021-06-02 15:46:39 -04:00
Michael R Sweet
2856b440d1
Add PNG predictor test page (yes, we have problems) 2021-06-01 17:10:36 -04:00
Michael R Sweet
cc250e7201
Fix more of the text output code (paren handling).
Update unit tests to write lines from README.md.
2021-05-31 21:34:53 -04:00
Michael R Sweet
05df5919cd
Save work on text tests. 2021-05-31 20:51:37 -04:00
Michael R Sweet
82e62ae852
Basic text support. 2021-05-31 19:41:02 -04:00
Michael R Sweet
c4e0421f62
Implement calibrated color support, including constants for a few standard
color spaces and a new color patch test page.

The grayscale test image from CUPS wasn't actually grayscale.
2021-05-31 09:31:00 -04:00