-
Notifications
You must be signed in to change notification settings - Fork 74
Description
Issue
When attempting to change the orientation to landscape in wkhtmltopdf by adding the --orientation parameter in MimeMessageConverter.java, the resulting PDF from a converted MSG file exhibits overlapping text issues.
Sample File
I have attached a sample MSG file (Test email conversion.msg) for reproduction purposes: Yes
Additional Details
Steps to Reproduce
- I clone the latest version of the project.
- Then I locate MimeMessageConverter.java.
- Modify the cmd list in the convert method as follows:
List cmd = new ArrayList<>(Arrays.asList(
"wkhtmltopdf", "--viewport-size", VIEWPORT_SIZE, "--enable-local-file-access", "--orientation", "Landscape",
//"--disable-smart-shrinking",
"--image-quality", String.valueOf(IMAGE_QUALITY), "--encoding", charsetName));
- Convert the attached Test email conversion.msg using the updated code.
- Open the resulting PDF (Test email conversion.pdf) and observe the text overlap issue.
Expected Behavior
The PDF should render in landscape orientation without any text overlap, similar to when using default portrait orientation.
Actual Behavior
Text overlaps occur when the orientation is set to landscape.
Sample Files
Test email conversion.msg
Test email conversion.pdf