Expand my Community achievements bar.

Saving XDP form in PDF format at the end of the process

Avatar

Former Community Member
Hi,



I want to save my XDP form to a file system as PDF documents at the end of the workflow. There is a service writeDocument to writing PDF files, which accepts 2 parameters as input



pathname -- type : string

document -- type : document



In my workflow , I have an Xfaform variable which holds my form data.

But, as service requires the parameter as document I could not pass this variable to service. I tried to define a process variable of type document

and assign my xfaform variable to it, then pass this variable to the service. A pdf file is generated but not valid (1 k).



My question is how should I pass the variable to this service?



Thanks in advance



Regards



Cihan
2 Replies

Avatar

Level 10
The xfaForm variable usually contains a pointer to an XDP file. The XDP needs to be rendered by a service to create a PDF. You can then save the resulted PDF into a "document" variable and use that variable with the WriteDocument service.



I guess what I want to make clear is that there are extra step you need to take to get from XDP to PDF before you write it to the file system.



Jasmin

Avatar

Former Community Member
Hi, Jasmin,



As you gess I miss the extra step which is using xdp pointer in xfaform variable as input of rendering service.



Thanks a lot for your grat help



King regards



Cihan Aydın