Expand my Community achievements bar.

Converting Document to Document Form

Avatar

Former Community Member
As the title suggests, how would one go about converting a PDF Document to a Document Form?
3 Replies

Avatar

Level 10
You can't really convert one to another. The Document Form is a complex variable type that can include the value a document variable.



So using a setValue you could set the document property of the Document Form to the value of your document variable.



Something like /process_data/MyDocForm/object/document = /process_data/MyDocument



Jasmin

Avatar

Former Community Member
Nevermind - I figured it out.



I just set the fromURL property of the Document Form to my XFA form's (what I started with before the conversion to a Document) templateURL and then set the Document property of the Document Form to the Document itself (the converted/rendered XFA)

Avatar

Former Community Member
Oh I was late with my response - thanks for the attempt though, Jasmin!