## Converting Document to Document Form

JoshDBoyle-DVzR

Total Posts

94

Likes

2

2

JoshDBoyle-DVzR

Total Posts

94

Likes

2

2
JoshDBoyle-DVzR

10-11-2008

As the title suggests, how would one go about converting a PDF Document to a Document Form?

### Replies

Jasmin_Charbonn

Total Posts

2.2K

Likes

149

97

Jasmin_Charbonn

Total Posts

2.2K

Likes

149

97
Jasmin_Charbonn

10-11-2008

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

JoshDBoyle-DVzR

Total Posts

94

Likes

2

2

JoshDBoyle-DVzR

Total Posts

94

Likes

2

2
JoshDBoyle-DVzR

10-11-2008

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)

JoshDBoyle-DVzR

Total Posts

94

Likes

2

2

JoshDBoyle-DVzR

Total Posts

94

Likes

2