Product: PDFTron SDK (C++ 64-bit), Trial License
Product Version: 9.2.0
Please give a brief summary of your issue:
(Think of this as an email subject)’
Nested conditionals and table loops cause C++ app to hang at the call to OfficeToPDF.
Please describe your issue and provide steps to reproduce it:
I am having trouble using nested conditionals and nested table loops within a conditional, using the OfficeToPDF function in the C++ PDFTron SDK. Using the OfficeTemplateTestVC2019 sample and the json text pasted below, each of the commands in problems.docx (attached below) causes the app to hang.
Interestingly, if I post the same document to the Online Demo, everything works as intended.
Please provide a link to a minimal sample where the issue is reproducible:
problems.docx (13.2 KB)
json = "{\
\"A\": false,\
\"B\" : false,\
\"D\" : true,\
\"X\" : false,\
\"Y\" : true,\
\"rows\" : [\
{\
\"c1\": \"11\",\
\"c2\" : \"12\"\
},\
{\
\"c1\": \"21\",\
\"c2\" : \"22\"\
}\
] ,\
\"rowsX\": [\
{\
\"c1\": \"1\",\
\"c2\" : \"2\"\
},\
{\
\"c1\": \"3\",\
\"c2\" : \"4\"\
}\
] ,\
\"rowsY\": [\
{\
\"c1\": \"1\",\
\"c2\" : \"2\",\
\"c3\" : \"3\"\
},\
{\
\"c1\": \"4\",\
\"c2\" : \"5\",\
\"c3\" : \"6\"\
}\
],\
\"rowsZ\": [\
{\
\"c1\": \"1\",\
\"c2\" : \"2\",\
\"c3\" : \"3\",\
\"c4\" : \"4\"\
},\
{\
\"c1\": \"5\",\
\"c2\" : \"6\",\
\"c3\" : \"7\",\
\"c4\" : \"8\"\
}\
],\
\"title\": \"title\"\
}";