### ----------------------------------------------------
### -- PDF
### -- Licenses: Artistic-2.0
### -- Authors: David Warring
### -- File: t/write-ast.json
### ----------------------------------------------------
{ "ast" : { "literal" : "Hello World!" }, "pdf" : "(Hello World!)" }
{ "ast" : { "array" : [ { "hex-string" : "hi" }, { "bool" : true }, { "bool" : false }, { "null" : null}, { "real" : 0.074877 } ] }, "pdf" : "[ <6869> true false null 0.07488 ]" }
{ "ast" : { "dict" : { "foo" : { "literal" : "bar" }, "baz" : { "array" : [ { "int" : 42 }, { "real" : 4.2 } ] } } }, "pdf" : "<< /baz [ 42 4.2 ] /foo (bar) >>" }
{ "ast" : { "dict" : { } }, "pdf" : "<< >>" }
{ "ast" : { "stream" : { "dict" : { "Length" : { "int" : 9 } }, "encoded" : "Hi there!" } }, "pdf" : "<< /Length 9 >> stream\nHi there!\nendstream" }
{ "ast" : { "header" : { "version" : 1.5 } }, "pdf" : "%PDF-1.5" }
{ "ast" : { "header" : { "version" : 1.2, "type" : "FDF" } }, "pdf" : "%FDF-1.2" }
{ "ast" : { "name" : "Zsófia#" }, "pdf" : "/Zs#c3#b3fia##" }
{ "ast" : { "name" : "Heydər Əliyev" }, "pdf" : "/Heyd#c9#99r#20#c6#8fliyev" }
{ "ast" : { "comment" : "I hope this works♥" }, "pdf" : "% I hope this works#2665" }
{ "ast" : { "startxref" : 42 }, "pdf" : "startxref\n42\n" }
{ "ast" : { "content" : { "Tj" : [ { "literal" : "Hello, World!" } ] } }, "pdf": "(Hello, World!) Tj" }
{ "ast" : { "content" : { "TJ" : [ { "array" : [ { "literal" : "DOS\u000d\u000aCR1(\u0000" }, { "hex-string" : "DOS\r\nCR2" } ] } ] } }, "pdf": "[ (DOS\\r\\nCR1\\(\u0000) <444f530d0a435232> ] TJ" }
{ "ast" : { "content" : [ "q", { "m" : [ { "int" : 100 }, { "int" : 125 } ] }, { "Tm" : [ { "int" : 9 }, { "int" : 0 } , { "int" : 0 }, { "int" : 9 }, { "real" : 476.48 }, { "int" : 750 } ] }, "Q" ] }, "pdf" : "q\n100 125 m\n9 0 0 9 476.48 750 Tm\nQ" }
{ "ast" : { "content" : [ { "BDC" : [ { "name" : "foo" }, { "dict" : { "xKey" : { "name" : "yVal" } } } ] }, { "m" : [ { "int" : 50 }, { "int" : 50 } ] }, { "BT" : [  ] }, { "Td" : [ { "int" : 200 }, { "int" : 200 } ] }, { "ET" : [  ] }, { "EMC" : [  ] } ] }, "pdf" : "/foo << /xKey /yVal >> BDC\n50 50 m\nBT\n200 200 Td\nET\nEMC" }
{ "ast" : { "content" : [ { "BI" : [ ] }, { "ID" : [ { "dict" : { "CS" : { "name" : "RGB" }, "F" : { "array" : [ { "name" : "A85" }, { "name" : "LZW" } ] }, "W" : { "int" : 17 }, "H" : { "int" : 17 }, "BPC" : { "int" : 8 } } }, { "encoded" : "J1/gKA>.]AN&J?]-<HW]aRVcg*bb.\\eKAdVV%/PcZ\n%R.s(4KE3&d&7hb*7[%Ct2HCqC~>" } ] }, { "EI" : [  ] } ] }, "pdf" : "BI\n/BPC 8 /CS /RGB /F [ /A85 /LZW ] /H 17 /W 17 ID\nJ1/gKA>.]AN&J?]-<HW]aRVcg*bb.\\eKAdVV%/PcZ\n%R.s(4KE3&d&7hb*7[%Ct2HCqC~>\nEI" }
{ "ast" : { "expr" : [ { "int" : 2 }, { "int" : 1 }, { "int" : 1 }, { "op" : "add" }, { "op" : "eq" }, { "expr" : { "else" : { "expr" : [ { "int" : 7 }, { "int" : 6 }, { "op" : "mul" } ] }, "if" : { "expr" : [ { "literal" : "howdy" } ] } } } ] }, "pdf" : "{ 2 1 1 add eq { (howdy) } { 7 6 mul } ifelse }" }
{ "ast" : { "content" : { "m" : [ {"int" : 10}, { "real" : 20.5}, { "comment" : "MoveTo" } ] } }, "pdf" : "10 20.5 m % MoveTo" }
{ "ast" : { "content" : { "comment" : [ "Hi!" ] } }, "pdf" : "% Hi!" }
{ "ast" : { "content" : { "'" : [ { "literal" : "move-show-text" } ] } }, "pdf" : "(move-show-text) '" }


