hi ,
Do we have sample code for converting e-mail along with Attachments to PDF format using Java? I tried the following code and it is converting only the e-mail body to pdf.
EmailLoadOptions emailLoadOptions = new EmailLoadOptions();
emailLoadOptions.setDepth(2);
emailLoadOptions.setConvertOwned(true);
emailLoadOptions.setConvertOwner(true);
PdfConvertOptions options = new PdfConvertOptions();
Converter converter = new Converter(inputFileStream,emailLoadOptions);
int index=1;
converter.convert(outputPath + fileNameWithOutExtn + index++ + “.pdf”, options);
I am using 21.4 version of groupdocs-conversion. Appreciate your help.
Thanks