aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
AgeCommit message (Collapse)Author
2024-02-24Format codeJay Berkenbilt
2024-02-17Documentation fixes for set/remove page labelsJay Berkenbilt
2024-02-17set page labels: detect start page < 1 (fixes #939)Jay Berkenbilt
2024-02-17Merge branch 'jw' from #1146 into workJay Berkenbilt
2024-02-17Add comment to QPDF_Name::writeJSONm-holger
2024-02-16Refactor QPDFJob::doJSONObjectsm-holger
2024-02-16Expose QPDFObjectHandle::writeJSONm-holger
2024-02-16Refactor QPDF::writeJSONm-holger
2024-02-16Refactor QPDF::writeJSONStreamm-holger
Use QPDF_Stream::writeStreamJSON. Factor out the json_stream_data == qpdf_sj_file case.
2024-02-16Add new method QPDF_Stream::writeStreamJSONm-holger
(Replacing the temporary implementation from the last commit.)
2024-02-16Reimplement QPDF_Stream::getStreamJSON in terms of writeStreamJSONm-holger
writeStreamJSON is a temporary implementation minimally adapted from getStreamJSON.
2024-02-16Reimplement QPDFObjectHandle::getJSON in terms of writeJSONm-holger
2024-02-16Add new method QPDF_Name::analyzeJSONEncodingm-holger
Provide a custom method to check whether a name is valid utf8. Integrate checking for characters that need to be escaped in JSON.
2024-02-16Add new writeJSON methodsm-holger
Create an alternative to getJSON to allow an object handle to be written as JSON without the overhead of creating a JSON object.
2024-02-16Add new private class JSON::Writerm-holger
Create a simple utility class for writing JSON to a pipeline.
2024-02-11Fix previous fix to setting checkbox value (fixes #1056)Jay Berkenbilt
The code accepted values other than /Yes but still used /Yes as the checked value instead of obeying the normal appearance dictionary.
2024-02-06Detect end of input inside an unfinished JSON stringJay Berkenbilt
2024-02-06Detect JSON object whose value is an indirect objectJay Berkenbilt
2024-02-04Fix JSON parser error found by fuzzJay Berkenbilt
2024-02-04Handle parse error stream data (fixes #1123)Jay Berkenbilt
A parse error in stream data in which stream data contained a nested object would cause a crash because qpdf was not correctly updating its internal state. Rework the QPDF json reactor to not be sensitive to parse errors in this way.
2024-02-04Format codeJay Berkenbilt
2024-02-03Merge pull request #1138 from m-holger/j_keyJay Berkenbilt
Allow "n:/pdf-syntax" JSON syntax for dictionary keys
2024-02-03Merge branch 'fz' of github.com:m-holger/qpdf into fzJay Berkenbilt
2024-01-29Allow "n:/pdf-syntax" JSON syntax for dictionary keysm-holger
2024-01-27In Pl_TIFFPredictor::processRow buffer outputm-holger
2024-01-27In Pl_TIFFPredictor::processRow optimize 8 bits_per_sample casem-holger
2024-01-26In Pl_TIFFPredictor::processRow remove special case for first columnm-holger
2024-01-26In Pl_TIFFPredictor::processRow avoid repeated vector allocationm-holger
Also, modernize for loop.
2024-01-26In Pl_TIFFPredictor avoid repeated calls to getNextm-holger
2024-01-26Simplify address arithmetic in Pl_TIFFPredictorm-holger
2024-01-26In Pl_TIFFPredictor remove calls to memcpym-holger
Instead of overwriting cur_row.data() use clear and insert.
2024-01-26Change Pl_TIFFPredictor::cur_row to std::vector<unsigned char>m-holger
2024-01-20Merge pull request #1128 from m-holger/reconstructJay Berkenbilt
Tighten checks for invalid indirect references during xref reconstru…
2024-01-18Handle default-constructed JSON objectsm-holger
2024-01-17Tighten checks for invalid indirect references during xref reconstructionm-holger
2024-01-17Tighten checks for invalid indirect references in QPDFParserm-holger
2024-01-17Fix incorrect handling of invalid negative object idsm-holger
Fix two errors introduced in #1110 and #1112. Since #1110, encountering the invalid indirect reference #1110 -2147483648 n R produces an integer underflow which, if undetected, immediately trigger a logic error. Since #1112, object -1 0 R may be incorrectly identified as an earlier generation of itself and deleted, invalidating a live iterator.
2024-01-15Remove extraneous blank linesJay Berkenbilt
2024-01-15Tweak Handlers::json_handlersm-holger
Use std::vector instead of list and move shared pointers
2024-01-15Tweak Handlers::beginUnderOverlay and beginPagesm-holger
2024-01-15Add new method JSON::getDictItemm-holger
2024-01-12Fix null pointer issue on array copyJay Berkenbilt
2024-01-11Include filename in verbose output for overlay/underlayJay Berkenbilt
2024-01-11Honor repeated overlay/underlayJay Berkenbilt
2024-01-11Allow repetition of overlay/underlayJay Berkenbilt
This is just QPDFJob wiring.
2024-01-11QPDFJob JSON: allow single item in place of arrayJay Berkenbilt
2024-01-11JSONHandler: add fallback handler supportJay Berkenbilt
2024-01-10Handle pages/under/overlay JSON file in beginJay Berkenbilt
...since they have to be handled before other options. It was working because, in both cases, `file` was alphabetically before the other keys, but this implementation gives a stronger guarantee.
2024-01-10Allow --file with --overlay and --underlayJay Berkenbilt
2024-01-10Allow --file and --range with --pagesJay Berkenbilt
Accept --file and --range as named parameters in additional to allowing positional arguments. This is in preparation for adding additional flags.