Re: scaling external graphics
Hussein Shafie <[email protected]>
| Newsgroups | gmane.text.xml.xfc.general |
|---|---|
| Message-ID | <[email protected]> |
I cannot reproduce this problem using XMLmind XSL Utility 4.8.1/Java 1.6.0_45/Word 2007. See attached screenshot. How did you generate the .docx file? Please make sure that you are using option -prescaleImages=false. Example: fo2docx -prescaleImages=false in.fo out.docx * Command-line utility: http://www.xmlmind.com/foconverter/_distrib/doc/user/command_line_java.html * Java API: http://www.xmlmind.com/foconverter/_distrib/doc/api/com/xmlmind/fo/converter/Converter.html#setProperty(java.lang.String,%20java.lang.String) Note that XMLmind XSL Utility specifies -prescaleImages=false by default. (I always do my tests using XMLmind XSL Utility.) On 07/02/2013 04:48 PM, Dezsoe Gaal 'EXTERN' wrote: > > I would like to use external-graphic with scaling, but as a result I get > a picture WITH an extra black line - sometimes on the bottom, sometimes > on the left (see output). > I tried the following example: > > <?xml version="1.0" encoding="UTF-8"?> > <fo:root > xmlns:sdt="http://www.xmlmind.com/foconverter/xsl/extensions/docx/sdt" > xmlns:fo="http://www.w3.org/1999/XSL/Format" > xmlns:fox="http://xml.apache.org/fop/extensions" > xmlns:java="http://xml.apache.org/xalan/java" > xmlns:ibex="http://www.xmlpdf.com/2003/ibex/Format" > xmlns:xfc="http://www.xmlmind.com/foconverter/xsl/extensions"> > <fo:layout-master-set> > <fo:simple-page-master master-name="A4-first" page-width="210mm" > page-height="297mm"> > <fo:region-body margin-top="96mm" margin-bottom="40mm" > margin-left="20mm" margin-right="20mm"/> > </fo:simple-page-master> > <fo:page-sequence-master master-name="basic"> > <fo:repeatable-page-master-alternatives> > <fo:conditional-page-master-reference master-reference="A4-first" > page-position="any"/> > </fo:repeatable-page-master-alternatives> > </fo:page-sequence-master> > </fo:layout-master-set> > <fo:page-sequence master-reference="basic"> > <fo:flow flow-name="xsl-region-body"> > <fo:block> > <fo:external-graphic height="1.5cm" > content-height="scale-down-to-fit" src="url(images/zeem.jpg)"/> > </fo:block> > <fo:block> > <fo:external-graphic height="1.5cm" > content-height="scale-down-to-fit" src="url(images/zeem3.jpg)"/> > </fo:block> > </fo:flow> > </fo:page-sequence> > </fo:root> > > I would highly appreciate it if you could suggest me a solution for the > above-mentioned problem that can be implemented by XMLMIND XFC. > Thanks in advance. > -- XMLmind FO Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xfc-support
got_no_artefacts.png
(image/png, 77.2 KB) - not displayed