I have followed the way shown here in this thread (Print/save Strings in dynamo to .pdf in my device - #12 by AmolShah). And the code worked fine. But the issue is, that in my case, the string is very lengthy and the output is a mess. Is there a way, I can produce the result exactly like the one we make from Microsoft Excel, while printing it to PDF from over there?
I have attached the original output file and its output.