Commit Graph

627 Commits

Author SHA1 Message Date
vididvidid
f417a25121 block usage of incompatible operators and functions, for example the pdfioFileCreateFontObjFromBase function, the use of transparency in pdfioFileCreateImageObjFrom..., and so forth. 2025-10-01 08:17:17 +00:00
vididvidid
1325c9cd61 removed the comment i made in the code 2025-10-01 07:40:14 +00:00
vididvidid
71790bb6c4 added the unit testcases for the pdfa feature in the testpdfio and removed the custom one 2025-10-01 07:38:54 +00:00
vididvidid
a08614911a added the comment at the end of line tyepdef enum _pdfio_pdfa_e 2025-10-01 05:06:49 +00:00
vididvidid
7bc3e84aed added string replacing the switch cases 2025-10-01 05:05:15 +00:00
vididvidid
0194feca6f moved the comment outside of nested if for standard header 2025-10-01 04:52:16 +00:00
vididvidid
219a288488 renamed actual_version to file_version 2025-10-01 04:43:51 +00:00
vididvidid
2b4b20efe4 removed the numering in comments 2025-10-01 04:40:16 +00:00
vididvidid
6dcb2cdced deleted the test files result 2025-09-30 07:11:46 +00:00
vididvidid
b1550fdc10 corrected the issue regarding the headers in the pdfa files 2025-09-30 07:09:56 +00:00
vididvidid
ef3a6cb1c0 created a test file 2025-09-30 05:21:48 +00:00
vididvidid
0d1d5413ee pdf/a files must contains special xmp metadata that declares their conformance. so updated the write_metadata 2025-09-30 04:52:25 +00:00
vididvidid
f7db310942 added the enum for the conformance levels in the pdfio-private.h under _pdfio_file_s and updated the create_common() function which is used by pdfiofilecreate to recognize the new pdf/a-.. strings 2025-09-30 04:38:35 +00:00
Michael R Sweet
99d03ddf9c Fallthrough attribute is Apple-specific at the moment... 2025-09-25 17:47:59 -04:00
Michael R Sweet
fe122d557b Resolve clang warnings, update Xcode project. 2025-09-25 17:12:33 -04:00
Michael R Sweet
2582052377 More tagged PDF changes (Issue #123):
- Add MarkInfo dictionary to document catalog when generating marked content.
- Add basic structured tags to md2pdf example.
2025-09-18 12:08:55 -04:00
Michael R Sweet
af5c412c96 Add pdfioContentBegin/EndMarked functions (Issue #123) 2025-09-16 20:33:02 -04:00
Michael R Sweet
e13526226a Merge pull request #136 from uddhavphatak/master
Correct PDF trailer: output %%EOF instead of %EOF
2025-09-13 11:35:09 -04:00
Michael R Sweet
868794ab24 Changelog. 2025-09-13 11:34:48 -04:00
ThePhatak
604396c0e7 Correct PDF trailer: output %%EOF instead of %EOF 2025-09-13 19:25:39 +05:30
Michael R Sweet
156a184a45 Fix some Clang warnings. 2025-09-04 14:37:42 -04:00
Michael R Sweet
eb0c785d6d Current autoconf triggers the obsolete AC_HEADER_STDC checks, so force things before zlib. 2025-08-30 13:37:51 -04:00
Michael R Sweet
359b65298e Add underflow detection to TTF cmap code. 2025-08-27 11:19:35 -04:00
Michael R Sweet
ccf3a90c97 Document how warning messages work (Issue #118) 2025-08-26 15:18:36 -04:00
Michael R Sweet
c8017f50f6 PDFio 1.5.4 was released today. 2025-08-26 12:35:41 -04:00
Michael R Sweet
4a1c53e31b Fix typos. 2025-08-06 11:25:51 -04:00
Michael R Sweet
5e8c3eb0b2 Clarify token too large errors (Issue #131) 2025-07-28 19:11:02 +01:00
Michael R Sweet
07ea310cd1 Fix copy_jpeg with invalid/corrupt JPEG data (Issue #132) 2025-07-28 19:03:16 +01:00
Michael R Sweet
7ce8ec07ab Limit generation numbers to 0 to 65535. 2025-07-28 12:51:39 +01:00
Michael R Sweet
f9ff913bb9 Changelog. 2025-05-03 10:14:07 -04:00
Michael R Sweet
0c41a14919 Don't set extension pointer if object is NULL. 2025-04-25 12:40:54 -04:00
Michael R Sweet
57a01a7317 Fix object map to use unique file hash instead of pointer values (Issue #125) 2025-04-24 14:00:24 -04:00
Michael R Sweet
5b08046ece Add more range checking for streams. 2025-04-24 13:17:31 -04:00
Michael R Sweet
d1bf9a92dc Fix whitespace. 2025-04-24 12:29:20 -04:00
Michael R Sweet
749c0f845d Drop Xpdf and other checks from test-corpus.sh script. 2025-04-24 12:07:07 -04:00
Michael R Sweet
cad8f450ab Multiple fixes to allow PDFio to read more edge-case PDFs.
- Update _pdfioFileGets to allow for really long lines where it
  doesn't matter if we lose the end of the line.
- Update "startxref" detection at the end of the file.
- Refactor repair logic so that you just get a single WARNING about
  the repair (debug messages available for testing)
- Allow whitespace after the "obj" in the object header.
- Make sure to close xref stream on error.
- Update predictor code to support Colors <= 32 (some implementations
  set Colors to the number of bytes per record in the xref stream,
  which prevents the predictor from doing anything...)
- Allow CR CR in xref table.
- Clear old trailer/root/pages/etc. objects when repairing, update
  existing objects that were already found in load_xref.
- Don't set current object in pdfioObjectCreate/OpenStream if the
  stream can't be created/opened.
2025-04-24 11:09:54 -04:00
Michael R Sweet
278ddb7fa7 Clarify error callback API, and actually use the return value.
Improve repair implementation.
2025-04-23 14:43:14 -04:00
Michael R Sweet
1e6bb710e3 Changelog. 2025-04-23 10:13:35 -04:00
Michael R Sweet
4ca93bd34f Add support for EncryptMetadata key in encryption dictionary. 2025-04-23 10:07:44 -04:00
Michael R Sweet
404ca72882 Protect against invalid predictor buffer size. 2025-04-23 10:07:26 -04:00
Michael R Sweet
67704ce493 Update corpus test script to use Xpdf's pdfinfo to weed out known-bad PDFs for now. 2025-04-21 16:59:59 -04:00
Michael R Sweet
e983ba98d8 Fix encrypted PDF files with P values >2^31-1. 2025-04-20 17:33:56 -04:00
Michael R Sweet
c23c6dec9a Tweak script. 2025-04-18 20:00:14 -04:00
Michael R Sweet
5e9617a742 One more Windows build warning. 2025-04-18 18:10:03 -04:00
Michael R Sweet
09ee7d16c1 More test program cleanup to use test header. 2025-04-18 18:08:37 -04:00
Michael R Sweet
078985fc20 Try to eliminate more Windows build warnings. 2025-04-18 17:58:06 -04:00
Michael R Sweet
13fedfc424 Try a macro trick to get rid of some Windows build warnings. 2025-04-18 17:29:02 -04:00
Michael R Sweet
c07927dc2d Bump copyright on test header since it was updated. 2025-04-18 17:22:15 -04:00
Michael R Sweet
1393cd6c04 Hopefully fix Windows build issues. 2025-04-18 17:07:53 -04:00
Michael R Sweet
b278e33aac Update unit test program to use test header. 2025-04-18 11:27:12 -04:00