Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

230 Form Autocompletion in Python #136

Open
Skyrov01 opened this issue Dec 28, 2023 · 0 comments
Open

230 Form Autocompletion in Python #136

Skyrov01 opened this issue Dec 28, 2023 · 0 comments

Comments

@Skyrov01
Copy link

Skyrov01 commented Dec 28, 2023

Hi there. Wasn't sure where to ask this. I know it's somehow off topic, but. I'm trying to help my friends from an NGO and automate the 230 form completion. I have a few questions about this, and I would really love to share my solution when it will be ready.

Questions?
Is there any way to automate this from Python? I know how to use pypdf, which although it might be the best solution it doesn't work properly.

Another method is using pikepdf, but then again, not sure how to handle the XML data attached to the document.

At this moment, I'm using pyautogui to automate clicks, copy & paste, etc. But isn't what I want in the end.

When I'm doing the following, the output is an empty dictionary.

from pypdf import PdfReader

reader = PdfReader("form_smart.pdf") 
fields = reader.get_fields() 
print(fields)
  • form_smart.pdf is the pdf given by ANAF: link
  • but when I'm doing the same thing with this type of PDF it works.

I'll be happy to discuss on this subject any time soon.
Thanks
Skyrov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant