Page 1 of 1

PDF transformation Issue when using 2.7.0

PostPosted: Sat Jul 09, 2011 2:05 am
by qhfcrystal
Hi Jason:

with the old subversion, i could successfully built a PDF though I get the turn off log 4j header for some reason, however, for this 2.7.0 version, I will get error about the fo.
pls see below:

FOP issues:
Detailed error message: java.xml.transform.TransformerException: org.apache.fop.fo.ValidationException:For "fo:root","fo:layout-master-set" must be declared before "fo:page-sequence!" <See position 1:168>


I saved the docx before PDF convert.
pls see the attachment.
pdf.docx
(549.64 KiB) Downloaded 283 times

Re: PDF transformation Issue when using 2.7.0

PostPosted: Sat Jul 09, 2011 3:25 pm
by jason
Thanks for this test case.

Your docx had:

Code: Select all
<w:pgMar w:left="1440" w:bottom="1440" w:right="1440" w:top="1440"/>


ie no @w:header. This case is handled now (changesets 1601-1602).

Re: PDF transformation Issue when using 2.7.0

PostPosted: Sun Jul 10, 2011 5:27 pm
by qhfcrystal
Hi Jason:

really thx to your effort. However, i don't know if i did something wrong, now I could not check out from http://dev.plutext.org/svn/docx4j/. Thus I could not build the jar file myself. Is it possible that i could get a nightly build in which the changes are made.

Thx!

Re: PDF transformation Issue when using 2.7.0

PostPosted: Sun Jul 10, 2011 6:10 pm
by jason
I will do a "nightly", hopefully tonight, but otherwise tomorrow night.

What happened when you tried to checkout?

Re: PDF transformation Issue when using 2.7.0

PostPosted: Sun Jul 10, 2011 8:53 pm
by qhfcrystal
:D Jason, it's really very nice of you that you could do nightly!
I don't know whether I should check it out with the address i posted above. I just get the error saying that Connection error, remote archive is not existed.

Re: PDF transformation Issue when using 2.7.0

PostPosted: Mon Jul 11, 2011 1:09 am
by jason
Try http://dev.plutext.org/docx4j/docx4j-ni ... 110710.jar

As you are able to access dev.plutext.org with your web browser, I guess you need to configure a proxy server in your svn client.

Re: PDF transformation Issue when using 2.7.0

PostPosted: Fri Apr 12, 2013 1:00 am
by Medusa
Hi all,
I'm new in here and I'm trying to convert a docx into a PDF.
The document has a picture in the header and when I try to convert it, the following issue is appearing.
Please, could you help me?
Find attached the word document
Thanks