pdf2json icon indicating copy to clipboard operation
pdf2json copied to clipboard

Checkboxes don't have values even when checked

Open jpope19 opened this issue 6 years ago • 10 comments

Have a basic form with checkboxes, dropdowns, and textboxes. Checkboxes not showing that they are clicked via pdfParser.getAllFieldsTypes() nor traversing the formImage object -- formImage.Pages[i].Boxsets[j]

jpope19 avatar Mar 16 '18 16:03 jpope19

Also got this issue. Any work around?

artem-alek avatar May 17 '18 01:05 artem-alek

Nope 👎🏻 made a proprietary solution and ditched the library On Wed, May 16, 2018 at 9:20 PM Artem Aleksandruk [email protected] wrote:

Also got this issue. Any work around?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/modesty/pdf2json/issues/148#issuecomment-389714581, or mute the thread https://github.com/notifications/unsubscribe-auth/AA4YvPlg7OATvfahQp7mBTDalYzKBJ2zks5tzNB6gaJpZM4SuHZP .

jpope19 avatar May 17 '18 01:05 jpope19

maybe you guys should dig into pdf.js a little more

wanghaisheng avatar May 17 '18 03:05 wanghaisheng

I need a quick pdf extract data setup. Pdf.js seemed to big for what I need right now prototyping. I got everything I needed. I switched to radio buttons and group and I now have a “checked field” but they are retuning only false. Might have to go to PDF.js

On May 16, 2018, at 11:47 PM, wanghaisheng [email protected] wrote:

maybe you guys should dig into pdf.js a little more

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

artem-alek avatar May 17 '18 12:05 artem-alek

through pdf.js basic api you can get all the word position

wanghaisheng avatar May 17 '18 13:05 wanghaisheng

I just ended up using https://github.com/euske/pdfminer and through a subprocess/exec

jpope19 avatar May 17 '18 13:05 jpope19

Thats exactly what I am looking for but was hoping to use node.js and not python. I am still learning and I am a Jr developer tasked to use node to solve this project to extract all data and turn it to a JSON object. I was able to achieve the text with this library but having issues with checkboxes and radio buttons. :/

Thanks for the advice and responses!

On May 17, 2018, at 9:17 AM, Jeff Pope [email protected] wrote:

I just ended up using https://github.com/euske/pdfminer https://github.com/euske/pdfminer and through a subprocess/exec

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/modesty/pdf2json/issues/148#issuecomment-389862655, or mute the thread https://github.com/notifications/unsubscribe-auth/AXhMLpcl5vKnXPce-T_UvqWVgrPtwT6pks5tzXhhgaJpZM4SuHZP.

artem-alek avatar May 17 '18 15:05 artem-alek

I have fixed this problem but cant do a pull request. I have fixed selecting an item from a dropdown and also radio buttons

ejminmehranian avatar Jul 23 '18 01:07 ejminmehranian

Do we have a solution for this?

Marcosmaliki avatar Aug 19 '19 08:08 Marcosmaliki

Hi everyone! I am also using this library to convert pdf to json, but have the same issue with checkboxes. Do anyone have any ideas how to overgo it?

o-dorosh avatar Jul 10 '21 07:07 o-dorosh