xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Drivet Gregoire <gdri...@sopragroup.com>
Subject RE: Word Doc to FO to PDF
Date Tue, 15 Jan 2008 15:25:11 GMT
Hi Paddy,

I do not know anything about the WordML2FO tool.
I use an other way to transform Word into PDF : 

  1 - I first transform the Word into a Postscript file using a printer
that prints directly into a postscript file. (install a new local
printer on Windows, then choose the port "FILE", then choose the generic
"MS Publisher Color Printer" printer device. 
The step 1 can be automated by the following command line "start /wait
rundll32 printui.dll,PrintUIEntry /if /b "MyPrinter" /f
"%windir%\inf\ntprint.inf" /r "file:" /m "MS Publisher Color Printer" ).

  2 - Then, I the transform this postscript file using ghostscript
(refer to the command line : gswin32.exe -q -sPAPERSIZE=a4 -dNOPAUSE
-dBATCH -sDEVICE=pdfwrite -sOutputFile=final.pdf test.ps)

Regards,

Greg

-----Message d'origine-----
De : Padmanabha [mailto:kvpadmanabha@crmit.com]
Envoye : mardi 15 janvier 2008 13:11
A : fop-users@xmlgraphics.apache.org
Objet : Word Doc to FO to PDF



Hi,

I have a document containing a few sentences, one GIF image and one
multi-page table of 4 columns. The data that goes into the table is
dynamic
data, drawn from a third-party webservice. 

I used the WordML2FO tool to supply the relevant file to FOP. The page
margins in the PDF are not as per my original document. The right margin
is
absent, characters overflow the page, and the GIF image at the top of
the
page is missing.

Here's an extract of the xml file going into the FOP. (I suspect this
might
contain the cause).


<?xml version="1.0" encoding="utf-8" ?> 
- <fo:root font-family="TimesNewRoman"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml">
- <fo:layout-master-set xmlns:rx="http://www.renderx.com/XSL/Extensions"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint"
xmlns:aml="http://schemas.microsoft.com/aml/2001/core"
xmlns:w10="urn:schemas-microsoft-com:office:word"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">

- <fo:simple-page-master master-name="section1-first-page"
page-width="8.270138888888889in" page-height="11.690277777777778in"
margin-top="36pt" margin-bottom="36pt" margin-right="54pt"
margin-left="54pt">
  <fo:region-body margin-top="18pt" margin-bottom="18pt" /> 
  <fo:region-before region-name="first-page-header" extent="11in" /> 
  <fo:region-after region-name="first-page-footer" extent="11in"
display-align="after" /> 
  </fo:simple-page-master>

Need help identifying the cause of the problem.

Paddy
-- 
View this message in context:
http://www.nabble.com/Word-Doc-to-FO-to-PDF-tp14838586p14838586.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message