RE: PDF Problem

2007-06-13 Thread Kai Mütz
If you are using cusom fonts this is a known issue. You have to update to
fop 0.93 which is solving this problem. There are many mailings in mailing
archive about this issue.

Kai

[EMAIL PROTECTED] <> wrote:
> Hello there,
>
> i have a little problem with PDFs created with FOP. It seems to
> be that you can't search inside the PDF (using CTRL+F) and when
> you copy something out of the PDF the pasted Text will look
> corrupt. Are there any known issues about that and a way to solve it?
>
>
> Viele Grüße/ Best Regards
>
>
>
> Christian Loock
>
> Software Engineer
>
>
>
>
> Viele Grüße/ Best Regards
>
> Christian Loock
> Software Engineer
>
> ___
>
>   telephone: +49 (0) 28 21 . 9 78 56.21
>   telefax: +49 (0) 28 21 . 9 78 56.77
>
>
> [EMAIL PROTECTED]
>   www.db-central.com
>
>   Main office
>   db-central gmbh, Hoffmannallee 41-51, D-47533 Kleve
>
>   Subsidiary
>   db-central gmbh, Königsallee 43, D-71638 Ludwigsburg
>   db-central gmbh, Adalbertstr. 110, D-80798 München
>
>   Managing Directors
>   Dirk Rosomm, Benno van Aerssen
>
>   Registered office
>   Kleve - Germany, Amtsgericht Kleve, HRB 2746
>
>
> ___
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: fop 0.20.5 and chinese pdf

2007-03-15 Thread Kai Mütz
mahmoudi ould abdel vetah <> wrote:
> thanks,
> 
> Markus, the command line is a good idea, i will try this.
> 
> Kai, what was the weight of your ttf file? (23MO or more?). i'm agree
> with you that it's possible that my xml file was wrongly generated! 

23MB

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: fop 0.20.5 and chinese pdf

2007-03-15 Thread Kai Mütz
mahmoudi ould abdel vetah <> wrote:
> tkanks,
>
> i tried simsun and arial Uni with no result. i will try the other
> fonts that you mentioned and i will be backon the same server i
> publish word documents (using html!) with chinese caracters by using
> simsun with no pb.
>
> is it normal that the xml generated from the arial TTF weights 8KO
> while the weight of the ttf file is 23MO?

The XML metric file I generated with fop 0.93 has 707KB. Perhaps the metric
file was not generated correctly.

Kai


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



OutOfMemoryError while processing a large table

2007-03-13 Thread Kai Mütz
Hi all,

I have a problem with a large XML file containing 1 large table. The
corresponding FO file is about 28MB. I got an OutOfMemoryError while
processing this file in spite of 1,5GB memory allocated to the JVM. There
are no forward references or images in the FO.

What can I do in order to be able to process this file?

Kai


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Again: external-graphic and scaling

2007-02-09 Thread Kai Mütz
[EMAIL PROTECTED] <> wrote:
> On Feb 8, 2007, at 19:45, Kai Mütz wrote:
>
> Hi,
>
>> 
>> I do not really understand the scaling of external images. I have
>> an Area of
>> 220mm (height) and 170mm (width) where I can include graphics. Thus
>> I write something like:
>>
>> > src="[EMAIL PROTECTED]"/>
>>
>> Isn't it (theoretically) right that if I specify content-height and
>> content-width the image should be scaled and thus could be distorted.
>
> Only if you would specify scaling="non-uniform".
> If not, then FOP defaults to preserving the aspect ratio, as is
> mandated by the Recommendation.
>
> See: http://www.w3.org/TR/xsl/#scaling
>
>> But if
>> I include a graphic which has landscape orientation FOP scales it
>> to 170mm
>> width but doesn't scale the height to 220mm. The height is correct
>> relativ to the width. This is perfect for me but doesn't this
>> conflict with theory?
>
> Nope. :)
>
> HTH!
>

It does. Thank you.

Kai


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Again: external-graphic and scaling

2007-02-08 Thread Kai Mütz
Hi,

I do not really understand the scaling of external images. I have an Area of
220mm (height) and 170mm (width) where I can include graphics. Thus I write
something like:



Isn't it (theoretically) right that if I specify content-height and
content-width the image should be scaled and thus could be distorted. But if
I include a graphic which has landscape orientation FOP scales it to 170mm
width but doesn't scale the height to 220mm. The height is correct relativ
to the width. This is perfect for me but doesn't this conflict with theory?

