Favicon

fop-ComplexScripts-20111018-bin.zip: Sharing some issues found on Arabic PDF

Hello,

 

I installed the patch on top of DITA OT 1.5.1 and Apache FOP version 0.95 and run into the following issues.

1.       No mirroring.

2.       Table of contents are formatted incorrectly.

 

Regards,

Areerat

 

Areerat Tiyawatchalapong
Principal Localization Engineer
Kofax, Inc.

15211 Laguna Canyon Road
Irvine, CA 92618
United States

Tel: +1 (949) 783-1481
Fax: +1 (949) 727-3144
areerat.tiyawatchalapong <at> kofax.com


This communication is only for the use of the intended recipient. It may contain confidential or proprietary information. If you are not the intended recipient or have received this communication in error, please notify the sender via phone and destroy this communication immediately.


Pascal Sancho | 1 Feb 09:56
Picon
Favicon

Re: How to get one section above another

Hi,

As said in XSL-FO REC 1.1 (§7.27.16  at [1]),
precedence="true" "specifies which region (i.e., region-before,
region-after, region-start, or region-end) takes precedence in terms of
which may extend into the corners of the simple-page-master"

So, this will not help Theresa.
The only solution I can imagine is to tweak the FOP Intermediate Format
(see [2]).

[1] http://www.w3.org/TR/xsl/#precedence
[2] http://xmlgraphics.apache.org/fop/1.0/intermediate.html

Le 31/01/2012 17:59, Rob Sargent a écrit :
> Have you tried 'precedence="true"' for the region you prefer to dominate
> the other?
>
>
> On 01/31/2012 09:36 AM, Theresa Jayne Forster wrote:
> >
> > I know that FOP does not yet support z-index, is there any way of
> > making sure say region-after  appearing on the page over
> >
> > region-body.
> >
> >  
> >
> > I have an SVG which is the whole page I have as a block-container on
> > the body but I sometimes need the after to change what is there
> > overloading the very bottom of the svg
> >
> >  
> >
> > Any suggestions?
> >
> >  
> >
> >  
> >
> > Kindest regards
> >
> >  
> >
> >
> > Theresa Forster
Luis Bernardo | 1 Feb 10:43
Picon

Re: How to get one section above another

If the only thing you do in the body is to place the SVG then another
option is to place it in the region-before, extend it to the bottom,
and overlay the extra content in the body. Not perfect but I think it
works.

On Wed, Feb 1, 2012 at 8:56 AM, Pascal Sancho <pascal.sancho <at> takoma.fr> wrote:
> Hi,
>
> As said in XSL-FO REC 1.1 (§7.27.16  at [1]),
> precedence="true" "specifies which region (i.e., region-before,
> region-after, region-start, or region-end) takes precedence in terms of
> which may extend into the corners of the simple-page-master"
>
> So, this will not help Theresa.
> The only solution I can imagine is to tweak the FOP Intermediate Format
> (see [2]).
>
> [1] http://www.w3.org/TR/xsl/#precedence
> [2] http://xmlgraphics.apache.org/fop/1.0/intermediate.html
>
> Le 31/01/2012 17:59, Rob Sargent a écrit :
>> Have you tried 'precedence="true"' for the region you prefer to dominate
>> the other?
>>
>>
>> On 01/31/2012 09:36 AM, Theresa Jayne Forster wrote:
>> >
>> > I know that FOP does not yet support z-index, is there any way of
>> > making sure say region-after  appearing on the page over
>> >
>> > region-body.
>> >
>> >
>> >
>> > I have an SVG which is the whole page I have as a block-container on
>> > the body but I sometimes need the after to change what is there
>> > overloading the very bottom of the svg
>> >
>> >
>> >
>> > Any suggestions?
>> >
>> >
>> >
>> >
>> >
>> > Kindest regards
>> >
>> >
>> >
>> >
>> > Theresa Forster
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe <at> xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org
>
Pascal Sancho | 1 Feb 10:53
Picon
Favicon

Re: Corners of solid border chopped off

Hi,

There are no-border cells between border cells.
In the collapse border model, FOP takes care from all adjacent cells to
paint borders, so unwanted effects can occur when using various border
styles.
BUT, reading the XSL-FO 1.1 (§6.7.10):
"If the value of the border-collapse trait is "collapse",  (...) Borders
with a style of 'none' have the lowest priority. (...) then narrow
borders are discarded in favor of wider ones"
Considering that border-style defaults to none:
IIUC, corners should be painted using full border cell for specified
one, regarding *all* other border specs, comprising surrounding fo:table.
Can you rise a bug, feeding it with your test case, please?

