Re: xsl fo pdf fop - Not getting the expected dimensions

Thank you for your answers.

@Glenn Adams
Ok but it appears that, as I tried to move my thread to
http://old.nabble.com/FOP---Users-f353.html, I got the message:
"Can't move out of mailing list archive for www-xsl-fo@w3.org
Please fix the error and try again."

@Jeremias Maerki 
Ok. I didn't get better results.
I wanted to use the Adobe Reader measuring tool but it appears it's not
available anymore... as far as I'm not mistaken...
Adobe Reader X - version 10.1.3 is the PDF reader installed on my computer.

@Ken Holman

G. Ken Holman wrote:
> I do not use FOP so I put your files through another processor and the box
> came out precisely at 100mmx200mm.

What is this other processor you're using?

Even with the simpler code below, I do not get the expected 2cm page
margins, the 4cm margin and the 5cm padding...

Thank you for helping me out.
Best regards,
--
Léa


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                              xmlns:fo="http://www.w3.org/1999/XSL/Format">
                              
  <xsl:template match="/">
    
    <fo:root>
    
      <fo:layout-master-set>
        <fo:simple-page-master master-name = "A4-portrait" 
                               page-height="29.7cm" 
                               page-width="21.0cm" 
                               margin="2cm"                                        
                               >
                                       
          <fo:region-body />
          
        </fo:simple-page-master>
      </fo:layout-master-set>

      <fo:page-sequence master-reference="A4-portrait">
        <fo:flow flow-name="xsl-region-body">
          <fo:block background-color="DarkSlateGray"
                          padding-left="5cm"
                          margin-left="4cm">
            Hello
          </fo:block>
        </fo:flow>
      </fo:page-sequence>
    </fo:root>
        
  </xsl:template>
  
</xsl:stylesheet>

-- 
View this message in context: http://old.nabble.com/xsl-fo-pdf-fop---Not-getting-the-expected-dimensions-tp33907126p33918782.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.

Received on Monday, 28 May 2012 09:43:32 UTC