I have this customized print task, where I generate a print template with custom title, page layouts and on/off legend layer. This is generating the print template as expected with the legend. But when the page layout are in portrait format, the legends generated are not proper, the polygon legends are not generating properly. Please see the image below to know how it is generating. The same thing is generating fine in landscape layout. Only in portrait of A4 and both portrait and landscape of A3 page formats are generating this issue.
Did any one faced this issue before? Please share the solution if any one knows about this.
Thanks in advanced!