Expand my Community achievements bar.

Error: Accessor 'Xfa.form.data.Pageset.Header.medium.stock' is unknown

Avatar

Level 1

Hi,

I have a requirement to set the page size dynamically, users are going to upload graphic files by specifiying the page size, based on that I need to change the page size and orientation dynamically, I wrote form calc script on body page form ready event as  to set the page size

 

xfa.form.data.pageSet.Header.medium.stock = "a4"

it gives me a script error saying Error: Accessor 'Xfa.form.data.Pageset.Header.medium.stock' is unknown, what am I doing wrong here.

0 Replies