coerce object error out of assembler

Avatar

Avatar
Boost 1
Level 1
scf22
Level 1

Like

1 like

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
scf22
Level 1

Like

1 like

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
scf22
Level 1

26-02-2009

I have a livecycle process that uses Assembler to create a PDF package. I then want to reader extend that package. I believe that I have to use "AssemblerResult" as the output type for the Assembler service but when it is passed to ReaderExtension, I get a "cannot coerce object from AssemblerResult to document type. Any thoughts on how to get around this??

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

27-02-2009

Your are correct that the Assembler service returns an AssemblerResult object. <br /><br />However the ReaderExtension service doesn't take an AssemblerResult as in input, it takes a document object.<br /><br />You need to extract the document from the AssemblerResult using the following xPath:<br /><br />/process_data/@myDoc = /process_data/assresult/object/documents[@id='out.pdf']<br /><br />out.pdf is the name you would give to the resulted document in your result tag in the DDX.<br /><br /><PDF result="pdf2image_res.pdf"><br /><br />Jasmin

Avatar

Avatar
Boost 1
Level 1
scf22
Level 1

Like

1 like

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
scf22
Level 1

Like

1 like

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
scf22
Level 1

08-03-2009

Thank you! That is exactly what I needed.