Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

DDX: How to add bookmarks in sourceMatch

Avatar

Level 1

Hello,

I'm working with Adobe LiveCycle ES 2.... I have a proccess with this ddx document:

<?xml version="1.0" encoding="UTF-8"?>

     <DDX xmlns="http://ns.adobe.com/DDX/1.0/">

           <PDF result="outDoc" >

                <PDF sourceMatch=".*" />

           </PDF>

     </DDX>

Work with n documents very well

It accetps a mapItem array, where one item has key: the name of the document, and value: the document in bytes.

Now, I try to add bookmarks, for example to add bookmark title (the name of the document), so one bookmark for document.

I need help to how to do it.

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

For each PDF source document in an assembly, you can specify the name of a bookmark in the result document by using the bookmarkTitle attribute. The bookmark appears in the result document as a level 1 bookmark whose destination is the first page of the source document. For ex.

<PDF result="TheBook">

<PDF source="Chap1" bookmarkTitle="Chapter 1"/>

<PDF source="Chap2" bookmarkTitle="Chapter 2"/>

<PDF source="Chap3" bookmarkTitle="Chapter 3"/>

</PDF>

Thanks,

Dharmendra

View solution in original post

1 Reply

Avatar

Correct answer by
Former Community Member

For each PDF source document in an assembly, you can specify the name of a bookmark in the result document by using the bookmarkTitle attribute. The bookmark appears in the result document as a level 1 bookmark whose destination is the first page of the source document. For ex.

<PDF result="TheBook">

<PDF source="Chap1" bookmarkTitle="Chapter 1"/>

<PDF source="Chap2" bookmarkTitle="Chapter 2"/>

<PDF source="Chap3" bookmarkTitle="Chapter 3"/>

</PDF>

Thanks,

Dharmendra

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] ----