Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

ES2 dynamic DDX generation

Avatar

Level 2

Hi All,

I want to create a PDF Package/Portfolio of non-PDF files where the number of attachments can vary but with a static PDF coversheet.

does anybody have a ES2 sample that can dynamically create the DDX?

Regards

Kev

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Kev,

The attached ES2 .lca does dynamic document assembly using a custom script. You can drop any number of flattened PDFs into the watched folder to assemble a PDF.

The process is depicted below.

Untitled1.png

Notes:

1) Process includes logic to calculate elapsed Assembler processing time, which may or may not be useful.

2) As you are probably aware PDFs have to be flattened for assembly. The process does not flatten PDFs.

The custom script is depicted below. It iterates over the list of map keys to build the DDX.Untitled.png

Steve

View solution in original post

3 Replies

Avatar

Level 2

Hi L. Fernandez

The link you gave are great but I want to dynamically create a DDX using a LCES process.

Any suggestions?

Regards

Kev

Avatar

Correct answer by
Former Community Member

Kev,

The attached ES2 .lca does dynamic document assembly using a custom script. You can drop any number of flattened PDFs into the watched folder to assemble a PDF.

The process is depicted below.

Untitled1.png

Notes:

1) Process includes logic to calculate elapsed Assembler processing time, which may or may not be useful.

2) As you are probably aware PDFs have to be flattened for assembly. The process does not flatten PDFs.

The custom script is depicted below. It iterates over the list of map keys to build the DDX.Untitled.png

Steve

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----