I am using Aspose Total 24.4.1
Our code for Email2PDF is
public static void email2pdf(final String emailFilename, final String targetPDFname, final Properties properties) throws Exception
{
final MailMessa…...SECTION); PageSetup ps = parentSection.getPageSetup();...pageWidth = ps.getPageWidth() - ps.getLeftMargin() - ps.getRightMargin();...