Expand my Community achievements bar.

SOLVED

Synchronous page numbering when assembling multiple pdf's through assembler

Avatar

Level 3

Hi Team,

I have the requirement where I want the page no. in synchronous. Actually, I am using the assembler service to assemble the multiple pdf's. But when generating the resulting pdf its giving the page no. on each pdf specific. for ex. If I assembling 3 pdf,
pdf 1 with page 5

pdf 2 with page 6

pdf 3 with page 10 
then resultant pdf its giving 

page 1 of 5  ... so on n of m ... for first pdf pages

page 1 of 5  ... so on n of m ... for second pages pdf

page 1 of 10 ... so on n of m ... for third pages pdf

 

But I want total of 5+6+10 =21

like page 1 of 21, page 2 of 21 like that

 

any idea how that i can achieve it

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi,

My issue has resolved now.Updated DDX file,

Amreen1_0-1742901339805.png

 

View solution in original post

6 Replies

Avatar

Level 2

Hello @Amreen1 

 

Can you please add below string in your DDX after PDF source tag and check if the numbers are correct?

<PageNumbering start="1" format="%d" style="arabic"/>

 

PageNumbering defines the starting page number and format.

 

Thanks,

Rahul Pandey

Avatar

Moderator

@Amreen1  , We wanted to check if the solution we provided by @rahulpandey27 was helpful in resolving your issue. If everything is working fine now, that’s great! However, if you’re still experiencing any difficulties or need further assistance, let us know. Thanks!

Avatar

Level 3

Hi @rahulpandey27 ,

I am getting below error after adding the mentioned line in DDX,

Amreen1_0-1742891087229.png

Here is my DDX file,

Amreen1_1-1742891214275.png

 

Avatar

Level 3

Just FYI, my workbench version is 6.5.0.2

Avatar

Employee

Hi @Amreen1,

Please refer to the below document, which can provide you with all the information you need while working with page numbers.

https://helpx.adobe.com/pdf/aem-forms/6-3/ddxRef.pdf 

 

I believe you can try the below code:

<Page pageNumber="1"> "Your DDX logic" </Page>

Thanks

Pranay

Avatar

Correct answer by
Level 3

Hi,

My issue has resolved now.Updated DDX file,

Amreen1_0-1742901339805.png