2018-12-23 16:21:37 +00:00
|
|
|
|
{
|
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-06 22:25:59 +00:00
|
|
|
|
"version": 1,
|
|
|
|
|
"parameters": {
|
|
|
|
|
"decodelevel": "generalized"
|
2020-01-26 19:38:56 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"pages": [
|
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"38 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/r",
|
|
|
|
|
"/St": 1
|
|
|
|
|
},
|
|
|
|
|
"object": "6 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 1
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"42 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/r",
|
|
|
|
|
"/St": 2
|
|
|
|
|
},
|
|
|
|
|
"object": "7 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 2
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"44 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/P": "blank",
|
|
|
|
|
"/St": 1
|
|
|
|
|
},
|
|
|
|
|
"object": "8 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 3
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"46 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/P": "X-",
|
|
|
|
|
"/S": "/A",
|
|
|
|
|
"/St": 17
|
|
|
|
|
},
|
|
|
|
|
"object": "9 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 4
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"48 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/P": "X-",
|
|
|
|
|
"/S": "/A",
|
|
|
|
|
"/St": 18
|
|
|
|
|
},
|
|
|
|
|
"object": "10 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 5
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"50 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/P": "",
|
|
|
|
|
"/St": 1
|
|
|
|
|
},
|
|
|
|
|
"object": "11 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 6
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"52 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/R",
|
|
|
|
|
"/St": 3
|
|
|
|
|
},
|
|
|
|
|
"object": "12 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 7
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"54 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/R",
|
|
|
|
|
"/St": 4
|
|
|
|
|
},
|
|
|
|
|
"object": "13 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 8
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"56 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/R",
|
|
|
|
|
"/St": 5
|
|
|
|
|
},
|
|
|
|
|
"object": "14 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 9
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"58 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/D",
|
|
|
|
|
"/St": 1
|
|
|
|
|
},
|
|
|
|
|
"object": "15 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 10
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"60 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/D",
|
|
|
|
|
"/St": 2
|
|
|
|
|
},
|
|
|
|
|
"object": "16 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 11
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"62 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/a",
|
|
|
|
|
"/St": 1
|
|
|
|
|
},
|
|
|
|
|
"object": "17 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 12
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"64 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/a",
|
|
|
|
|
"/St": 3
|
|
|
|
|
},
|
|
|
|
|
"object": "18 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 13
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"66 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/a",
|
|
|
|
|
"/St": 4
|
|
|
|
|
},
|
|
|
|
|
"object": "19 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 14
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"68 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/a",
|
|
|
|
|
"/St": 5
|
|
|
|
|
},
|
|
|
|
|
"object": "20 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 15
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"70 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/P": "q.",
|
|
|
|
|
"/S": "/D",
|
|
|
|
|
"/St": 6
|
|
|
|
|
},
|
|
|
|
|
"object": "21 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 16
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"72 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/P": "q.",
|
|
|
|
|
"/S": "/D",
|
|
|
|
|
"/St": 7
|
|
|
|
|
},
|
|
|
|
|
"object": "22 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 17
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"74 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/P": "q.",
|
|
|
|
|
"/S": "/D",
|
|
|
|
|
"/St": 8
|
|
|
|
|
},
|
|
|
|
|
"object": "23 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 18
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"76 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/P": "q.",
|
|
|
|
|
"/S": "/D",
|
|
|
|
|
"/St": 9
|
|
|
|
|
},
|
|
|
|
|
"object": "24 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 19
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"78 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/P": "www",
|
|
|
|
|
"/St": 1
|
|
|
|
|
},
|
|
|
|
|
"object": "25 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 20
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"80 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/D",
|
|
|
|
|
"/St": 12
|
|
|
|
|
},
|
|
|
|
|
"object": "26 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 21
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"82 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/D",
|
|
|
|
|
"/St": 13
|
|
|
|
|
},
|
|
|
|
|
"object": "27 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 22
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"84 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/D",
|
|
|
|
|
"/St": 16059
|
|
|
|
|
},
|
|
|
|
|
"object": "28 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 23
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"86 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/R",
|
|
|
|
|
"/St": 50
|
|
|
|
|
},
|
|
|
|
|
"object": "29 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 24
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"88 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/R",
|
|
|
|
|
"/St": 51
|
|
|
|
|
},
|
|
|
|
|
"object": "30 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 25
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"90 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/R",
|
|
|
|
|
"/St": 52
|
|
|
|
|
},
|
|
|
|
|
"object": "31 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 26
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"92 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/R",
|
|
|
|
|
"/St": 53
|
|
|
|
|
},
|
|
|
|
|
"object": "32 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 27
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"94 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/R",
|
|
|
|
|
"/St": 54
|
|
|
|
|
},
|
|
|
|
|
"object": "33 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 28
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"96 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/R",
|
|
|
|
|
"/St": 55
|
|
|
|
|
},
|
|
|
|
|
"object": "34 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 29
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"contents": [
|
|
|
|
|
"98 0 R"
|
|
|
|
|
],
|
|
|
|
|
"images": [],
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/r",
|
|
|
|
|
"/St": 54
|
|
|
|
|
},
|
|
|
|
|
"object": "35 0 R",
|
|
|
|
|
"outlines": [],
|
|
|
|
|
"pageposfrom1": 30
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"pagelabels": [
|
|
|
|
|
{
|
|
|
|
|
"index": 0,
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/r",
|
|
|
|
|
"/St": 1
|
2020-04-04 21:59:53 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"index": 2,
|
|
|
|
|
"label": {
|
|
|
|
|
"/P": "blank",
|
|
|
|
|
"/St": 1
|
2020-04-04 21:59:53 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"index": 3,
|
|
|
|
|
"label": {
|
|
|
|
|
"/P": "X-",
|
|
|
|
|
"/S": "/A",
|
|
|
|
|
"/St": 17
|
2020-04-04 21:59:53 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"index": 5,
|
|
|
|
|
"label": {
|
|
|
|
|
"/P": "",
|
|
|
|
|
"/St": 1
|
2020-04-04 21:59:53 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"index": 6,
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/R",
|
|
|
|
|
"/St": 3
|
2020-04-04 21:59:53 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"index": 9,
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/D",
|
|
|
|
|
"/St": 1
|
2020-04-04 21:59:53 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"index": 11,
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/a",
|
|
|
|
|
"/St": 1
|
2020-04-04 21:59:53 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"index": 12,
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/a",
|
|
|
|
|
"/St": 3
|
2020-04-04 21:59:53 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"index": 15,
|
|
|
|
|
"label": {
|
|
|
|
|
"/P": "q.",
|
|
|
|
|
"/S": "/D",
|
|
|
|
|
"/St": 6
|
2020-04-04 21:59:53 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"index": 19,
|
|
|
|
|
"label": {
|
|
|
|
|
"/P": "www",
|
|
|
|
|
"/St": 1
|
2020-04-04 21:59:53 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"index": 20,
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/D",
|
|
|
|
|
"/St": 12
|
2020-04-04 21:59:53 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"index": 22,
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/D",
|
|
|
|
|
"/St": 16059
|
2020-04-04 21:59:53 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"index": 23,
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/R",
|
|
|
|
|
"/St": 50
|
2020-04-04 21:59:53 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
{
|
|
|
|
|
"index": 29,
|
|
|
|
|
"label": {
|
|
|
|
|
"/S": "/r",
|
|
|
|
|
"/St": 54
|
2020-04-04 21:59:53 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
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-06 22:25:59 +00:00
|
|
|
|
],
|
|
|
|
|
"acroform": {
|
|
|
|
|
"fields": [],
|
|
|
|
|
"hasacroform": false,
|
|
|
|
|
"needappearances": false
|
|
|
|
|
},
|
|
|
|
|
"attachments": {},
|
|
|
|
|
"encrypt": {
|
|
|
|
|
"capabilities": {
|
|
|
|
|
"accessibility": true,
|
|
|
|
|
"extract": true,
|
|
|
|
|
"moddifyannotations": true,
|
|
|
|
|
"modify": true,
|
|
|
|
|
"modifyassembly": true,
|
|
|
|
|
"modifyforms": true,
|
|
|
|
|
"modifyother": true,
|
|
|
|
|
"printhigh": true,
|
|
|
|
|
"printlow": true
|
|
|
|
|
},
|
|
|
|
|
"encrypted": false,
|
|
|
|
|
"ownerpasswordmatched": false,
|
|
|
|
|
"parameters": {
|
|
|
|
|
"P": 0,
|
|
|
|
|
"R": 0,
|
|
|
|
|
"V": 0,
|
|
|
|
|
"bits": 0,
|
|
|
|
|
"filemethod": "none",
|
|
|
|
|
"key": null,
|
|
|
|
|
"method": "none",
|
|
|
|
|
"streammethod": "none",
|
|
|
|
|
"stringmethod": "none"
|
|
|
|
|
},
|
2022-05-30 14:55:07 +00:00
|
|
|
|
"recovereduserpassword": null,
|
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-06 22:25:59 +00:00
|
|
|
|
"userpasswordmatched": false
|
2020-04-04 21:59:53 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"outlines": [],
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"objects": {
|
|
|
|
|
"1 0 R": {
|
|
|
|
|
"/PageLabels": "2 0 R",
|
|
|
|
|
"/Pages": "3 0 R",
|
|
|
|
|
"/Type": "/Catalog"
|
|
|
|
|
},
|
Objects json: write incrementally and in numeric order
The following script was used to adjust test data:
----------
#!/usr/bin/env python3
import json
import sys
import re
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())
if 'objects' not in data:
continue
trailer = None
to_sort = []
for k, v in data['objects'].items():
if k == 'trailer':
trailer = v
else:
m = re.match(r'^(\d+) \d+ R', k)
if m:
to_sort.append([int(m.group(1)), k, v])
newobjects = {x[1]: x[2] for x in sorted(to_sort)}
if trailer is not None:
newobjects['trailer'] = trailer
data['objects'] = newobjects
print(json_dumps(data))
----------
2022-05-06 23:04:20 +00:00
|
|
|
|
"2 0 R": {
|
|
|
|
|
"/Kids": [
|
|
|
|
|
"4 0 R",
|
|
|
|
|
"5 0 R"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"3 0 R": {
|
|
|
|
|
"/Count": 30,
|
|
|
|
|
"/Kids": [
|
|
|
|
|
"6 0 R",
|
|
|
|
|
"7 0 R",
|
|
|
|
|
"8 0 R",
|
|
|
|
|
"9 0 R",
|
|
|
|
|
"10 0 R",
|
|
|
|
|
"11 0 R",
|
|
|
|
|
"12 0 R",
|
|
|
|
|
"13 0 R",
|
|
|
|
|
"14 0 R",
|
|
|
|
|
"15 0 R",
|
|
|
|
|
"16 0 R",
|
|
|
|
|
"17 0 R",
|
|
|
|
|
"18 0 R",
|
|
|
|
|
"19 0 R",
|
|
|
|
|
"20 0 R",
|
|
|
|
|
"21 0 R",
|
|
|
|
|
"22 0 R",
|
|
|
|
|
"23 0 R",
|
|
|
|
|
"24 0 R",
|
|
|
|
|
"25 0 R",
|
|
|
|
|
"26 0 R",
|
|
|
|
|
"27 0 R",
|
|
|
|
|
"28 0 R",
|
|
|
|
|
"29 0 R",
|
|
|
|
|
"30 0 R",
|
|
|
|
|
"31 0 R",
|
|
|
|
|
"32 0 R",
|
|
|
|
|
"33 0 R",
|
|
|
|
|
"34 0 R",
|
|
|
|
|
"35 0 R"
|
|
|
|
|
],
|
|
|
|
|
"/Type": "/Pages"
|
|
|
|
|
},
|
|
|
|
|
"4 0 R": {
|
|
|
|
|
"/Kids": [
|
|
|
|
|
"36 0 R",
|
|
|
|
|
"37 0 R"
|
|
|
|
|
],
|
|
|
|
|
"/Limits": [
|
|
|
|
|
0,
|
|
|
|
|
19
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"5 0 R": {
|
|
|
|
|
"/Limits": [
|
|
|
|
|
20,
|
|
|
|
|
29
|
|
|
|
|
],
|
|
|
|
|
"/Nums": [
|
|
|
|
|
20,
|
|
|
|
|
{
|
|
|
|
|
"/S": "/D",
|
|
|
|
|
"/St": 12
|
|
|
|
|
},
|
|
|
|
|
22,
|
|
|
|
|
{
|
|
|
|
|
"/S": "/D",
|
|
|
|
|
"/St": 16059
|
|
|
|
|
},
|
|
|
|
|
23,
|
|
|
|
|
{
|
|
|
|
|
"/S": "/R",
|
|
|
|
|
"/St": 50
|
|
|
|
|
},
|
|
|
|
|
29,
|
|
|
|
|
{
|
|
|
|
|
"/S": "/r",
|
|
|
|
|
"/St": 54
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"6 0 R": {
|
|
|
|
|
"/Contents": "38 0 R",
|
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
|
|
|
|
"7 0 R": {
|
|
|
|
|
"/Contents": "42 0 R",
|
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
|
|
|
|
"8 0 R": {
|
|
|
|
|
"/Contents": "44 0 R",
|
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
|
|
|
|
"9 0 R": {
|
|
|
|
|
"/Contents": "46 0 R",
|
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"10 0 R": {
|
|
|
|
|
"/Contents": "48 0 R",
|
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"11 0 R": {
|
|
|
|
|
"/Contents": "50 0 R",
|
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
|
|
|
|
"12 0 R": {
|
|
|
|
|
"/Contents": "52 0 R",
|
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
|
|
|
|
"13 0 R": {
|
|
|
|
|
"/Contents": "54 0 R",
|
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
|
|
|
|
"14 0 R": {
|
|
|
|
|
"/Contents": "56 0 R",
|
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
|
|
|
|
"15 0 R": {
|
|
|
|
|
"/Contents": "58 0 R",
|
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
|
|
|
|
"16 0 R": {
|
|
|
|
|
"/Contents": "60 0 R",
|
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
|
|
|
|
"17 0 R": {
|
|
|
|
|
"/Contents": "62 0 R",
|
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
|
|
|
|
"18 0 R": {
|
|
|
|
|
"/Contents": "64 0 R",
|
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
|
|
|
|
"19 0 R": {
|
|
|
|
|
"/Contents": "66 0 R",
|
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
|
|
|
|
"20 0 R": {
|
|
|
|
|
"/Contents": "68 0 R",
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"21 0 R": {
|
|
|
|
|
"/Contents": "70 0 R",
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"22 0 R": {
|
|
|
|
|
"/Contents": "72 0 R",
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"23 0 R": {
|
|
|
|
|
"/Contents": "74 0 R",
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"24 0 R": {
|
|
|
|
|
"/Contents": "76 0 R",
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"25 0 R": {
|
|
|
|
|
"/Contents": "78 0 R",
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"26 0 R": {
|
|
|
|
|
"/Contents": "80 0 R",
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"27 0 R": {
|
|
|
|
|
"/Contents": "82 0 R",
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"28 0 R": {
|
|
|
|
|
"/Contents": "84 0 R",
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"29 0 R": {
|
|
|
|
|
"/Contents": "86 0 R",
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"30 0 R": {
|
|
|
|
|
"/Contents": "88 0 R",
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"31 0 R": {
|
|
|
|
|
"/Contents": "90 0 R",
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"32 0 R": {
|
|
|
|
|
"/Contents": "92 0 R",
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"33 0 R": {
|
|
|
|
|
"/Contents": "94 0 R",
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"34 0 R": {
|
|
|
|
|
"/Contents": "96 0 R",
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"35 0 R": {
|
|
|
|
|
"/Contents": "98 0 R",
|
2018-12-23 16:21:37 +00:00
|
|
|
|
"/MediaBox": [
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
612,
|
|
|
|
|
792
|
|
|
|
|
],
|
|
|
|
|
"/Parent": "3 0 R",
|
|
|
|
|
"/Resources": {
|
|
|
|
|
"/Font": {
|
|
|
|
|
"/F1": "40 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/ProcSet": "41 0 R"
|
|
|
|
|
},
|
|
|
|
|
"/Type": "/Page"
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"36 0 R": {
|
|
|
|
|
"/Limits": [
|
|
|
|
|
0,
|
|
|
|
|
9
|
|
|
|
|
],
|
|
|
|
|
"/Nums": [
|
|
|
|
|
0,
|
|
|
|
|
{
|
|
|
|
|
"/S": "/r"
|
|
|
|
|
},
|
|
|
|
|
2,
|
|
|
|
|
{
|
|
|
|
|
"/P": "blank"
|
|
|
|
|
},
|
|
|
|
|
3,
|
|
|
|
|
{
|
|
|
|
|
"/P": "X-",
|
|
|
|
|
"/S": "/A",
|
|
|
|
|
"/St": 17
|
|
|
|
|
},
|
|
|
|
|
5,
|
|
|
|
|
{
|
|
|
|
|
"/P": ""
|
|
|
|
|
},
|
|
|
|
|
6,
|
|
|
|
|
{
|
|
|
|
|
"/S": "/R",
|
|
|
|
|
"/St": 3
|
|
|
|
|
},
|
|
|
|
|
9,
|
|
|
|
|
{
|
|
|
|
|
"/S": "/D"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"37 0 R": {
|
|
|
|
|
"/Limits": [
|
|
|
|
|
11,
|
|
|
|
|
19
|
|
|
|
|
],
|
|
|
|
|
"/Nums": [
|
|
|
|
|
11,
|
|
|
|
|
{
|
|
|
|
|
"/S": "/a"
|
|
|
|
|
},
|
|
|
|
|
12,
|
|
|
|
|
{
|
|
|
|
|
"/S": "/a",
|
|
|
|
|
"/St": 3
|
|
|
|
|
},
|
|
|
|
|
15,
|
|
|
|
|
{
|
|
|
|
|
"/P": "q.",
|
|
|
|
|
"/S": "/D",
|
|
|
|
|
"/St": 6
|
|
|
|
|
},
|
|
|
|
|
19,
|
|
|
|
|
{
|
|
|
|
|
"/P": "www"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"38 0 R": {
|
|
|
|
|
"/Length": "39 0 R"
|
|
|
|
|
},
|
|
|
|
|
"39 0 R": 46,
|
|
|
|
|
"40 0 R": {
|
|
|
|
|
"/BaseFont": "/Helvetica",
|
|
|
|
|
"/Encoding": "/WinAnsiEncoding",
|
|
|
|
|
"/Name": "/F1",
|
|
|
|
|
"/Subtype": "/Type1",
|
|
|
|
|
"/Type": "/Font"
|
|
|
|
|
},
|
|
|
|
|
"41 0 R": [
|
|
|
|
|
"/PDF",
|
|
|
|
|
"/Text"
|
|
|
|
|
],
|
|
|
|
|
"42 0 R": {
|
|
|
|
|
"/Length": "43 0 R"
|
|
|
|
|
},
|
|
|
|
|
"43 0 R": 46,
|
|
|
|
|
"44 0 R": {
|
|
|
|
|
"/Length": "45 0 R"
|
|
|
|
|
},
|
|
|
|
|
"45 0 R": 46,
|
|
|
|
|
"46 0 R": {
|
|
|
|
|
"/Length": "47 0 R"
|
|
|
|
|
},
|
|
|
|
|
"47 0 R": 46,
|
|
|
|
|
"48 0 R": {
|
|
|
|
|
"/Length": "49 0 R"
|
|
|
|
|
},
|
|
|
|
|
"49 0 R": 46,
|
|
|
|
|
"50 0 R": {
|
|
|
|
|
"/Length": "51 0 R"
|
|
|
|
|
},
|
|
|
|
|
"51 0 R": 46,
|
|
|
|
|
"52 0 R": {
|
|
|
|
|
"/Length": "53 0 R"
|
|
|
|
|
},
|
|
|
|
|
"53 0 R": 46,
|
|
|
|
|
"54 0 R": {
|
|
|
|
|
"/Length": "55 0 R"
|
|
|
|
|
},
|
|
|
|
|
"55 0 R": 46,
|
|
|
|
|
"56 0 R": {
|
|
|
|
|
"/Length": "57 0 R"
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"57 0 R": 46,
|
|
|
|
|
"58 0 R": {
|
|
|
|
|
"/Length": "59 0 R"
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"59 0 R": 46,
|
|
|
|
|
"60 0 R": {
|
|
|
|
|
"/Length": "61 0 R"
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"61 0 R": 47,
|
|
|
|
|
"62 0 R": {
|
|
|
|
|
"/Length": "63 0 R"
|
|
|
|
|
},
|
|
|
|
|
"63 0 R": 47,
|
|
|
|
|
"64 0 R": {
|
|
|
|
|
"/Length": "65 0 R"
|
|
|
|
|
},
|
|
|
|
|
"65 0 R": 47,
|
|
|
|
|
"66 0 R": {
|
|
|
|
|
"/Length": "67 0 R"
|
|
|
|
|
},
|
|
|
|
|
"67 0 R": 47,
|
|
|
|
|
"68 0 R": {
|
|
|
|
|
"/Length": "69 0 R"
|
|
|
|
|
},
|
|
|
|
|
"69 0 R": 47,
|
|
|
|
|
"70 0 R": {
|
|
|
|
|
"/Length": "71 0 R"
|
|
|
|
|
},
|
|
|
|
|
"71 0 R": 47,
|
|
|
|
|
"72 0 R": {
|
|
|
|
|
"/Length": "73 0 R"
|
|
|
|
|
},
|
|
|
|
|
"73 0 R": 47,
|
|
|
|
|
"74 0 R": {
|
|
|
|
|
"/Length": "75 0 R"
|
|
|
|
|
},
|
|
|
|
|
"75 0 R": 47,
|
|
|
|
|
"76 0 R": {
|
|
|
|
|
"/Length": "77 0 R"
|
|
|
|
|
},
|
|
|
|
|
"77 0 R": 47,
|
|
|
|
|
"78 0 R": {
|
|
|
|
|
"/Length": "79 0 R"
|
|
|
|
|
},
|
|
|
|
|
"79 0 R": 47,
|
|
|
|
|
"80 0 R": {
|
|
|
|
|
"/Length": "81 0 R"
|
|
|
|
|
},
|
|
|
|
|
"81 0 R": 47,
|
|
|
|
|
"82 0 R": {
|
|
|
|
|
"/Length": "83 0 R"
|
|
|
|
|
},
|
|
|
|
|
"83 0 R": 47,
|
|
|
|
|
"84 0 R": {
|
|
|
|
|
"/Length": "85 0 R"
|
|
|
|
|
},
|
|
|
|
|
"85 0 R": 47,
|
|
|
|
|
"86 0 R": {
|
|
|
|
|
"/Length": "87 0 R"
|
|
|
|
|
},
|
|
|
|
|
"87 0 R": 47,
|
|
|
|
|
"88 0 R": {
|
|
|
|
|
"/Length": "89 0 R"
|
|
|
|
|
},
|
|
|
|
|
"89 0 R": 47,
|
|
|
|
|
"90 0 R": {
|
|
|
|
|
"/Length": "91 0 R"
|
|
|
|
|
},
|
|
|
|
|
"91 0 R": 47,
|
|
|
|
|
"92 0 R": {
|
|
|
|
|
"/Length": "93 0 R"
|
|
|
|
|
},
|
|
|
|
|
"93 0 R": 47,
|
|
|
|
|
"94 0 R": {
|
|
|
|
|
"/Length": "95 0 R"
|
|
|
|
|
},
|
|
|
|
|
"95 0 R": 47,
|
|
|
|
|
"96 0 R": {
|
|
|
|
|
"/Length": "97 0 R"
|
|
|
|
|
},
|
|
|
|
|
"97 0 R": 47,
|
|
|
|
|
"98 0 R": {
|
|
|
|
|
"/Length": "99 0 R"
|
|
|
|
|
},
|
|
|
|
|
"99 0 R": 47,
|
|
|
|
|
"trailer": {
|
|
|
|
|
"/ID": [
|
|
|
|
|
"’ùˇÞxtó¼\\·¯½˚Ł7»",
|
|
|
|
|
"\rþ˘©LÞ\u000fKýÈl\u0003¯ˇ\u0001\u000e"
|
2018-12-23 16:21:37 +00:00
|
|
|
|
],
|
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-06 22:25:59 +00:00
|
|
|
|
"/Root": "1 0 R",
|
|
|
|
|
"/Size": 100
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"objectinfo": {
|
|
|
|
|
"1 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
Objectinfo json: write incrementally and in numeric order
This script was used on test data:
----------
#!/usr/bin/env python3
import json
import sys
import re
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())
if 'objectinfo' not in data:
continue
trailer = None
to_sort = []
for k, v in data['objectinfo'].items():
if k == 'trailer':
trailer = v
else:
m = re.match(r'^(\d+) \d+ R', k)
if m:
to_sort.append([int(m.group(1)), k, v])
newobjectinfo = {x[1]: x[2] for x in sorted(to_sort)}
if trailer is not None:
newobjectinfo['trailer'] = trailer
data['objectinfo'] = newobjectinfo
print(json_dumps(data))
----------
2022-05-06 23:08:31 +00:00
|
|
|
|
"2 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"3 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"4 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"5 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"6 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"7 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"8 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"9 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"10 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"11 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"12 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"13 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"14 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"15 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"16 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"17 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"18 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"19 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"20 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"21 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"22 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"23 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"24 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"25 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"26 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"27 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"28 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"29 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"30 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"31 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"32 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"33 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"34 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"35 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"36 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"37 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"38 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 46
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"39 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"40 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"41 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"42 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 46
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"43 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"44 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 46
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"45 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"46 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 46
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"47 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"48 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 46
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"49 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"50 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 46
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"51 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"52 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 46
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"53 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"54 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 46
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"55 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"56 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 46
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"57 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"58 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 46
|
2018-12-23 16:21:37 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"59 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
2018-12-23 16:21:37 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"60 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
2018-12-23 16:21:37 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"61 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
2018-12-23 16:21:37 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"62 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
2018-12-23 16:21:37 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"63 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
2018-12-23 16:21:37 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"64 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
2018-12-23 16:21:37 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"65 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
2018-12-23 16:21:37 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"66 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
2018-12-23 16:21:37 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"67 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
2018-12-23 16:21:37 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"68 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
2018-12-23 16:21:37 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"69 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
2018-12-23 16:21:37 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"70 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"71 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"72 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"73 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"74 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"75 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"76 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"77 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"78 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"79 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"80 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"81 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"82 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"83 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"84 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"85 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"86 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"87 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"88 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"89 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"90 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"91 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"92 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"93 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"94 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"95 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"96 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
},
|
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-06 22:25:59 +00:00
|
|
|
|
"97 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"98 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": true,
|
|
|
|
|
"length": 47
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"99 0 R": {
|
|
|
|
|
"stream": {
|
|
|
|
|
"filter": null,
|
|
|
|
|
"is": false,
|
|
|
|
|
"length": null
|
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
}
|
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-06 22:25:59 +00:00
|
|
|
|
}
|
2018-12-23 16:21:37 +00:00
|
|
|
|
}
|