Highlighted

Generate and merge PDF

JendaDH

31-03-2009

Hi,



I have a complicated task I need to resolve with LC.

First of all, I need to have a process, that on the invokation over WSDL will take document variable and convert that file to PDF.

Once this is done, I need to inject the PDF with process fields so I can have route names taks buttons in the workspace.

Once that is done, I need the user to be able to click on the route name button and the workflow should continue that way.



What I have done far:

- I can convert any doc to PDF (using the sample that comes with the LC)



What I need to do:

- insert process fields into the PDF (as far as I know, this can not be done, so I need to merge the converted PDF with blank PDF that has these process fields included)

- make sure, that the document is routed through route that the user picked by the button click (I did create flat PDF with process fields, I did use the form injection action to enable buttons in the workspace, however if I click on them, nothing happens. The task is still at assigned users workspace)



Any advices are highly apprecitated



J.

Replies

Highlighted

Jasmin_Charbonn

31-03-2009

"insert process fields into the PDF (as far as I know, this can not be done, so I need to merge the converted PDF with blank PDF that has these process fields included)"



That's correct. You can use Assembler to do that.



"make sure, that the document is routed through route that the user picked by the button click (I did create flat PDF with process fields, I did use the form injection action to enable buttons in the workspace, however if I click on them, nothing happens. The task is still at assigned users workspace)"



Make sure the target URL on the submit button is set to http://
:/workspace-server/submit.



Jasmin
Highlighted

JendaDH

31-03-2009

Hello Jasmin,



I've seen that you have great knowledge here. Any ideas or guidelines how can I use the assembler to merge those two documents? As far as I know, it can work only with files in the repository. Is there a way how to do it with dynamicaly created PDF's?



I will check the URL. Thanks for the hint.

Best,



Jan
Highlighted

Jasmin_Charbonn

31-03-2009

Sure.<br /><br />Assembler doesn't just work with files from the repository. It can also take a map as an input parameter that contains the PDFs. You just need to populate the map variable with a key and the value of a documents and reference the key in the DDX.<br /><br />For example let's say your map contains the following information:<br />Key Value<br />doc1 -> content of first PDF<br />doc2 -> content of second PDF<br /><br />Then if the DDX you can have something like:<br /> ...<br /> <PDF result="output1"><br /> <PDF source="doc1" /><br /> <PDF source="doc2" /><br /> </PDF><br /> </DDX><br /><br />Jasmin
Highlighted

JendaDH

01-04-2009

Hi,



I am having wierd behaveiour with routes selection...

If I choose route names in english with approve and deny labels, all works fine, if I choose different, there is no activity once user click on the button in workspace.



I have a PDF that is converted from different fileformat (e.g. image)

I pass the converted PDF as variable DOCUMENT to the injection action (process fields are inserted manually) to enable route names buttons in workspace. I have the URL on the submit button, however, after click nothing happens.

I did notice that set user action accepts only FORM, DOCUMENT FORM and XFA FORM variables. Shall I change the converted document from DOCUMENT to DOCUMENT FORM?

Strange is, that with english labels, it works.. I even get those small icons on the big label in the workspace in the todo view...



Thanks



J
Highlighted

pguerett

01-04-2009

Those route names are "special" and are handled by the UI. I would put the process fields onto the form as well as the form bridge...and yes you should be using a Document Form var.
Highlighted

JendaDH

01-04-2009

Paul,

can be var DOCUMENT assigned to DOCUMENT FORM var (eventhough that the only fields are going to be the process fields)?

That should work right?



thanks



J.