Forum


Replies: 8   Views: 4074
Line spacing in pdf different from docx
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by DaveH  · 14-10-2013 - 16:37

I'm generating DOCX and PDF files using the same exact template file. The DOCX is formatted exactly as it should be. The PDF is generated with extra line spacing, a different font, and it even removes some spaces between text.



I tried the solution from this post: http://www.phpdocx.com/forums/issues/v35-introduces-extra-paddingspacing-everywhere and it didn't seem to help.



To create the documents I'm using the addTemplate method, replacing some variables. After that, I'm using createDocxAndDownload() for the DOCX and TransformDoc()/generatePDF() for the PDF.



Has anyone else experienced this issue? Thanks in advance for any help!



Dave