Re: Mismatch between PDF and DOCx generation

Tim Butterworth <[email protected]> Tue, 29 May 2018 10:27:53 +0200
Newsgroups gmane.text.xml.xfc.general
Message-ID <[email protected]>
Hi Hussein - you may in fact have answered the question - I am using Word for Mac but version 2008 … I will install 2016 … and I think that that may be the source of the issue - because when I open your docx file I still don’t see the background image - but you clearly are doing. 

I think this is a word issue, not XMLMind.

Many thanks
Tim



> On 29 May 2018, at 10:15, Hussein Shafie <[email protected]> wrote:
> 
> On 05/28/2018 04:37 PM, Tim Butterworth wrote:
>> Hi, I wonder if you can help - I am pulling my hair out!
>> 
>> So : I have attached three files:
>> 
>> - an XSL file
>> - a resulting pdf file (generated on xsl-server running on linux)
>> - a resulting docx file (also generated on ssl-server running on linux)
>> 
>> On the pdf file, you will see that the background/watermark images defined in the three page masters and the front cover images/overlaid logo on the output document are all rendering fine).
>> 
>> But on the docx version there is no sign of the watermark images nor the front cover image nor the logo.
>> 
>> So pdf is doing what I want; docx is just not including the images at all - although OTHER image elsewhere in the document are being produced fine.
>> 
>> Can you shed any light as to why?
>> 
> 
> It's very difficult to help you as you have sent us a ".xsl" file and not a ".fo" file as explained here: "Writing a usable bug report", http://www.xmlmind.com/foconverter/support_policy.html#bug_report <http://www.xmlmind.com/foconverter/support_policy.html#bug_report>
> 
> Anyway, in order to show you our good will, we very roughly simplified your "def_quotation.xsl" to obtain attached "quotation.fo".
> 
> The result of the conversion quotation.docx has its "map-contours.gif" watermark image. See attached "quotation.docx".
> 
> I used XMLmind XSL-FO Converter v5.5 to generate "quotation.docx" with Java 7, 8, 9 or 10.
> 
> ---
> fo2docx quotation.fo quotation.docx
> ---
> 
> I used MS-Word 2013 (NOT Pages, OpenOffice, LibreOffice, etc) to open "quotation.docx".
> 
> It definitely does not work with Java 6 (due to a Java bug, which is not specific to our product):
> 
> ---
> warning: failed to load image "https://mnlive.eecsoftware.com/clientlibrary/magneticnorth/ImageLibrary/map-contours.gif <https://mnlive.eecsoftware.com/clientlibrary/magneticnorth/ImageLibrary/map-contours.gif>": java.lang.RuntimeException: Could not generate DH keypair (file:/home/hussein/tmp/quotation.fo, line #12, column #27)
> ...
> warning: failed to load image "https://mnlive.eecsoftware.com/clientlibrary/magneticnorth/ImageLibrary/QAEmblemIT2018.png <https://mnlive.eecsoftware.com/clientlibrary/magneticnorth/ImageLibrary/QAEmblemIT2018.png>": java.lang.RuntimeException: Could not generate DH keypair (file:/home/hussein/tmp/quotation.fo, line #99, column #225)
> ---
> 
> but I don't think this is relevant as you are unlikely to use Java 6 or older.
> 
> We are sorry but we cannot reproduce your issue here at XMLmind. We suggest that you closely look at the error messages reported by XMLmind XSL-FO Converter during the conversion. These error messages should help you solve this issue which seems specific to your working environment.


--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support