As a workaround you can use border-collapse="separate", it should give
expected result.
HTH.

Le 31/01/2012 16:18, Jonathan Levinson a écrit :
> Hi,
>
>  
>
> I attach a .fo file and the generated PDF which when used with fop 1.0
> would I think produce solid borders.  Instead the borders have corners
> chopped off.  It looks like a “bite” is taken out of the corners.  I
> don’t see this problem with RenderX XEP.
>
>  
>
> I attach the files that show the problem.
>
>  
>
> Best Regards,
>
> Jonathan Levinson

--

-- 
Pascal
Picon

RE: How to get one section above another

I solved it by moving the svg into region-before which was until then not in
use, now it works ok.

Kindest regards

Theresa Forster
Senior Software Developer

-----Original Message-----
From: Luis Bernardo [mailto:lmpmbernardo <at> gmail.com] 
Sent: 01 February 2012 09:43
To: fop-users <at> xmlgraphics.apache.org
Subject: Re: How to get one section above another

If the only thing you do in the body is to place the SVG then another
option is to place it in the region-before, extend it to the bottom,
and overlay the extra content in the body. Not perfect but I think it
works.

On Wed, Feb 1, 2012 at 8:56 AM, Pascal Sancho <pascal.sancho <at> takoma.fr>
wrote:
> Hi,
>
> As said in XSL-FO REC 1.1 (§7.27.16  at [1]),
> precedence="true" "specifies which region (i.e., region-before,
> region-after, region-start, or region-end) takes precedence in terms of
> which may extend into the corners of the simple-page-master"
>
> So, this will not help Theresa.
> The only solution I can imagine is to tweak the FOP Intermediate Format
> (see [2]).
>
> [1] http://www.w3.org/TR/xsl/#precedence
> [2] http://xmlgraphics.apache.org/fop/1.0/intermediate.html
>
> Le 31/01/2012 17:59, Rob Sargent a écrit :
>> Have you tried 'precedence="true"' for the region you prefer to dominate
>> the other?
>>
>>
>> On 01/31/2012 09:36 AM, Theresa Jayne Forster wrote:
>> >
>> > I know that FOP does not yet support z-index, is there any way of
>> > making sure say region-after  appearing on the page over
>> >
>> > region-body.
>> >
>> >
>> >
>> > I have an SVG which is the whole page I have as a block-container on
>> > the body but I sometimes need the after to change what is there
>> > overloading the very bottom of the svg
>> >
>> >
>> >
>> > Any suggestions?
>> >
>> >
>> >
>> >
>> >
>> > Kindest regards
>> >
>> >
>> >
>> >
>> > Theresa Forster
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe <at> xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe <at> xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org
Picon

Problem with SVGs on different servers

I have an application being compiled with Maven and packaged by one-jar,

It works fine locally on Java 1.6.0_26

 

When I put it on the live server running Java 1.6.0_27 the PDFS are missing the SVG files,

 

I have batik 1.7 in the jar  and am using fop-1.0.jar in there as well,

Avalon-framework-impl/api 4.3.1

Avalon-framework-4.1.3

 

Why would it work on one machine and not on the other?

 

The fop is not running in tomcat but the one that is not working is 5.5 the local one is 7.0.14

 

Kindest regards

 


Theresa Forster

Senior Software Developer

 

Picon

RE: Problem with SVGs on different servers

Ok Further information, run the program via netbeans – everything works fine no errors.

Run as a jar I get loads of Avalon / batik jars being hidden errors

So I guess I need to work out whats happening there

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer

From: Theresa Jayne Forster [mailto:theresa <at> inbrand.co.uk]
Sent: 01 February 2012 12:46
To: fop-users <at> xmlgraphics.apache.org
Subject: Problem with SVGs on different servers

 

I have an application being compiled with Maven and packaged by one-jar,

It works fine locally on Java 1.6.0_26

 

When I put it on the live server running Java 1.6.0_27 the PDFS are missing the SVG files,

 

I have batik 1.7 in the jar  and am using fop-1.0.jar in there as well,

Avalon-framework-impl/api 4.3.1

Avalon-framework-4.1.3

 

Why would it work on one machine and not on the other?

 

The fop is not running in tomcat but the one that is not working is 5.5 the local one is 7.0.14

 

Kindest regards

 


Theresa Forster

Senior Software Developer

 

Picon

RE: Problem with SVGs on different servers

Ok what version of what jars are needed? I can run it fine within netbeans and out of netbeans it doesn’t work,

The SVG’s are not displaying, but I now have no errors or hidden jar warnings.

