Page 1 of 1

Line space not preserved after conversion to PDF

PostPosted: Wed Sep 30, 2015 2:55 am
by DaniloP
Hi Jason,
After the conversion from docx to PDF, the content is compressed, i.e. line space is not preserved.
I thought it was a FOP issue, so I tried to find some configuration to change, with no results.
I've uploaded the pdf and the .fo

I wish you will help me.
Thanks

Code: Select all
17:10:06,476 WARN  [org.docx4j.model.properties.paragraph.Indent] (http-/0.0.0.0:8080-5) Only left/first-line indentation is handled at present
17:10:06,492 WARN  [org.docx4j.model.properties.paragraph.Indent] (http-/0.0.0.0:8080-5) Only left/first-line indentation is handled at present
17:10:06,663 WARN  [org.docx4j.model.properties.paragraph.Indent] (http-/0.0.0.0:8080-5) Only left/first-line indentation is handled at present
17:10:06,663 WARN  [org.docx4j.model.properties.paragraph.Indent] (http-/0.0.0.0:8080-5) Only left/first-line indentation is handled at present
17:10:06,928 INFO  [org.docx4j.convert.out.fo.AbstractFOExporter] (http-/0.0.0.0:8080-5) Saved C:\Users\danilo petrone\Desktop\tempFinal.docxDocumento_modificato.fo
17:10:06,928 INFO  [org.docx4j.fonts.RunFontSelector] (http-/0.0.0.0:8080-5) rPrDefault/rFonts referenced Times New Roman
84.175: [GC84.175: [ParNew: 300524K->34048K(306688K), 0.2167232 secs] 614820K->403898K(1300224K), 0.2167975 secs] [Times: user=0.34 sys=0.05, real=0.20 secs]
17:10:07,382 INFO  [org.docx4j.fonts.PhysicalFonts] (http-/0.0.0.0:8080-5) No italic form for: Wingdings
17:10:07,382 INFO  [org.docx4j.fonts.PhysicalFonts] (http-/0.0.0.0:8080-5) No italic form for: Symbol
17:10:07,382 WARN  [org.docx4j.convert.out.fo.renderers.FORendererApacheFOP] (http-/0.0.0.0:8080-5) Can't set up FOP svn; org.apache.fop.apps.FopConfParser from [Module "deployment.NetiEar.ear.NetiWeb.war:main" from Service Module Loader]
17:10:07,538 WARNING [org.apache.fop.apps.FOUserAgent] (http-/0.0.0.0:8080-5) Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
17:10:07,538 WARNING [org.apache.fop.apps.FOUserAgent] (http-/0.0.0.0:8080-5) Font "ZapfDingbats,normal,700" not found. Substituting with "ZapfDingbats,normal,400".
17:10:07,975 INFO  [org.apache.fop.apps.FOUserAgent] (http-/0.0.0.0:8080-5) An fo:table  (See position 3:425) is wider than the available room in inline-progression-dimension. Adjusting end-indent based on overconstrained geometry rules (XSL 1.1, ch. 5.3.4)
17:10:07,975 WARNING [org.apache.fop.apps.FOUserAgent] (http-/0.0.0.0:8080-5) Content overflows the viewport of the fo:region-before on page 1 in block-progression direction by 674 millipoints. (See position 1:956)
17:10:07,976 WARNING [org.apache.fop.apps.FOUserAgent] (http-/0.0.0.0:8080-5) Content overflows the viewport of the fo:region-after on page 1 in block-progression direction by 352 millipoints. (See position 3:4954)
17:10:07,976 INFO  [org.apache.fop.apps.FOUserAgent] (http-/0.0.0.0:8080-5) An fo:table  (See position 3:425) is wider than the available room in inline-progression-dimension. Adjusting end-indent based on overconstrained geometry rules (XSL 1.1, ch. 5.3.4)
17:10:07,981 WARNING [org.apache.fop.apps.FOUserAgent] (http-/0.0.0.0:8080-5) Content overflows the viewport of the fo:region-before on page 2 in block-progression direction by 674 millipoints. (See position 1:956)
17:10:07,983 WARNING [org.apache.fop.apps.FOUserAgent] (http-/0.0.0.0:8080-5) Content overflows the viewport of the fo:region-after on page 2 in block-progression direction by 352 millipoints. (See position 3:4954)
17:10:07,998 INFO  [org.apache.fop.apps.FOUserAgent] (http-/0.0.0.0:8080-5) An fo:table  (See position 3:425) is wider than the available room in inline-progression-dimension. Adjusting end-indent based on overconstrained geometry rules (XSL 1.1, ch. 5.3.4)
17:10:08,003 WARNING [org.apache.fop.apps.FOUserAgent] (http-/0.0.0.0:8080-5) Content overflows the viewport of the fo:region-before on page 3 in block-progression direction by 674 millipoints. (See position 1:956)
17:10:08,005 WARNING [org.apache.fop.apps.FOUserAgent] (http-/0.0.0.0:8080-5) Content overflows the viewport of the fo:region-after on page 3 in block-progression direction by 352 millipoints. (See position 3:4954)
17:10:08,041 INFO  [org.apache.fop.apps.FOUserAgent] (http-/0.0.0.0:8080-5) An fo:table  (See position 3:425) is wider than the available room in inline-progression-dimension. Adjusting end-indent based on overconstrained geometry rules (XSL 1.1, ch. 5.3.4)
17:10:08,041 WARNING [org.apache.fop.apps.FOUserAgent] (http-/0.0.0.0:8080-5) Content overflows the viewport of the fo:region-before on page 4 in block-progression direction by 674 millipoints. (See position 1:956)
17:10:08,041 WARNING [org.apache.fop.apps.FOUserAgent] (http-/0.0.0.0:8080-5) Content overflows the viewport of the fo:region-after on page 4 in block-progression direction by 352 millipoints. (See position 3:4954)

Re: Line space not preserved after conversion to PDF

PostPosted: Fri Nov 20, 2015 12:05 am
by fredley
I am having the same issue where spacing before and after a paragraph (I am specifically working in table cells) looks fine in the Word document, but is not translating (i.e. spacing is gone) when converting to PDF.

Did you find a solution to this issue?