This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] NDATA & JPEG/JPG


I have found that FOP does not yet implement all of the scaling properties
in XSL-FO. Try just setting the DocBook width attribute to 6in.  It should
scale it uniformly to that width.

Regarding the annoying messages about unsupported properties, I'm afraid you
will have to just ignore them until FOP's next generation arrives.  No one
wants to spend the time making those properties conditional for FOP when
they are likely to be supported soon.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Tristan Fiedler" <fiedler@cshl.edu>
To: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, November 17, 2004 3:29 PM
Subject: [docbook-apps] NDATA & JPEG/JPG


> Hi All,
>
> I am trying to have a viewport of 6 inches wide and 4 inches tall, and
> *uniformly* (ie no distortion) scale the JPG to fill this space.
> I have tried scalefit of 1 and 0, but in both cases, the image is
> distorted / stretched.  From the DocBook O'Reilly book / online, a
> specified viewport and unspecified content area should produce
> isomorphic scaling (ie should not distort the image).
>
> My image is distorted however.
>
> Details below :
>
> ------------------------------------------------------------------------ 
> -----------------
>
>
> <mediaobject id="figure1" xreflabel="Figure 1">
>
> <imageobject>
> <imagedata entityref="fig1" width="6in" depth="3in" scalefit="1"/>
> </imageobject>
>
> &fig1legend;
>
> </mediaobject>
>
> ------------------------------------------------------------------------ 
> -----------------
>
>
> Additionally, could someone please let me know how to get rid of these
> errors :
>
> fiedler:~/DocBook_Tests fiedler$ java org.apache.fop.apps.Fop -xml
> test_article.xml -xsl ~//software/docbook-xsl-1.67.0/fo/docbook.xsl
> -pdf test_out.pdf; open test_out.pdf
> [INFO] Using com.icl.saxon.aelfred.SAXDriver as SAX2 Parser
> [INFO] FOP 0.20.5
> [INFO] Using com.icl.saxon.aelfred.SAXDriver as SAX2 Parser
> [INFO] building formatting object tree
> [INFO] setting up fonts
> Making portrait pages on USletter paper (8.5inx11in)
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> [ERROR] property - "background-position-vertical" is not implemented
> yet.
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [ERROR] Unknown enumerated value for property 'relative-align': baseline
> [ERROR] Error in relative-align property value 'baseline':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> [INFO] [1]
> [INFO] [2]
>
>
>



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]