Page 1 of 1

docx to pdf table row height

PostPosted: Thu Oct 18, 2012 11:06 pm
by BarbioTim
Dear,

We use docx4j successfully for quite a time, but we notice now that a part of the layout applied in our docx is lost when creating a pdf.
We have problems with the height of our table rows.
These do not keep the applied default height of docx but all are apparently reset to a default height after conversion.

Is this a know issue because we want to keep the exact same layout from our docx.

Thanks,

Tim

Re: layout docx to pdf

PostPosted: Fri Oct 19, 2012 12:28 am
by kod_moe
Hello BarbioTim,

I'm having some trouble as well with the layout.

Have you also tried to add on your word document tables within tables and convert it to PDF?
When I do that, they don't appear on the PDF.

Let me know if you find a solution for your problem.

Re: layout docx to pdf

PostPosted: Fri Oct 19, 2012 12:36 am
by BarbioTim
We do have tables in tables, but they don't give trouble.
Everything works fine, only the table rows are much higher than in the original docx

Re: layout docx to pdf

PostPosted: Fri Oct 19, 2012 4:53 am
by jason
Row height is currently ignored.

It shouldn't be hard to add though. I may take a look at it tomorrow.

cheers .. Jason

Re: layout docx to pdf

PostPosted: Sat Oct 20, 2012 5:28 am
by jason
Added at https://github.com/plutext/docx4j/commi ... 1a45aaea4a

This will be part of the next release (2.8.2 or 2.9.0)

Re: docx to pdf table row height

PostPosted: Mon Oct 22, 2012 7:08 pm
by BarbioTim
Thanks Jason,

Can we already test it on the snapshot version to see what we can expect and be ready when it comes out?

Tim

Re: docx to pdf table row height

PostPosted: Tue Oct 23, 2012 6:30 pm
by jason
kod_moe wrote:tables within tables


I just noticed a problem with this in 2.8.1 (2.8.0 is ok).

Fixed as https://github.com/plutext/docx4j/commi ... 2ec774a2db

BarbioTim wrote:Can we already test it on the snapshot version to see what we can expect and be ready when it comes out?


I'll upload a nightly when I get a decent network connection (I'm travelling right now).

In the meantime of course, you can download the source from GitHub and build if you wish.

Re: docx to pdf table row height

PostPosted: Tue Oct 23, 2012 7:21 pm
by jason

Re: docx to pdf table row height

PostPosted: Wed Oct 24, 2012 11:08 pm
by BarbioTim
Thanks Jason.
Will the row height fix not be available in the current release or is it waiting untill version 2.8.2 or 2.9.0?

Re: docx to pdf table row height

PostPosted: Thu Oct 25, 2012 4:10 am
by jason
Any changes made to a current release are generally published in the next release.

There is no reason not to have maintenance branches (particularly if started at the behest of users taking commercial support - though of course these branches would be open source and published on GitHub), but where it makes sense, we tend to favour just putting changes in the trunk.

This is especially so for enhancements as opposed to bugs (and regressions in particular). I view the table row height change as an enhancement.

As I just wrote in another thread:

2.8.1 was released quite recently. Ordinarily, we'd make more improvements before rolling another release. However, given the issue with nested tables in PDF/HTML output in 2.8.1, a next release could be sooner rather than later. There's https://github.com/plutext/docx4j/issues/13 which needs to be in the next release. So, it would be good to release 2.8.2 in November.


The issue with nested tables in PDF/HTML output in 2.8.1 is a good example of a fix which is a candidate for a 2.8.1 maintenance branch. But if we do publish 2.8.2 so soon, I see no reason to also have a 2.8.1.1. Comments welcome.

Re: docx to pdf table row height

PostPosted: Thu Jun 27, 2013 10:04 pm
by karthik_bv
Hi,
Is the fix for the above issue pushed into maven central ?

Regards,
Karthik

Re: docx to pdf table row height

PostPosted: Thu Jun 27, 2013 11:38 pm
by jason
I don't believe so; 3.0 is the next planned release, but is not available yet.

There have been several 2.8.1.x maintenance releases, but these aren't in Maven Central, and nor do they include this:-

https://github.com/plutext/docx4j/commi ... rt/out/pdf

Re: docx to pdf table row height

PostPosted: Fri Jun 28, 2013 2:27 am
by karthik_bv
Thank you for the response.Is there an estimated date for 3.0 ?
Also if i download any nightly jar, is the problem fixed in the same?

Regards,
Karthik

Re: docx to pdf table row height

PostPosted: Fri Jun 28, 2013 7:10 am
by jason
karthik_bv wrote:Thank you for the response.Is there an estimated date for 3.0 ?


Aiming to do it soon (next 2 to 4 weeks, hopefully)

karthik_bv wrote:Also if i download any nightly jar, is the problem fixed in the same?


All builds after https://github.com/plutext/docx4j/commi ... 2ec774a2db ought to have it.

Re: docx to pdf table row height

PostPosted: Thu Jul 24, 2014 2:14 am
by zOlanissimo
Hello guys,

I still have troubles with row height: if it is less than default value - it is being set to default.

Here is my docx file:
https://www.dropbox.com/s/2m26s7fvna86kee/temp.docx

Here is result:
https://www.dropbox.com/s/7grutfdmmexutg9/temp.docx.pdf

You can see that 8th row has incorrect height.
Also row's height are slightly greater in PDF compared to DOCX.

I used ConvertOutPDF.main method for convertation.