BTW: If I specify something like this:



FOP scales the height of landscape graphics to 220mm and the width is out of
the boundaries of the document.

Kai


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Unicode Fonts!!!!

2006-09-18 Thread Kai Mütz



On 
windows systems you probably find Arial TTF files in windows fonts directory 
("C:\Windows\Fonts" on my machine). You can use the TTFReader to create the 
metrics files as described at
 
http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-metrics

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On 
  Behalf Of Paul LoySent: Monday, September 18, 2006 6:29 
  PMTo: fop-users@xmlgraphics.apache.orgSubject: Re: 
  Unicode Fontsyeah but that still doesn't give me the 
  fonts I need. Where are the unicode PS fonts that I can use?Kai Mütz 
  wrote: 
  Did you check: http://xmlgraphics.apache.org/fop/trunk/fonts.html?

  
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Paul Loy
Sent: Monday, September 18, 2006 5:35 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Unicode Fonts


Do I have to translate all the foreign characters into a character
reference?

Paul Loy wrote:

  Hi All,

I've inherited a poorly written system. Part of it uses FOP to create
PDFs from an xslt. Now, we have international people on our site which
is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get #
instead of any polish characters. I think this is due to the font we
were using didn't have the unicode glyphs.

My question is, where are any unicode fonts for FOP. I just want an
Arial or Helvetica type font, nothing fancy! Then, how do I use this
font in my PDF? Here's a snippet of my xslt:


   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

I've tried changing the VAGRounded bit to Arial, Helvetica, Times New
Roman but I still don't get the characters to be in the final PDF!!!

Thanks for any help,

Paul.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  This email has been scanned by Postini.
For more information please visit http://www.postini.com



RE: Unicode Fonts!!!!

2006-09-18 Thread Kai Mütz
Did you check: http://xmlgraphics.apache.org/fop/trunk/fonts.html?

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Behalf Of Paul Loy
> Sent: Monday, September 18, 2006 5:35 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Unicode Fonts
>
>
> Do I have to translate all the foreign characters into a character
> reference?
>
> Paul Loy wrote:
> > Hi All,
> >
> > I've inherited a poorly written system. Part of it uses FOP to create
> > PDFs from an xslt. Now, we have international people on our site which
> > is fine in HTML (xhtml1.1, utf-8) but when I try to use FOP I get #
> > instead of any polish characters. I think this is due to the font we
> > were using didn't have the unicode glyphs.
> >
> > My question is, where are any unicode fonts for FOP. I just want an
> > Arial or Helvetica type font, nothing fancy! Then, how do I use this
> > font in my PDF? Here's a snippet of my xslt:
> >
> > 
> > > font-size="10pt" line-height="13pt" space-before.optimum="10pt"
> > space-after.optimum="10pt">
> >
> >
> >
> >
> > > font-size="8pt">
> >
> >
> > > font-size="8pt">
> >
> >
> >
> >
> >
> > > text-decoration="underline">
> >
> >
> > > font-size="10pt" line-height="13pt" space-before.optimum="5pt"
> > space-after.optimum="5pt" white-space-collapse="false">
> >
> >
> >
> >
> > I've tried changing the VAGRounded bit to Arial, Helvetica, Times New
> > Roman but I still don't get the characters to be in the final PDF!!!
> >
> > Thanks for any help,
> >
> > Paul.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Loading external graphic from base url set with ServletContextURIResolver

2006-09-13 Thread Kai Mütz
Hi,

there is an issue with ServletContextURIResolver which I do not really
understand. It is not really a problem, because everything works fine
excepting an error message in log file. Thus this mailing is more or less an
information.

I initialize fop with the following code:

Fop fop = null;
FopFactory fopFactory = FopFactory.newInstance();
if (context != null) {
fopFactory.setURIResolver(new ServletContextURIResolver(context));
}
try {
if (configURI != null) {
try {
fopFactory.setUserConfig(configURI);
} catch (SAXException e) {
getLogger().warn("Can not set FOP user config!", e);
}
}
fop = fopFactory.newFop(MimeConstants.MIME_PDF, out);
} catch (Exception e) {
getLogger().error("Can not create FOP instance!", e);
}

And have configured base and font-base in conf file:


  
  servlet-context:/
  servlet-context:/WEB-INF/fonts/
  .´



As mentioned above everything works fine, i.e. the images relative to base
and the fonts relative to font-base are found. BUT if i serialize a PDF with
an external-graphic included the following error ist logged:

ERROR (FOURIResolver.java:210) - Error with base URL "servlet-context:/"):
unknown protocol: servlet-context

with Stacktrace:

java.net.MalformedURLException: unknown protocol: servlet-context
at java.net.URL.(URL.java:574)
at java.net.URL.(URL.java:464)
at java.net.URL.(URL.java:413)
at
org.apache.fop.apps.FOURIResolver.toBaseURL(FOURIResolver.java:206)
at org.apache.fop.apps.FOURIResolver.resolve(FOURIResolver.java:90)
at org.apache.fop.apps.FopFactory.resolveURI(FopFactory.java:628)
at org.apache.fop.apps.FOUserAgent.resolveURI(FOUserAgent.java:421)
at org.apache.fop.apps.FOUserAgent.resolveURI(FOUserAgent.java:395)
at
org.apache.fop.image.ImageFactory.loadImage(ImageFactory.java:190)
at org.apache.fop.image.ImageLoader.loadImage(ImageLoader.java:56)
at
org.apache.fop.image.ContextImageCache.getImage(ImageFactory.java:432)
at org.apache.fop.image.ImageFactory.getImage(ImageFactory.java:157)
at
org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:68)
at org.apache.fop.fo.FObj.processNode(FObj.java:118)


I don't know why the FOURIResolver is used here. Anyone does? Again: the
external graphic is found.

Regards, Kai


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Unable to create font metric file of Arial Unicode MS

2006-04-18 Thread Kai Mütz
The attribute should be "embed-url" not "embed-file" in 0.91. Try





> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Behalf Of Xuan Ngo
> Sent: Tuesday, April 18, 2006 2:56 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: RE: Unable to create font metric file of Arial Unicode MS
>
>
> I did what you said but was unable to embedded Arial Unicode MS
> in the PDF file.
> After the process, I open the PDF and it says that it can't find
> Arial Unicode MS font.
> Here is how I did.
>
> 1-I used FOP 0.20.5 to generate the metric font:
> java -cp build\fop.jar;lib\avalon-framework-4.2.0.jar;
>
> lib\batik-all-1.6.jar;lib\commons-io-1.1.jar;lib\commons-logging-1
> .0.4.jar;
>
> lib\serializer-2.7.0.jar;lib\xalan-2.7.0.jar;lib\xercesImpl-2.7.1.jar;
> lib\xml-apis-1.3.02.jar
> org.apache.fop.fonts.apps.TTFReader
> C:\WINDOWS\fonts\arialuni.ttf arialuni.xml
>
> 2-Run the following command:(In this case, FOP 091beta is used)
> xsltproc --output MinTestPDF.fo
> file:///C:/MyDocBook/Dev/MyDocBook.xsl MinTestPDF.xml
> fop.bat -c C:\MyDocBook\Dev\fop.xconf.xml -fo MinTestPDF.fo
> -pdf MinTestPDF.pdf
>
> Customize layer(MyDocBook.xsl):
> ===
> 
> http://www.w3.org/1999/XSL/Transform";
>   xmlns:fo="http://www.w3.org/1999/XSL/Format";
>   xmlns:date="http://exslt.org/dates-and-times";
>   version="1.0">
>
>   
>   ArialUnicodeMS
>
> 
>
> fop.xconf.xml:
> ===
> .
>  metrics-url="file:///C:/MyDocBook/Dev/fonts/Arialuni.xml" kerning="yes"
> embed-file="file:///c:/Windows/fonts/arialuni.ttf">
>  weight="normal"/>
> 
> .
>
> Input file(MinTestPDF.xml)
> =
> 
>  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd";>
> 
>   
> 2006-04-06
>
> Testing printed PDF output
>   
>
>   
> Test
>
> Chinese characters follow: Œ¦Ë®Éú
>   
> 
>
>
> --- Kai M¨¹tz <[EMAIL PROTECTED]> wrote:
>
> > I had the same problem and "solved" it by using Fop 0.20.5 TTFReader for
> > creating the font metric. No solution but a workaround.
> >
>
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Unable to create font metric file of Arial Unicode MS