I have the following dependancies in netbeans

Fop-1.0.jar

Avalon-framework-api-4.3.1.jar

Avalon-framework-impl-4.3.1.jar

Batik-???-1.7.jar (16 of them)

Xml-apis-ext-1.3.04.jar

Xalan-2.6.0.jar

 

What should I have?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer

From: Theresa Jayne Forster [mailto:theresa <at> inbrand.co.uk]
Sent: 01 February 2012 12:46
To: fop-users <at> xmlgraphics.apache.org
Subject: Problem with SVGs on different servers

 

I have an application being compiled with Maven and packaged by one-jar,

It works fine locally on Java 1.6.0_26

 

When I put it on the live server running Java 1.6.0_27 the PDFS are missing the SVG files,

 

I have batik 1.7 in the jar  and am using fop-1.0.jar in there as well,

Avalon-framework-impl/api 4.3.1

Avalon-framework-4.1.3

 

Why would it work on one machine and not on the other?

 

The fop is not running in tomcat but the one that is not working is 5.5 the local one is 7.0.14

 

Kindest regards

 


Theresa Forster

Senior Software Developer

 

David J. B. Hollis | 1 Feb 16:24
Picon

Re: Problem with SVGs on different servers

I don't suppose this is a Windows 64 bit issue, is it?


HTH,
David


Ok what version of what jars are needed? I can run it fine within netbeans and out of netbeans it doesn’t work,

The SVG’s are not displaying, but I now have no errors or hidden jar warnings.

I have the following dependancies in netbeans

Fop-1.0.jar

Avalon-framework-api-4.3.1.jar

Avalon-framework-impl-4.3.1.jar

Batik-???-1.7.jar (16 of them)

Xml-apis-ext-1.3.04.jar

Xalan-2.6.0.jar

 

What should I have?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer

From: Theresa Jayne Forster [mailto:theresa <at> inbrand.co.uk] 
Sent: 01 February 2012 12:46
To: fop-users <at> xmlgraphics.apache.org
Subject: Problem with SVGs on different servers

 

I have an application being compiled with Maven and packaged by one-jar,

It works fine locally on Java 1.6.0_26

 

When I put it on the live server running Java 1.6.0_27 the PDFS are missing the SVG files,

 

I have batik 1.7 in the jar  and am using fop-1.0.jar in there as well,

Avalon-framework-impl/api 4.3.1

Avalon-framework-4.1.3

 

Why would it work on one machine and not on the other?

 

The fop is not running in tomcat but the one that is not working is 5.5 the local one is 7.0.14

 

Kindest regards

 


Theresa Forster

Senior Software Developer

 


Picon

RE: Problem with SVGs on different servers

Works on netbeans on a win7 environment, running as jar on same – fail

 

Looks like batik-bridge needs batik-ext which needs xml-apis which overloads the batik-ext stuff, so seems a little like a fail there.

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer

From: David J. B. Hollis [mailto:dhollis <at> AandOConsultancy.ltd.uk]
Sent: 01 February 2012 15:24
To: fop-users <at> xmlgraphics.apache.org
Subject: Re: Problem with SVGs on different servers

 

I don't suppose this is a Windows 64 bit issue, is it?

 

 

HTH,

David

 



Ok what version of what jars are needed? I can run it fine within netbeans and out of netbeans it doesn’t work,

The SVG’s are not displaying, but I now have no errors or hidden jar warnings.

I have the following dependancies in netbeans

Fop-1.0.jar

Avalon-framework-api-4.3.1.jar

Avalon-framework-impl-4.3.1.jar

Batik-???-1.7.jar (16 of them)

Xml-apis-ext-1.3.04.jar

Xalan-2.6.0.jar

 

What should I have?

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer


From: Theresa Jayne Forster [mailto:theresa <at> inbrand.co.uk] 
Sent: 01 February 2012 12:46
To: fop-users <at> xmlgraphics.apache.org
Subject: Problem with SVGs on different servers

 

I have an application being compiled with Maven and packaged by one-jar,

It works fine locally on Java 1.6.0_26

 

When I put it on the live server running Java 1.6.0_27 the PDFS are missing the SVG files,

 

I have batik 1.7 in the jar  and am using fop-1.0.jar in there as well,

Avalon-framework-impl/api 4.3.1

Avalon-framework-4.1.3

 

Why would it work on one machine and not on the other?

 

The fop is not running in tomcat but the one that is not working is 5.5 the local one is 7.0.14

 

Kindest regards

 


Theresa Forster

Senior Software Developer

 

 


Gmane