AlJohri / docx2pdf

MIT License
506 stars 96 forks source link

PDF Orientation Error on Mac #15

Open Jaimeolivares opened 4 years ago

Jaimeolivares commented 4 years ago

Hello,

Your package is quite amazing and very helpful.

[Edit] It appears the initial error I included was due to a mistake on my part. I have retained the remaining issue.

Using the package my Mac running OS Mojave, I have encountered the following error when trying to convert a .docx to .pdf.

My input is a .docx document in Landscape Orientation The output does appear as PDF, but in Portrait Orientation.

I am not sure how to fix this error. Hope someone can help improve this great package.

Jaimeolivares commented 4 years ago

Hello, I have found the reason behind the error. It appears that saving Borderless Word documents in Mac is more difficult than on Windows. I have found a manual solution by manually changing the page setup to a borderless page, but have found nothing that can apply when using the package.

AlJohri commented 4 years ago

@Jaimeolivares thanks for opening the issue! Would you mind sending me an example document that replicates the issue? You can redact any sensitive information and attach it right here in a Github comment.

Jaimeolivares commented 4 years ago

No problem, I'll attach the sample doc + the output I get right now. sample_out.pdf sample_template.docx