Skip to content

Instantly share code, notes, and snippets.

@jberkenbilt
Created November 5, 2022 20:45
Show Gist options
  • Save jberkenbilt/53e3d6749cae7de51e592b91d3ad7238 to your computer and use it in GitHub Desktop.
Save jberkenbilt/53e3d6749cae7de51e592b91d3ad7238 to your computer and use it in GitHub Desktop.
JSON output for minimal PDF
{
"qpdf": [
{
"jsonversion": 2,
"pdfversion": "2.0",
"pushedinheritedpageresources": false,
"calledgetallpages": false,
"maxobjectid": 5
},
{
"obj:1 0 R": {
"value": {
"/Pages": "2 0 R",
"/Type": "/Catalog"
}
},
"obj:2 0 R": {
"value": {
"/Count": 1,
"/Kids": [
"3 0 R"
],
"/Type": "/Pages"
}
},
"obj:3 0 R": {
"value": {
"/Contents": "4 0 R",
"/MediaBox": [
0,
0,
612,
792
],
"/Parent": "2 0 R",
"/Resources": {
"/Font": {
"/F1": "5 0 R"
}
},
"/Type": "/Page"
}
},
"obj:4 0 R": {
"stream": {
"data": "QlQKICAvRjEgMjQgVGYKICA3MiA3MjAgVGQKICAoUG90YXRvKSBUagpFVAo=",
"dict": {}
}
},
"obj:5 0 R": {
"value": {
"/BaseFont": "/Helvetica",
"/Encoding": "/WinAnsiEncoding",
"/Subtype": "/Type1",
"/Type": "/Font"
}
},
"trailer": {
"value": {
"/ID": [
"b:42841c13bbf709d79a200fa1691836f8",
"b:b1d8b5838eeafe16125317aa78e666aa"
],
"/Root": "1 0 R",
"/Size": 6
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment