@Anil_G
I was using the itext7.pdfhtml package to save my email as a PDF, but the output PDF contains unwanted question marks. How can I solve this issue?
could be a case of character encoding confusion
How to fix this issue??
first step analyse it
- just share with us samples / and details of the implementation statements
step 1 : save outlook mail message and save the mail as html
step 2 : Use invoke code to write the following expression
Console.WriteLine(“PDF creation started”)
Console.WriteLine(htmlFilePath)
itext.Html2pdf.HtmlConverter.ConvertToPdf(New FileStream(htmlFilePath, FileMode.Open), New FileStream(pdfFilePath, FileMode.Create))
Console.WriteLine(“PDF created successfully!”)
You need to install the follwing packages before invoking the following code.
itext.pdfhtml
itext.Bouncy-castle FIPS adapter module
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.