@asad.ali . Thanks for the response. I tried with the Aspose.PDF.Drawing package, but still not able to get the PDF generated. Here is the error details.
FYI, I am using the HTML file load option here instead of using the HTML string to generate the PDF
at #=znlEvUxzsdZ95jGjqpBUJB7AJgHBG4HngTK1BTrA=.#=zsuXy3av9$OD_(#=z6jWF9ElryXArxxSr9cVW8PPSdAkXmCt1Xw== #=z0p1XIqo=, Char #=zSNJFsUo=) at #=znlEvUxzsdZ95jGjqpBUJB7AJgHBG4HngTK1BTrA=.#=zsuXy3av9$OD_(#=z6jWF9ElryXArxxSr9cVW8PPSdAkXmCt1Xw== #=z0p1XIqo=) at #=zTcmheW2kLJ2bX9JhY0tS17mA2VmqH5PyBA==.#=zre1H1oBNVGH0(#=zTcmheW2kLJ2bX9JhY0tS17mA2VmqH5PyBA== #=zdvZi9ks=, #=zYKcOg2Q3xi3JuIxBvlRnusI442UyyxGIrCuZ1n4= #=zUKLw3S0=, #=zrJ1k69oIrv8xJMmMblu1uyOFP0Rb1Smjkg== #=zr2drt8I=) at #=zQ7Q8eeBLfKm4pIi$snx961KOkfzMQXp4_Zq8kis=..ctor(#=zTcmheW2kLJ2bX9JhY0tS17mA2VmqH5PyBA== #=zdvZi9ks=, #=zkizDnWC8chiJoEpohi2EhkcPFxD4 #=zncHgIAs=, #=zYKcOg2Q3xi3JuIxBvlRnusI442UyyxGIrCuZ1n4= #=zUKLw3S0=) at #=zTcmheW2kLJ2bX9JhY0tS17mA2VmqH5PyBA==..ctor(#=zk1qssx3d51bPEvHniBteQlk= #=zvZkFd3U=, #=zYKcOg2Q3xi3JuIxBvlRnusI442UyyxGIrCuZ1n4= #=zUKLw3S0=, #=zTcmheW2kLJ2bX9JhY0tS17mA2VmqH5PyBA== #=zweYtH4rSK2XN) at #=zTcmheW2kLJ2bX9JhY0tS17mA2VmqH5PyBA==..ctor(#=z0qSfyA1HudPpsglbtvviMws= #=zWCWRNaM=, #=zTcmheW2kLJ2bX9JhY0tS17mA2VmqH5PyBA== #=zweYtH4rSK2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zFMMqLmI=, #=zSZGgSqZ8UC4pNFIXRTAFarf_nfsH #=zD8GhBsQ=) at #=zSZGgSqZ8UC4pNFIXRTAFarf_nfsH.#=ztOfq64Q=(#=z760mL$tXf1wE7e6SrZbXFRHR_iZe #=zFMMqLmI=) at #=zUNANKYRYiXODrT_f5p8vGpncCgx2yzFIvA==.#=zWpvm6Gg=() at #=zUNANKYRYiXODrT_f5p8vGpncCgx2yzFIvA==.#=zbOf9gt8=() at #=zlGzMeNNjDufUGzltlBhQp4wvnyboVvf6PQ==.#=z1E$Sg29TOfML(#=zx95q$KeCPqy3pzg_7HIbbAg= #=z_7$Fuvs_Rf_cyY1H9Q==, #=zSZGgSqZ8UC4pNFIXRTAFarf_nfsH[] #=z8237WSzzBfv_, #=z760mL$tXf1wE7e6SrZbXFRHR_iZe #=zFMMqLmI=, CancellationToken #=zS5D6$$M=) at #=zCuETAWWVHwf8kYlsKKx7zulCAckO.Render(#=z760mL$tXf1wE7e6SrZbXFRHR_iZe #=zFMMqLmI=, CancellationToken #=zS5D6$$M=, #=z0qSfyA1HudPpsglbtvviMws=[] #=zafyyJQ4=, #=zcYOwa2DKi9ikHI_NV$QWHg4=[] #=zxF16xzw=) at #=zCuETAWWVHwf8kYlsKKx7zulCAckO.Render(#=z760mL$tXf1wE7e6SrZbXFRHR_iZe #=zFMMqLmI=, TimeSpan #=zrLkaIsY=, #=zcYOwa2DKi9ikHI_NV$QWHg4=[] #=zxF16xzw=) at #=zphza2laDM5FdyuXJutMfPyYvQwV1.Render(#=z760mL$tXf1wE7e6SrZbXFRHR_iZe #=zFMMqLmI=, #=z_paH9b0= #=zCo7XP8s=, TimeSpan #=zrLkaIsY=) at #=zCQRcefdqjS9xXXQX$B1Z3VWaaACx.#=z$GVWHqGhxkKD(Stream #=zF5D1cMJTvHml, Document #=zCoyL0DfYnSmT, HtmlLoadOptions #=zTJaKW5uAQ9uj, String #=z9T1K$Zi08Uom) at #=zCQRcefdqjS9xXXQX$B1Z3VWaaACx.#=z3Q7zvR0=(Stream #=zF5D1cMJTvHml, Document #=zCoyL0DfYnSmT, HtmlLoadOptions #=zTJaKW5uAQ9uj, String #=z9T1K$Zi08Uom) at #=zCQRcefdqjS9xXXQX$B1Z3VWaaACx.#=z3Q7zvR0=(Stream #=zF5D1cMJTvHml, Document #=zCoyL0DfYnSmT, HtmlLoadOptions #=zTJaKW5uAQ9uj) at Aspose.Pdf.Document.#=ziu3IFPM=(Stream #=zh$Ez3JE=, LoadOptions #=zLOZHe1U=)