cognidox / OfficeToPDF

A command line tool to convert Microsoft Office documents to PDFs
https://www.cognidox.com/
Other
610 stars 137 forks source link

Missing horizontal lines in Word 2013 #39

Open Sup3rGeo opened 5 years ago

Sup3rGeo commented 5 years ago

Hi,

I have the following word document which gets converted very accurately by OfficeToPdf in my machine using Word 2016: https://typhoonhil-my.sharepoint.com/:w:/g/personal/victor_maryama_typhoon-hil_com/EZJLwMxZNRFOqWLTZdxbH5cB-RLDclB-nbGqITSKgEhacg?e=JfOG2L

However, when using Word 2013 in another machine, the horizontal bars below the titles and headers are not present:

https://typhoonhil-my.sharepoint.com/:b:/g/personal/victor_maryama_typhoon-hil_com/EayHGE47y1dGnwo7EUVg0NkBBzGmzmgiR9YtUg_cKZTE3w?e=T97Afm

In fact, in this case, the output is just as if we exported PDF with the minimum size option turned on: export options

This is the pdf output with the minimum size option:

https://typhoonhil-my.sharepoint.com/:b:/g/personal/victor_maryama_typhoon-hil_com/EUdrcXcWOD5LvEqtdbOyyTYBKkSnGcQrrFpvznmf_XYp1A?e=FSymHx

I tried using the /word_field_quick_update but it did not help.

Thanks!

kissrobi78 commented 5 years ago

Hi,

after a few tests with different versions of OfficeToPDF we have discovered a workaround for this.

Opening a blank Word document before running the officetopdf.exe conversion. With this workaround the docx document is opened in Word and we can see scrolling as the pdf is being generated. When the conversion finishes Word closes and the formatting of the pdf is the same as the docx.

Without opening a blank Word document running the officetopdf.exe conversion starts the WINWORD.exe process but the output pdf is missing formatting.

This issue is present with both Office Home & Business 2013 and 2016.

This behavior is present in all OfficeToPDF releases we have tested v1.8.4.0 to v1.8.22.0

The only version which outputs proper formatting without the workaround is release-1.8 from Oct 11, 2017.

BR Robert

olarriga commented 5 years ago

Hi,

I confirm the issue and the workaround.

The issue is also on Word 2010.

B/R Olivier

vittala commented 4 years ago

This may be related to issue #55 which is caused by a bug in Word not rendering some borders if screen updating is turned off.