Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text Overlap Issue in Landscape Oriented PDF Conversion #77

Open
hellogeekzz opened this issue Jun 21, 2024 · 2 comments
Open

Text Overlap Issue in Landscape Oriented PDF Conversion #77

hellogeekzz opened this issue Jun 21, 2024 · 2 comments
Assignees
Labels

Comments

@hellogeekzz
Copy link

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

  1. I clone the latest version of the project.
  2. Then I locate MimeMessageConverter.java.
  3. 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));

  1. Convert the attached Test email conversion.msg using the updated code.
  2. 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

Test email conversion.zip

@xiaoenswiftx
Copy link

Hi nick, facing a similar problem here. Could there be a follow up on this? Mainly on the overlapping text for the landscape version. Thanks again for the cool converter!

@xiaoenswiftx
Copy link

Hello Nick

I hope you are doing well. Please allow me to inquire about the progress of the bug fix for this overlapping text issue. I understand how busy you are, and I'm sorry for taking up your time with this request.

Any updates would be greatly appreciated. Thank you again for the converter!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants