Not able to convert pdf from a merged .docx document

Hi Appian Devs, 
I am facing an issue while converting a merged ".docx" file in my process model.
If you see the .docx file, it is merging the document as per my requirements, but when i am taking that merged document output variable to convert that document into pdf, I am getting only 2 pages of the entire docx file converted whereas the actual merged docx file is of 20 pages. 
I tried multiple approaches, the approach of sub-process and many other methods, but not able to get the complete merged document but failed.

Can you please give me the right direction?

  Discussion posts and replies are publicly visible