Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Generate and merge PDF

Avatar

Avatar
Level 2
JendaDH
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
JendaDH
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile
JendaDH
Level 2

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

Avatar

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct Reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct Reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile
Jasmin_Charbonn
Level 10

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

Avatar

Avatar
Level 2
JendaDH
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
JendaDH
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile
JendaDH
Level 2

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

Avatar

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct Reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct Reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile
Jasmin_Charbonn
Level 10

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

Avatar

Avatar
Level 2
JendaDH
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
JendaDH
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile
JendaDH
Level 2

31-03-2009

Oh ok,



I will do some search on the map variable. Did not use it so far.

Thanks



J.

Avatar

Avatar
Level 2
JendaDH
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
JendaDH
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile
JendaDH
Level 2

01-04-2009

Jasmin, the submit URL, is it with the dash between workspace and server, or without the dash?



J.

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

01-04-2009

With the -

Avatar

Avatar
Level 2
JendaDH
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
JendaDH
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile
JendaDH
Level 2

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

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

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.

Avatar

Avatar
Level 2
JendaDH
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
JendaDH
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile
JendaDH
Level 2

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.