farling42 / fvtt-pdf-pager

PDF Pager for Foundry
MIT License
6 stars 4 forks source link

[Bug?] PDF fillable wont save #19

Closed Fyrexian closed 1 year ago

Fyrexian commented 1 year ago

Module Version: v0.16.2

Describe the bug I downloaded this module to use the pdf fillable feature and it worked 2 weeks ago(?)-ish and saved the information. Now it doesn't, but it remembers the old info before this feature started to fail.

Steps to reproduce the behavior:

Copy actor id edit pdf and put actor id into pdf code

Expected behavior To save the fillable boxes

Foundry Version: 10.286

Game System: PF2e 4.2.3

Additional context https://user-images.githubusercontent.com/47077661/194621590-bf811d0f-382d-4879-b8c2-cce8f2f6af3b.mp4 image

farling42 commented 1 year ago

Hi, I have been unable to reproduce this so far.

In the console, can you set the reporting level to "All Levels" and then it should report something like the following when an edit is made in the field (at least when focus is lost on the field).

pdf-pager: unmapped PDF field: NAME 'Pronouns' ID '698R', = 'new'
pdf-editable.mjs:120 Storing hidden value on 'Martin': 'Pronouns' = 'new'
Fyrexian commented 1 year ago

I only see this when I open it and no other reports appear after that.

image

farling42 commented 1 year ago

I've found a PDF for the academy sheet, but failed to find one that is fillable. Do you have a link to where I can get a copy?

When I'm using other fillable PDFs (like the PF2 character sheet) then everything seems to work OK (Foundry 10.287, PF2 v4.2.4)

(The PF2 character sheet generates error reports from the pdf_scripting_manager.js inside pdf.js, but the form still appears to work.)

Fyrexian commented 1 year ago

Yeah there wasn't any fillable version of it, so I made the copy myself.

Academy Sheet_2.pdf

farling42 commented 1 year ago

Version 0.17.0 contains support for PDFs which don't have PDF event handlers in them.