2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-05-29 00:10:54 +00:00
qpdf/libqpdf
Jay Berkenbilt dc9b7287cd Top-level json: write incrementally
This commit just changes the order in which fields are written to the
json without changing their content. All the json files in the test
suite were modified with this script to ensure that we didn't get any
changes other than ordering.

----------
#!/usr/bin/env python3
import json
import sys

def json_dumps(data):
    return json.dumps(data, ensure_ascii=False,
                      indent=2, separators=(',', ': '))

for filename in sys.argv[1:]:
    with open(filename, 'r') as f:
        data = json.loads(f.read())
    newdata = {}
    for i in ('version', 'parameters', 'pages', 'pagelabels',
              'acroform', 'attachments', 'encrypt', 'outlines',
              'objects', 'objectinfo'):
        if i in data:
            newdata[i] = data[i]
print(json_dumps(newdata))
----------
2022-05-07 08:26:31 -04:00
..
qpdf Add --test-json-schema command-line option 2022-05-07 08:26:31 -04:00
sph Remove accidentally committed file 2022-04-09 14:37:00 -04:00
AES_PDF_native.cc Remove remaining incorrect assert calls from implementation 2022-05-03 18:31:22 -04:00
BitStream.cc Update some code manually to get better formatting results 2022-04-05 14:56:19 -04:00
BitWriter.cc Programmatically apply new formatting to code 2022-04-04 08:10:40 -04:00
Buffer.cc Replace PointerHolder with std::shared_ptr in library sources only 2022-04-09 17:33:29 -04:00
BufferInputSource.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
ClosedFileInputSource.cc Add new FileInputSource constructors 2022-05-04 12:07:11 -04:00
CMakeLists.txt Add new Pl_String Pipeline 2022-05-03 18:54:51 -04:00
ContentNormalizer.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
CryptoRandomDataProvider.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
FileInputSource.cc Add new FileInputSource constructors 2022-05-04 12:07:11 -04:00
InputSource.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
InsecureRandomDataProvider.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
JSON.cc Add next to Pl_String and fix comments 2022-05-07 08:26:31 -04:00
JSONHandler.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
MD5_native.cc Exclude formatting on embedded native crypto 2022-04-03 17:58:36 -04:00
MD5.cc Programmatically apply new formatting to code 2022-04-04 08:10:40 -04:00
NNTree.cc Formatting: remove space in range-style for loops 2022-04-30 13:26:43 -04:00
OffsetInputSource.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
PDFVersion.cc Programmatically apply new formatting to code 2022-04-04 08:10:40 -04:00
Pipeline.cc Add new Pipeline convenience methods 2022-05-03 18:31:22 -04:00
Pl_AES_PDF.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
Pl_ASCII85Decoder.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
Pl_ASCIIHexDecoder.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
Pl_Base64.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
Pl_Buffer.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
Pl_Concatenate.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
Pl_Count.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
Pl_DCT.cc Make use of the new Pipeline methods in some places 2022-05-03 18:31:23 -04:00
Pl_Discard.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
Pl_Flate.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
Pl_LZWDecoder.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
Pl_MD5.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
Pl_OStream.cc Add new Pl_OStream Pipeline 2022-05-03 18:54:51 -04:00
Pl_PNGFilter.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
Pl_QPDFTokenizer.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
Pl_RC4.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
Pl_RunLength.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
Pl_SHA2.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
Pl_StdioFile.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
Pl_String.cc Add next to Pl_String and fix comments 2022-05-07 08:26:31 -04:00
Pl_TIFFPredictor.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
QPDF_Array.cc Code clean up: use range-style for loops wherever possible 2022-04-30 13:27:18 -04:00
QPDF_Bool.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
QPDF_Dictionary.cc Code clean up: use range-style for loops wherever possible 2022-04-30 13:27:18 -04:00
QPDF_encryption.cc Make use of the new Pipeline methods in some places 2022-05-03 18:31:23 -04:00
QPDF_InlineImage.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
QPDF_Integer.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
QPDF_linearization.cc Remove remaining incorrect assert calls from implementation 2022-05-03 18:31:22 -04:00
QPDF_Name.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
QPDF_Null.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
QPDF_Operator.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
QPDF_optimization.cc Make assert handling less error-prone 2022-05-03 18:31:22 -04:00
QPDF_pages.cc Remove remaining incorrect assert calls from implementation 2022-05-03 18:31:22 -04:00
QPDF_Real.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
QPDF_Reserved.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
QPDF_Stream.cc Formatting: remove space in range-style for loops 2022-04-30 13:26:43 -04:00
QPDF_String.cc Expose QUtil::get_next_utf8_codepoint 2022-04-23 18:25:43 -04:00
qpdf-c.cc Mark weak encryption with API changes (fixes #576) 2022-04-30 17:24:15 -04:00
QPDF.cc Add new FileInputSource constructors 2022-05-04 12:07:11 -04:00
QPDFAcroFormDocumentHelper.cc Code clean up: use range-style for loops wherever possible 2022-04-30 13:27:18 -04:00
QPDFAnnotationObjectHelper.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
QPDFArgParser.cc Code clean up: use range-style for loops wherever possible 2022-04-30 13:27:18 -04:00
QPDFCrypto_gnutls.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
QPDFCrypto_native.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
QPDFCrypto_openssl.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
QPDFCryptoProvider.cc Formatting: remove space in range-style for loops 2022-04-30 13:26:43 -04:00
QPDFEFStreamObjectHelper.cc Add comments around non-security-related uses of MD5 2022-04-30 14:15:07 -04:00
QPDFEmbeddedFileDocumentHelper.cc Formatting: remove space in range-style for loops 2022-04-30 13:26:43 -04:00
QPDFExc.cc Programmatically apply new formatting to code 2022-04-04 08:10:40 -04:00
QPDFFileSpecObjectHelper.cc Formatting: remove space in range-style for loops 2022-04-30 13:26:43 -04:00
QPDFFormFieldObjectHelper.cc Make use of the new Pipeline methods in some places 2022-05-03 18:31:23 -04:00
QPDFJob_argv.cc Formatting: remove space in range-style for loops 2022-04-30 13:26:43 -04:00
QPDFJob_config.cc Add --test-json-schema command-line option 2022-05-07 08:26:31 -04:00
QPDFJob_json.cc Formatting: remove space in range-style for loops 2022-04-30 13:26:43 -04:00
qpdfjob-c.cc Programmatically apply new formatting to code 2022-04-04 08:10:40 -04:00
QPDFJob.cc Top-level json: write incrementally 2022-05-07 08:26:31 -04:00
QPDFMatrix.cc Make ABI-breaking changes that don't modify API at all 2022-04-16 10:41:46 -04:00
QPDFNameTreeObjectHelper.cc Use anonymous namespaces for file-private classes 2022-04-16 13:35:27 -04:00
QPDFNumberTreeObjectHelper.cc Use anonymous namespaces for file-private classes 2022-04-16 13:35:27 -04:00
QPDFObject.cc Performance: remove indirection through Members for QPDFObject 2020-04-03 12:16:24 -04:00
QPDFObjectHandle.cc Make use of the new Pipeline methods in some places 2022-05-03 18:31:23 -04:00
QPDFObjGen.cc Programmatically apply new formatting to code 2022-04-04 08:10:40 -04:00
QPDFOutlineDocumentHelper.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
QPDFOutlineObjectHelper.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
QPDFPageDocumentHelper.cc Code clean up: use range-style for loops wherever possible 2022-04-30 13:27:18 -04:00
QPDFPageLabelDocumentHelper.cc Use fluent replaceKey 2022-04-29 20:39:54 -04:00
QPDFPageObjectHelper.cc Make use of the new Pipeline methods in some places 2022-05-03 18:31:23 -04:00
QPDFStreamFilter.cc Implement user-provided stream filters 2020-12-28 12:58:19 -05:00
QPDFSystemError.cc Use = default and = delete where possible in classes 2022-04-16 11:39:14 -04:00
QPDFTokenizer.cc Code clean up: use range-style for loops wherever possible 2022-04-30 13:27:18 -04:00
QPDFUsage.cc Use QPDFUsage exception for cli, json, and QPDFJob errors 2022-01-30 13:11:03 -05:00
QPDFWriter.cc Make use of the new Pipeline methods in some places 2022-05-03 18:31:23 -04:00
QPDFXRefEntry.cc Programmatically apply new formatting to code 2022-04-04 08:10:40 -04:00
QTC.cc Programmatically apply new formatting to code 2022-04-04 08:10:40 -04:00
QUtil.cc Code clean up: use range-style for loops wherever possible 2022-04-30 13:27:18 -04:00
RC4_native.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
RC4.cc Make Pipeline::write take an unsigned char const* (API change) 2022-05-03 18:31:22 -04:00
ResourceFinder.cc Programmatically apply new formatting to code 2022-04-04 08:10:40 -04:00
rijndael.cc Exclude formatting on embedded native crypto 2022-04-03 17:58:36 -04:00
SecureRandomDataProvider.cc Use anonymous namespaces for file-private classes 2022-04-16 13:35:27 -04:00
SF_FlateLzwDecode.cc Formatting: remove space in range-style for loops 2022-04-30 13:26:43 -04:00
SHA2_native.cc Remove PointerHolder.hh from other than public header files 2022-04-09 17:33:29 -04:00
sha2.c Exclude formatting on embedded native crypto 2022-04-03 17:58:36 -04:00
sha2big.c Exclude formatting on embedded native crypto 2022-04-03 17:58:36 -04:00
SparseOHArray.cc Formatting: remove space in range-style for loops 2022-04-30 13:26:43 -04:00