Free Support Forum - aspose.com

Dynamic XFA - how to fill field which is readonly and out of xml


#1

I have PDF with dynamic XFA - http://www.finanse.mf.gov.pl/documents/766655/1481810/VAT-7(17)_v1-0E_2017.pdf
I want to fill this PDF with XML (this is working) and set readonly field - which XML not contains - labeled as ‘2. Nr dokumentu’
I tried that:

document.Form.XFA[“Deklaracja[0].Strona1[0].Naglowek[0].RefID[0]”] = “test”;

but its not working, how i can do this?
i think i must use field template (i can read it) and transform it to a field, but how?
PDF is signed and im using incremental save.


#2

@itmpakkpl

Thanks for contacting support.

We have tested the scenario in our environment and tried to fill the read-only field in the PDF but did not get much success. For the sake of detailed investigation, we have logged an investigation ticket as PDFNET-43809 in our issue tracking system. Our product team will further investigate whether it is feasible to fill a read-only field through the API or not. As soon as we receive some feedback from their side, we will let you know. Please spare us little time.

We are sorry for the inconvenience.


#3

any news about this? ticket is still open :frowning: and i cant see details


#4

@itmpakkpl,

The linked ticket ID PDFNET-43809 is pending for the analysis and not resolved yet. Our product team will investigate as per development schedules. We will let you know once a significant progress has been made in this regard.


#5

I am facing the exact same problem. Any progress?


#6

@veco

We are afraid PDFNET-43809 is still unresolved. We have recorded your concerns and will let you know once any significant update will be available in this regard.


#7

Thank you for your response. Could you provide us ETA?


#8

@veco

We are afraid an ETA may not be available before the issue is scheduled for investigations. We have recorded your request and will update you as soon as the ETA will be available. We appreciate your patience and comprehension in this regard.