UNPKG

pdf2json

Version:

A PDF file parser that converts PDF binaries to text based JSON, powered by porting a fork of PDF.JS to Node.js

1 lines 8.4 kB
{"formImage":{"Transcoder":"pdf2json@0.6.8","Agency":"2013 Form 1040-ES (OTC)","Id":{"AgencyId":"unknown","Name":"unknown","MC":false,"Max":-1,"Parent":-1},"Pages":[{"Height":49.501,"HLines":[{"dsh":1,"x":6.145,"y":17.062,"w":0.75,"l":92.898},{"x":9.788,"y":3.188,"w":1.5,"l":2.561},{"x":12.263,"y":3.188,"w":1.5,"l":13.698},{"x":25.833,"y":3.188,"w":1.5,"l":43.441},{"x":69.188,"y":3.188,"w":1.5,"l":8.748},{"x":77.851,"y":3.188,"w":1.5,"l":2.561},{"x":80.326,"y":3.187,"w":1.5,"l":14.936},{"x":9.788,"y":6.188,"w":1.5,"l":58.248},{"x":67.908,"y":3.938,"w":1.5,"l":27.354},{"x":67.908,"y":6.188,"w":1.5,"l":27.354},{"x":79.002,"y":4.688,"w":2.25,"l":12.547},{"x":79.002,"y":6.188,"w":2.25,"l":12.547},{"x":91.463,"y":4.688,"w":2.25,"l":3.884},{"x":91.463,"y":6.188,"w":2.25,"l":3.884},{"x":9.745,"y":14.438,"w":1.5,"l":2.647},{"x":12.22,"y":7.688,"w":0.75,"l":38.491},{"x":50.626,"y":7.688,"w":0.75,"l":24.836},{"x":75.376,"y":7.688,"w":0.75,"l":19.886},{"x":12.22,"y":8.438,"w":0.75,"l":83.041},{"x":12.22,"y":9.938,"w":0.75,"l":38.491},{"x":50.626,"y":9.938,"w":0.75,"l":24.836},{"x":75.376,"y":9.938,"w":0.75,"l":19.886},{"x":12.22,"y":11.438,"w":0.75,"l":83.041},{"x":12.22,"y":12.938,"w":0.75,"l":83.041},{"x":12.263,"y":14.438,"w":1.5,"l":38.448},{"x":50.626,"y":14.438,"w":1.5,"l":24.836},{"x":75.376,"y":14.438,"w":1.5,"l":19.886}],"VLines":[{"x":25.919,"y":1.672,"w":1.5,"l":1.547},{"x":67.994,"y":3.172,"w":1.5,"l":0.797},{"x":67.994,"y":3.922,"w":1.5,"l":2.297},{"x":79.131,"y":4.641,"w":2.25,"l":1.594},{"x":95.219,"y":4.641,"w":2.25,"l":1.594},{"x":91.506,"y":4.641,"w":0.75,"l":1.594},{"x":12.306,"y":6.156,"w":1.5,"l":8.313},{"x":9.831,"y":6.156,"w":1.5,"l":8.313},{"x":50.669,"y":6.172,"w":0.75,"l":1.531},{"x":75.419,"y":6.172,"w":0.75,"l":1.531},{"x":50.669,"y":8.422,"w":0.75,"l":1.531},{"x":75.419,"y":8.422,"w":0.75,"l":1.531},{"x":50.669,"y":12.922,"w":0.75,"l":1.547},{"x":75.419,"y":12.922,"w":0.75,"l":1.547}],"Fills":[{"x":0,"y":0,"w":0,"h":0,"clr":1}],"Texts":[{"x":48.142,"y":16.138,"w":6.111,"clr":0,"A":"left","R":[{"T":"Tear%20off%20here","S":-1,"TS":[0,11,0,0]}]},{"x":11.076,"y":2.198,"w":2.334,"clr":0,"A":"left","R":[{"T":"Form","S":2,"TS":[0,10,0,0],"RA":90}]},{"x":12.056,"y":1.491,"w":3.9280000000000004,"clr":0,"A":"left","R":[{"T":"1040-ES","S":4,"TS":[0,14,0,0]}]},{"x":12.056,"y":1.8929999999999998,"w":12.540000000000003,"clr":0,"A":"left","R":[{"T":"Department%20of%20the%20Treasury%20","S":51,"TS":[0,9,0,0]}]},{"x":12.056,"y":2.299,"w":11.093000000000002,"clr":0,"A":"left","R":[{"T":"Internal%20Revenue%20Service","S":51,"TS":[0,9,0,0]}]},{"x":26.356,"y":2.08,"w":1.264,"clr":0,"A":"left","R":[{"T":"20","S":-1,"TS":[0,23,0,0]}]},{"x":30.701,"y":2.08,"w":1.336,"clr":0,"A":"left","R":[{"T":"13","S":-1,"TS":[0,23,0,0]}]},{"x":36.197,"y":2.08,"w":6.811999999999999,"clr":0,"A":"left","R":[{"T":"Estimated%20Tax","S":-1,"TS":[0,23,0,0]}]},{"x":68.981,"y":1.509,"w":4.463000000000001,"clr":0,"A":"left","R":[{"T":"Payment%20","S":-1,"TS":[0,13,0,0]}]},{"x":68.981,"y":2.196,"w":3.9640000000000004,"clr":0,"A":"left","R":[{"T":"Voucher","S":-1,"TS":[0,13,0,0]}]},{"x":77.644,"y":2.009,"w":0.48,"clr":0,"A":"left","R":[{"T":"2","S":-1,"TS":[0,27,0,0]}]},{"x":83.8,"y":2.187,"w":9.283000000000001,"clr":0,"A":"left","R":[{"T":"OMB%20No.%201545-0074","S":2,"TS":[0,10,0,0]}]},{"x":9.581,"y":3.196,"w":40.102999999999994,"clr":0,"A":"left","R":[{"T":"File%20only%20if%20you%20are%20making%20a%20payment%20of%20estimated%20tax%20by%20check%20or%20money%20order.%20Mail%20this%20","S":-1,"TS":[0,10.5,0,0]}]},{"x":9.581,"y":3.758,"w":23.3,"clr":0,"A":"left","R":[{"T":"voucher%20with%20your%20check%20or%20money%20order%20payable%20to%20","S":-1,"TS":[0,10.5,0,0]}]},{"x":39.616,"y":3.758,"w":12.113,"clr":0,"A":"left","R":[{"T":"%E2%80%9CUnited%20States%20Treasury.%E2%80%9D","S":-1,"TS":[0,10.5,0,0]}]},{"x":55.231,"y":3.758,"w":5.130000000000001,"clr":0,"A":"left","R":[{"T":"%20Write%20your%20","S":-1,"TS":[0,10.5,0,0]}]},{"x":9.581,"y":4.321,"w":42.19899999999998,"clr":0,"A":"left","R":[{"T":"social%20security%20number%20and%20%E2%80%9C2013%20Form%201040-ES%E2%80%9D%20on%20your%20check%20or%20money%20order.%20Do%20not%20send%20","S":-1,"TS":[0,10.5,0,0]}]},{"x":9.581,"y":4.883,"w":33.49,"clr":0,"A":"left","R":[{"T":"cash.%20Enclose%2C%20but%20do%20not%20staple%20or%20attach%2C%20your%20payment%20with%20this%20voucher.","S":-1,"TS":[0,10.5,0,0]}]},{"x":68.431,"y":2.924,"w":16.320000000000007,"clr":0,"A":"left","R":[{"T":"Calendar%20year%E2%80%94Due%20June%2017%2C%202013","S":-1,"TS":[0,11,0,0]}]},{"x":68.431,"y":3.67,"w":18.11600000000001,"clr":0,"A":"left","R":[{"T":"Amount%20of%20estimated%20tax%20you%20are%20paying%20","S":-1,"TS":[0,11,0,0]}]},{"x":68.431,"y":4.27,"w":5.798,"clr":0,"A":"left","R":[{"T":"by%20check%20or%20%20","S":-1,"TS":[0,11,0,0]}]},{"x":68.431,"y":4.87,"w":5.946,"clr":0,"A":"left","R":[{"T":"money%20order.","S":-1,"TS":[0,11,0,0]}]},{"x":83.209,"y":4.5,"w":3.092,"clr":0,"A":"left","R":[{"T":"Dollars","S":2,"TS":[0,10,0,0]}]},{"x":91.689,"y":4.5,"w":2.63,"clr":0,"A":"left","R":[{"T":"Cents","S":-1,"TS":[0,9.3,0,0]}]},{"x":11.113,"y":11.03,"w":5.8709999999999996,"clr":0,"A":"left","R":[{"T":"Print%20or%20type","S":-1,"TS":[0,11,0,0],"RA":90}]},{"x":12.744,"y":6.045,"w":11.353999999999997,"clr":0,"A":"left","R":[{"T":"Your%20first%20name%20and%20initial","S":-1,"TS":[0,11,0,0]}]},{"x":51.106,"y":6.045,"w":6.723999999999999,"clr":0,"A":"left","R":[{"T":"Your%20last%20name","S":-1,"TS":[0,11,0,0]}]},{"x":75.856,"y":6.045,"w":12.465000000000002,"clr":0,"A":"left","R":[{"T":"Your%20social%20security%20number","S":-1,"TS":[0,11,0,0]}]},{"x":12.744,"y":7.422000000000001,"w":16.634,"clr":0,"A":"left","R":[{"T":"If%20joint%20payment%2C%20complete%20for%20spouse","S":-1,"TS":[0,11,0,0]}]},{"x":12.744,"y":8.295,"w":13.429000000000004,"clr":0,"A":"left","R":[{"T":"Spouse%E2%80%99s%20first%20name%20and%20initial","S":-1,"TS":[0,11,0,0]}]},{"x":51.106,"y":8.295,"w":8.799000000000001,"clr":0,"A":"left","R":[{"T":"Spouse%E2%80%99s%20last%20name","S":-1,"TS":[0,11,0,0]}]},{"x":75.856,"y":8.295,"w":14.540000000000004,"clr":0,"A":"left","R":[{"T":"Spouse%E2%80%99s%20social%20security%20number","S":-1,"TS":[0,10.2,0,0]}]},{"x":12.744,"y":9.795,"w":16.950000000000006,"clr":0,"A":"left","R":[{"T":"Address%20(number%2C%20street%2C%20and%20apt.%20no.)","S":-1,"TS":[0,11,0,0]}]},{"x":12.744,"y":11.295,"w":39.004000000000005,"clr":0,"A":"left","R":[{"T":"City%2C%20state%2C%20and%20ZIP%20code.%20(If%20a%20foreign%20address%2C%20enter%20city%2C%20also%20complete%20spaces%20below.)","S":-1,"TS":[0,11,0,0]}]},{"x":12.744,"y":12.795,"w":9.780000000000001,"clr":0,"A":"left","R":[{"T":"Foreign%20country%20name","S":-1,"TS":[0,11,0,0]}]},{"x":51.106,"y":12.795,"w":10.871,"clr":0,"A":"left","R":[{"T":"Foreign%20province%2Fcounty","S":-1,"TS":[0,11,0,0]}]},{"x":75.856,"y":12.732,"w":8.908,"clr":0,"A":"left","R":[{"T":"Foreign%20postal%20code","S":-1,"TS":[0,11,0,0]}]},{"x":9.581,"y":14.295,"w":33.685,"clr":0,"A":"left","R":[{"T":"For%20Privacy%20Act%20and%20Paperwork%20Reduction%20Act%20Notice%2C%20see%20instructions.","S":-1,"TS":[0,11,0,0]}]}],"Fields":[{"style":48,"T":{"Name":"number","TypeInfo":{}},"id":{"Id":"L1","EN":0},"TI":7838,"AM":0,"x":79.074,"y":5.37,"w":12.375,"h":0.833},{"style":48,"T":{"Name":"alpha","TypeInfo":{}},"id":{"Id":"NAME","EN":0},"TI":7839,"AM":1024,"x":12.45,"y":6.935,"w":62.844,"h":0.833},{"style":48,"T":{"Name":"alpha","TypeInfo":{}},"id":{"Id":"SPNAME","EN":0},"TI":7840,"AM":1024,"x":12.338,"y":9.167,"w":62.919,"h":0.833},{"style":48,"T":{"Name":"alpha","TypeInfo":{}},"id":{"Id":"ADDR","EN":0},"TI":7841,"AM":1024,"x":12.448,"y":10.692,"w":82.913,"h":0.833},{"style":48,"T":{"Name":"alpha","TypeInfo":{}},"id":{"Id":"CSZ","EN":0},"TI":7842,"AM":1024,"x":12.448,"y":12.189,"w":82.913,"h":0.833},{"style":48,"T":{"Name":"alpha","TypeInfo":{}},"id":{"Id":"COUNTRY","EN":0},"TI":7843,"AM":1024,"x":12.413,"y":13.659,"w":38.362,"h":0.833},{"style":48,"T":{"Name":"alpha","TypeInfo":{}},"id":{"Id":"FPC","EN":0},"TI":7844,"AM":1024,"x":50.813,"y":13.686,"w":24.75,"h":0.833},{"style":48,"T":{"Name":"alpha","TypeInfo":{}},"id":{"Id":"FZIP","EN":0},"TI":7845,"AM":1024,"x":75.523,"y":13.632,"w":19.8,"h":0.833},{"style":48,"T":{"Name":"alpha","TypeInfo":{}},"id":{"Id":"SCANLINE","EN":0},"TI":7846,"AM":1024,"x":9.865,"y":15.265,"w":19.8,"h":0.833}],"Boxsets":[]}],"Width":105.188}}