Page 1 of 1

PDF Word Wrap - full justification?

PostPosted: Thu Oct 21, 2010 4:12 am
by alan
We've generated some tables and when we output in docx format the data in the tables are nicely wrapped. However when we output the document in PDF format, the table text is not wrapped.

Any ideas on how we could get PDF table to wrap the text.

Many Thanks

Alan

Re: PDF Table Word Wrap

PostPosted: Thu Oct 21, 2010 9:57 pm
by jason
Full justification (non-jagged right edge) in XSL FO output just fixed in svn head: http://dev.plutext.org/trac/docx4j/changeset/1270

Let me know if you'd like me to make a 'nightly' build.

Re: PDF Word Wrap - full justification?

PostPosted: Fri Oct 22, 2010 2:24 am
by alan
Hi Jason,

Yes please, If that fixes the wrap wrap issue.

We have also experienced the following issues with PDF generation :=

1 .
Tables are being displayed left-justified in PDF document. Not centred as in docx
2.
The height allocated to the header in PDF is not as big as that in docx, hence the header image overlays the PDF body content . Is there any way to configure the PDF header height ?.

Many Thanks

Alan

Re: PDF Word Wrap - full justification?

PostPosted: Wed Oct 27, 2010 10:08 pm
by jason
alan wrote:Yes please, If that fixes the wrap wrap issue.


Please see http://dev.plutext.org/docx4j/docx4j-ni ... 101027.jar

alan wrote:We have also experienced the following issues with PDF generation :=

1 . Tables are being displayed left-justified in PDF document. Not centred as in docx


I'll take a look at this over the next few days.

alan wrote:2. The height allocated to the header in PDF is not as big as that in docx, hence the header image overlays the PDF body content . Is there any way to configure the PDF header height ?.


The relevant code is in http://dev.plutext.org/trac/docx4j/brow ... ilder.java

Its the last method, called createSimplePageMaster. It may need to be revisited.

Re: PDF Word Wrap - full justification?

PostPosted: Thu Mar 01, 2012 6:10 am
by Alba
Hello,

First of all sorry for my bad English. I just started using docx4j and overall it's amazing and very usefull; thank you very much! I got stuck with trying to convert a docx file with an image in the header to pdf, the same problem Alan had, resulting with the header overlapping with the body of the document. I don't understand the last post of this thread; do I have to use LayoutMasterSetBuilder in some way to stop the overlapping?

I hope this is the correct place to post my question and if not, really sorry for the inconvenience.

jason wrote:
alan wrote:2. The height allocated to the header in PDF is not as big as that in docx, hence the header image overlays the PDF body content . Is there any way to configure the PDF header height ?.


The relevant code is in http://dev.plutext.org/trac/docx4j/brow ... ilder.java

Its the last method, called createSimplePageMaster. It may need to be revisited.