Commit Graph

267 Commits

Author SHA1 Message Date
Michael R Sweet
b2db43afcb
Show an error when opening an encrypted PDF file. 2021-08-30 11:18:23 -04:00
Michael R Sweet
6aa5585eb4
Fix some compressed stream bugs. 2021-08-30 10:55:45 -04:00
Michael R Sweet
6f726602c6
Clean up object stream support. 2021-08-29 18:35:23 -04:00
Michael R Sweet
f9084400cd
Tweak VS properties. 2021-08-26 18:56:58 -04:00
Michael R Sweet
d76e2a30e1
Tweak for Windows NuGet. 2021-08-26 18:55:44 -04:00
Michael R Sweet
3881c2840a
Fix NuGet spec file. 2021-08-26 14:10:21 -04:00
Michael R Sweet
715b93fb08
Always require zlib. 2021-08-26 14:02:57 -04:00
Michael R Sweet
525279eff0
Don't show function name, just filename. 2021-08-26 14:00:40 -04:00
Michael R Sweet
e83fdf14dd
Add zstrerror for ZLIB errors. 2021-08-25 09:30:03 -04:00
Michael R Sweet
6d42b6834e
Don't try to pre-load object streams since that interferes with reading the
rest of an xref stream...
2021-08-24 14:07:34 -04:00
Michael R Sweet
6745f785b7
Fix bug with xref stream with no index.
Fix bug with pdfiOStreamPeek not appending new stream data to buffer.

Add more debug printfs for values.
2021-08-24 13:50:57 -04:00
Michael R Sweet
4ec19545f3
Update NuGet files. 2021-08-24 13:50:57 -04:00
Michael R Sweet
1d1e038694
Add LGTM exclusions file. 2021-08-24 12:06:27 -04:00
Michael R Sweet
4f2753faae
Fix LGTM warning, report errors to call. 2021-08-24 12:04:10 -04:00
Michael R Sweet
6e5cfc1a5f
Make object reader handle object headers that don't conform to any of the PDF
standards.
2021-08-23 19:52:01 -04:00
Michael R Sweet
a3de05cf0e
Increase size of value buffer. 2021-08-23 19:37:33 -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
cd5158bae0
Implement support for multiple index arrays (Issue #8) 2021-08-23 14:31:19 -04:00
Michael R Sweet
3e4b01239e
Implement TIFF predicator (Issue #12) 2021-08-21 22:51:25 -04:00
Michael R Sweet
fc028356bc Merge branch 'master' of github.com:michaelrsweet/pdfio 2021-08-18 10:17:52 -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
2c7d7cf768
Add initial Nuget packaging files.
Use zlib_native instead of zlib-msvc-v140.
2021-07-30 20:33:21 -04:00
Michael R Sweet
ac4620b808
Add nuget resource step. 2021-07-26 21:37:06 -04:00
Michael R Sweet
d2e8f5e263
Add setup-msbuild step, use msbuild. 2021-07-26 20:56:28 -04:00
Michael R Sweet
1d22369c5e
Add Windows CI target. 2021-07-26 18:42:22 -04:00
Michael R Sweet
21823fb0d9 Add testpdfio target for MSVC. 2021-07-26 11:58:20 -04:00
Michael R Sweet
94c09a1af4
Add missing symbols. 2021-07-26 11:56:59 -04:00
Michael R Sweet
dd81069b1c
Add Windows DLL exports file. 2021-07-26 11:18:36 -04:00
Michael R Sweet
c60893a66c
Finish initial documentation pass. Still need more examples but we'll add more
as we go... (Issue #6)
2021-07-26 09:05:19 -04:00
Michael R Sweet
eb7e0676cc
More docos. 2021-07-24 15:28:47 -04:00
Michael R Sweet
87b9ea87ad
Save work on documentation. 2021-07-24 13:08:46 -04:00
Michael R Sweet
78c1da815e
Fix typo. 2021-07-18 16:46:34 -04:00
Michael R Sweet
b007156c01
Save work on documentation tweaking. 2021-07-18 10:01:43 -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
014c5dccba
Implement pdfioFileCreateImageObjFromData (Issue #15) 2021-07-17 20:54:29 -04:00
Michael R Sweet
47d6a34d07
Ignore xcshareddata. 2021-07-17 16:13:01 -04:00
Michael R Sweet
d62faa51e1
Implement date value support (Issue #13) 2021-07-07 22:06:25 -04:00
Michael R Sweet
43b5e03c71
Add unit tests for accessors (Issue #9) 2021-07-06 20:51:21 -04:00
Michael R Sweet
30343cdb00
Info catalog accessors (Issue #9) 2021-07-06 20:31:30 -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
a366697711
Refactor CP1252 code into a separate function, then use it for the base fonts. 2021-06-23 21:33:39 -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
3844abdf92
Fix reading of streams with indirect lengths. 2021-06-21 16:18:06 -04:00
Michael R Sweet
01ca711ec8
Add decode testing to testpdfio 2021-06-21 16:03:05 -04:00
Michael R Sweet
db8be28ff6
Try a different system info identifier for Unicode fonts. 2021-06-21 16:01:55 -04:00
Michael R Sweet
9ec7c8bde9
Expose CMap in TrueType files 2021-06-21 13:00:44 -04:00