Closed monocle closed 1 year ago
@KentShikama I've added the new oregon.pdf
to the oregon_with_arrest_order.pdf
and oregon_with_convition_order.pdf
and updated the source code and tests.
Here are how the generated PDFs look:
oregon.pdf
COMMON A NAME_120000_baker.pdf
oregon_with_arrest_order.pdf
COMMON NAME_200000_benton_arrest.pdf
oregon_with_conviction_order.pdf
COMMON A NAME_120000_baker_conviction.pdf
Unfortunately, I now see that if I open these PDFs in Preview, I see the check marks. However, if on these Github links and the PDFs open in the Firefox browser, then the check marks are invisible.
Will keep working at it.
Thanks @wittejm for helping out on this. What a life saver!
@KentShikama So in order to try to fix the inconsistent check mark issue, I tried going down the route for changing the annotations instead of the AcroForm.Fields. Using that, things seem to be working on Chrome, Firefox, Acrobat Reader and Safari and Preview. I still need to do more testing, but now out of nowhere I'm getting failing tests for test_time_analyzer
.
I need to figure out what happened there. I don't remember touching anything related to that test file.
Just some tests that didn't really scale through time. The dates are 2023, Feb 28 which happens to be today. Try bumping it to 2025 or something.
@monocle Are you comfortable with handling the test fixes?
@KentShikama It's not clear to me how to fix the time analyzer tests. Only one is failing today compared to four from yesterday. I just commented the test out for now if that's okay.
Hmm. This could also be a leap year problem. 2023 isn't a leap year but 2020 and 2024 are and we are doing comparisons for X years and +/- 1 day before/after in this code a lot.
Let's just keep the test in and merge this PR. I'm sure it will be "fixed" by tomorrow.
@KentShikama I created an Issue to document the problem. I can check it tomorrow and if everything is passing, I can uncomment the test and submit a PR to put it back.
@monocle Yup safe approach.
I'm going to go ahead and merge. We can continue discussing any comments if you want.
Create a new AcroFormMapper class to map the new PDF form fields to app variables.
For existing forms, change the checkmark character for checkbox fields to "X".
@KentShikama The code isn't necessarily in a state that I would want to submit as a PR and I need to do more testing. But since the new form has to be used starting in March, I'm submitting it now to get the ball rolling.
Also, I'm just getting back into Python and have some dev tooling issues to figure out still and don't have auto formatting working.