2006-04-12 Thread Kai Mütz
I had the same problem and "solved" it by using Fop 0.20.5 TTFReader for
creating the font metric. No solution but a workaround.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Behalf Of Xuan Ngo
> Sent: Wednesday, April 12, 2006 5:10 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Unable to create font metric file of Arial Unicode MS
>
>
> I was unable to create font metric file of Arial Unicode MS.
> Can some1 help.
> thx!
>
> Fop version = 0.91beta
>
> Here is the command:
> =
> C:\fop>java -cp build\fop.jar;
>  lib\avalon-framework-4.2.0.jar;
>  lib\batik-all-1.6.jar;
>  lib\commons-io-1.1.jar;
>  lib\commons-logging-1.0.4.jar;
>  lib\serializer-2.7.0.jar;
>  lib\xalan-2.7.0.jar;
>  lib\xercesImpl-2.7.1.jar;
>  lib\xml-apis-1.3.02.jar
>  org.apache.fop.fonts.apps.TTFReader
>  C:\WINDOWS\fonts\arialuni.ttf arialuni.xml
>
> Output Message:
> ===
> TTF Reader for Apache FOP 0.91beta
>
> Parsing font...
> Reading C:\WINDOWS\fonts\arialuni.ttf...
> Number of glyphs in font: 51180
> Error while building XML font metrics file.
> java.lang.ArithmeticException: / by zero
>
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: displaying images in XSL-FO for Apache Cocoon

2006-03-30 Thread Kai Mütz
You can configure the FOPSerializer in sitemap.xmap to use a user config
file where you can set the base directory:


  WEB-INF/fop-config.xml


