Hello, We are facing an issue with eml to pdf conversion, Conversion is successful but pdf get generated with cut edges.
please find the attached files for your reference – (https://drive.google.com/drive/folders/1FhGNCylE73EMKRD5hSII6ZY3DsZ0gngO?usp=sharing)
We have tried it with groupDcos.Conversion in JAVA , please let us know any configuration required for it.
As per your recommendation we are using updated GroupDocs API version (22.8.1) but now we are facing other issues.
if multiple images are sequentially placed one after other in a single row of input eml file in output pdf they are getting placed one above the other.
And if eml file contains information along with header and footer image pdf file get generated with 3 pages i.e single image on each page.
they are supposed to be there in pdf file as that of the eml file.
please find the attached eml file for your reference -
( https://drive.google.com/drive/folders/1FhGNCylE73EMKRD5hSII6ZY3DsZ0gngO?usp=sharing )
Please kindly suggest how can we achieve the same.
Thanks.
Please find the output pdf files
( https://drive.google.com/drive/folders/1FhGNCylE73EMKRD5hSII6ZY3DsZ0gngO )
and conversion code is as following
try {
// Load source file EML for conversion
Converter converter = new Converter("E:\\EML\\Ex-2(header_and_footer).eml");
ConverterSettings converterSettings = new ConverterSettings();
// Prepare conversion options for target format PDF
PdfConvertOptions convertOptions = new PdfConvertOptions();
// Convert to PDF format
converter.convert("E:\\EML\\Ex-2(header_and_footer).pdf", convertOptions);
System.out.println("eml to pdf conversion done");
} catch (Exception e) {
System.out.println(e);
}
This issue is reproduced at our end. Therefore, we’ve logged it in our internal issue tracking system. Your investigation ticket ID is CONVERSIONJAVA-1822.
To keep the image proportions, Converter wraps the rows of the table to the next page.
If you want to keep whole content on one page, you should fit the html by setting images width in pixels,
or you can change the page size for conversion:
@Atir_Tahir
if multiple images are sequentially placed one after other in a single row of input eml file in output pdf they are still getting placed one above the other.
will you please provide details regarding how we can fit the html by setting images width in pixels.
@Atir_Tahir
Thank you for responding. It would be really great if you could provide the details regarding adjusting the height of images with respective height of standard page in PDF document.