We have a functionality to replace the fields (<<Filed>>) dynamically from a word document & then convert it to a pdf document. Previously we used Aspose pdf version 126.96.36.199 & recently we upgraded it to 188.8.131.52. After upgrading the Aspose version we had to modify the codes are as follows:
Please check attached Image1.jpeg
In Aspose 184.108.40.206 version we used “Pdf()” class to generate Pdf object but in new Aspose 220.127.116.11 version we didn’t find any such kind of “Pdf()” class.
So after changing the above code for new version of Aspose , we found that in below Doc file, if «AAddressLine2» is replaced by a blank string then there is a blank line appearing between «AAddressLine2» & «ACity», «AStateAbbr» «AZipCode» in generated pdf where as in old version of Aspose with the same criteria blank line is not appearing:
Please check attached Image2.jpeg
Here is the pdf generated with New Aspose pdf version 18.104.22.168:
Please check attached Image3.jpeg
Here is the pdf generated with Old Aspose pdf version 22.214.171.124 :
Please check attached Image4.jpeg
Need help to figure out the alternative of Pdf() class in new version of Aspose to Aspose_5-16.zip (333.8 KB)
in generated pdf. Thanks!