http://xmlgraphics.apache.org/fop/0.20.5/configuration.html

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Behalf Of Diego F Guillen
> Sent: Thursday, March 30, 2006 10:36 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: displaying images in XSL-FO for Apache Cocoon
>
>
> Hi all,
>
> I have been using Apache Cocoon 2.1.8 (which uses Apache FOP 0.20.5).
> I have coded xsl-fo and managed to display PDF successfully with:
> headers, footers, paragraphs, lists, and tables.
>
> However, here is where I need your help:
> I have generated the following xsl-fo for displaying images in PDF,
> which doesn't seem to work:
> [I've tried all of the cases below, without results]
> [I'm omitting the enclosing  tags]
>
> 
> 
> 
> 
> 
> 
> 
> 
>
> My project structure is:
> * test/
> sitemap.xmap
> content/
>testfile.xml  (containing docbook)
> images/
>myimage.gif
> styles/
>mydbk2pdf.xsl (containing the code above)
>
> My sitemap.xmap contains the following fragments:
>
>  
> 
>
>
>
> 
>
>
> 
> mime-type="image/gif"/>
> 
>
> Your insight will be much appreciated.
> I would also appreciate if someone could give me an example that works.
>
> Best resgards,
> Diego Guillen
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Running FOP without JRE

2006-03-22 Thread Kai Mütz
Or alternatively: http://launch4j.sourceforge.net/ which is is free software
licensed under the GPL license.

Citation: "The executable can be configured to search for a certain JRE
version or use a bundled one."

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Behalf Of Johannes Künsebeck
> Sent: Wednesday, March 22, 2006 3:11 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Running FOP without JRE
>
>
> I dont know if this helps, but there are Java to Exe packagers (not
> compilers), one I know and can recommend is Jexepack ("shareware" / pay
> for business licence, http://www.duckware.com/jexepack/). If there is no
> JRE installed on the System, it can start a JRE-installation.
> Prakash R wrote:
> > Is there a way to natively compile FOP so it can be
> > run on Windows without needing a JRE installed on the
> > system?
> >
> > I'm trying to bundle FOP with a windows application
> > but the user of the application is not needed to have
> > JRE.
> >
> > Thank you.
> > Prakash
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: AW: Inheritance of margin/padding attributes within tables

2006-01-03 Thread Kai Mütz
 works. Thanks.

 doesn't work. It produces output like fop 0.20.5 in the
attached pdf.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Behalf Of Jeremias Maerki
> Sent: Tuesday, January 03, 2006 12:25 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: AW: Inheritance of margin/padding attributes within tables
>
>
>
> On 03.01.2006 12:10:58 Manuel Mall wrote:
> > On Tue, 3 Jan 2006 06:01 pm, Kai Mütz wrote:
> > > No. Thanks for the hint.
> > >
> > After reading the wiki again, looking at your fo and the pdf you
> > attached I would say fop 0.9 behaves correctly with respect to the
> > XSL-FO spec but possibly against user expectations.
> >
> > Try change your fo and rewrite the table fo like:
> > ...
> >  > table-layout="fixed" width="150mm">
> > ...
>
> The start-indent and end-indent properties should rather be set on
> table-body or else the table won't carry over the indent defined by the
> margin-left on the parent block element.
>
> > That should give for fop 0.9 the same result as XEP.
> >
> > Manuel
> >
> > > -Ursprüngliche Nachricht-
> > > Von: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]
> > >m Auftrag von Manuel Mall
> > > Gesendet: Dienstag, 3. Januar 2006 02:24
> > > An: fop-users@xmlgraphics.apache.org
> > > Betreff: Re: Inheritance of margin/padding attributes within tables
> > >
> > >
> > > Kai,
> > >
> > > have you seen
> > > http://wiki.apache.org/xmlgraphics-fop/IndentInheritance ?
> > >
> > > This discusses in some detail the issues surrounding indents/margins
> > > and their (unintuitive?) inheritance behaviour.
> > >
> > > Manuel
> > >
> > > > Hi all!
> > > >
> > > > I don't understand the behaviour of margin attributes within
> > > > tables. I have
> > > > tested the following snippet with 3 different FO processors (FOP
> > > > 0.9.1beta,
> > > > FOP 0.20.5, XEP):
> > > >
> > > > 
> > > >  > > > hyphenate="false"> Headline
> > > > 
> > > > 
> > > > Block
> > > > 1
> > > > 
> > > >  > > > column-width="100%"/> 
> > > > 
> > > >  > > > border="solid yellow 1pt">
> > > > 
> > > > Cell 1
> > > > 
> > > > 
> > > > 
> > > > 
> > > >  > > > border="solid yellow 1pt">
> > > > 
> > > > Cell 2
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > Block
> > > > 2
> > > > 
> > > > 
> > > >
> > > >
> > > > The second block should have a left margin of 20mm. Only XEP
> > > > provides the expected output (see attachement). FOP seems to
> > > > inherit the margin attribute. Why? Why does FOP 0.20.5 ignore the
> > > > margin attribute for the table, but use it within the table-cells?
> > > > Can anyone help?
> > > >
> > > > Regards, Kai
> > > >
> > > > PS: Wrapping the table tag with an extra block makes no difference.
>
>
> Jeremias Maerki
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Inheritance of margin/padding attributes within tables

2006-01-03 Thread Kai Mütz
No. Thanks for the hint.

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Auftrag von Manuel Mall
Gesendet: Dienstag, 3. Januar 2006 02:24
An: fop-users@xmlgraphics.apache.org
Betreff: Re: Inheritance of margin/padding attributes within tables


Kai,

have you seen http://wiki.apache.org/xmlgraphics-fop/IndentInheritance ?

This discusses in some detail the issues surrounding indents/margins and
their (unintuitive?) inheritance behaviour.

Manuel

> Hi all!
>
> I don't understand the behaviour of margin attributes within tables. I
> have
> tested the following snippet with 3 different FO processors (FOP
> 0.9.1beta,
> FOP 0.20.5, XEP):
>
> 
> 
> Headline
> 
> 
> Block
> 1
> 
> 
> 
> 
> 
> 
> Cell 1
> 
> 
> 
> 
> 
> 
> Cell 2
> 
> 
> 
> 
> 
> Block
> 2
> 
> 
>
>
> The second block should have a left margin of 20mm. Only XEP provides the
> expected output (see attachement). FOP seems to inherit the margin
> attribute. Why? Why does FOP 0.20.5 ignore the margin attribute for the
> table, but use it within the table-cells? Can anyone help?
>
> Regards, Kai
>
> PS: Wrapping the table tag with an extra block makes no difference.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Inheritance of margin/padding attributes within tables

2006-01-02 Thread Kai Mütz
Hi all!

I don't understand the behaviour of margin attributes within tables. I have
tested the following snippet with 3 different FO processors (FOP 0.9.1beta,
FOP 0.20.5, XEP):



Headline


Block
1






Cell 1






Cell 2





Block
2




The second block should have a left margin of 20mm. Only XEP provides the
expected output (see attachement). FOP seems to inherit the margin
attribute. Why? Why does FOP 0.20.5 ignore the margin attribute for the
table, but use it within the table-cells? Can anyone help?

Regards, Kai

PS: Wrapping the table tag with an extra block makes no difference.


example.pdf
Description: Adobe PDF document
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]