{"action":"created","issue":{"url":"https://api.github.com/repos/galkahana/HummusJS/issues/46","labels_url":"https://api.github.com/repos/galkahana/HummusJS/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/galkahana/HummusJS/issues/46/comments","events_url":"https://api.github.com/repos/galkahana/HummusJS/issues/46/events","html_url":"https://github.com/galkahana/HummusJS/issues/46","id":106393113,"number":46,"title":"form fields question","user":{"login":"mwaschkowski","id":1027250,"avatar_url":"https://avatars.githubusercontent.com/u/1027250?v=3","gravatar_id":"","url":"https://api.github.com/users/mwaschkowski","html_url":"https://github.com/mwaschkowski","followers_url":"https://api.github.com/users/mwaschkowski/followers","following_url":"https://api.github.com/users/mwaschkowski/following{/other_user}","gists_url":"https://api.github.com/users/mwaschkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/mwaschkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwaschkowski/subscriptions","organizations_url":"https://api.github.com/users/mwaschkowski/orgs","repos_url":"https://api.github.com/users/mwaschkowski/repos","events_url":"https://api.github.com/users/mwaschkowski/events{/privacy}","received_events_url":"https://api.github.com/users/mwaschkowski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-09-14T17:42:53Z","updated_at":"2015-12-01T20:01:38Z","closed_at":"2015-10-06T13:32:50Z","body":"Hi,\r\n\r\nTerribly sorry if this is the wrong place, but I'm wondering if this library will allow me to work with form fields and determine the location of them in on a PDF page?\r\n\r\nThank you,\r\n\r\nMark"},"comment":{"url":"https://api.github.com/repos/galkahana/HummusJS/issues/comments/161079274","html_url":"https://github.com/galkahana/HummusJS/issues/46#issuecomment-161079274","issue_url":"https://api.github.com/repos/galkahana/HummusJS/issues/46","id":161079274,"user":{"login":"galkahana","id":271847,"avatar_url":"https://avatars.githubusercontent.com/u/271847?v=3","gravatar_id":"","url":"https://api.github.com/users/galkahana","html_url":"https://github.com/galkahana","followers_url":"https://api.github.com/users/galkahana/followers","following_url":"https://api.github.com/users/galkahana/following{/other_user}","gists_url":"https://api.github.com/users/galkahana/gists{/gist_id}","starred_url":"https://api.github.com/users/galkahana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galkahana/subscriptions","organizations_url":"https://api.github.com/users/galkahana/orgs","repos_url":"https://api.github.com/users/galkahana/repos","events_url":"https://api.github.com/users/galkahana/events{/privacy}","received_events_url":"https://api.github.com/users/galkahana/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T20:01:38Z","updated_at":"2015-12-01T20:01:38Z","body":"this should get you to the catalog object:\r\n\r\n    var pdfReader = hummus.createReader('myFile.PDF');\r\n    var catalog = pdfReader.queryDictionaryObject(pdfReader.getTrailer(),'Root');\r\n\r\n\r\nthis should get you to the acroform:\r\n\r\n    var acroform = pdfReader.queryDictionaryObject(catalog,'AcroForm');\r\n\r\nnow you can check if exists, to determine if theres a form (if(acroform) {})\r\nfrom there look at fields through:\r\n\r\nvar fieldsRoot = pdfReader.queryDictionaryObject(acroform ,'Fields');\r\n\r\netc.\r\n\r\nyou may need to look into the pdf specs notes on fields to understand how to move on (getting V values, doing a tree iteration etc.). we can either discuss, or you can read in the specs in section 8.6, interactive forms (you can download from here https://app.box.com/s/vz6lewz3eitovlvsshgr.\r\n\r\nRegards,\r\nGal."}}