Re: position not a breakpoint

2012-05-30 Thread Rob Sargent
Thanks for the references.  Similar problem for sure.  The first may be 
more related to my situation. I have recently change the stylesheet, 
which used to print the chapter in question just fine.  Will dig into 
the diffs.



On 05/30/2012 01:35 AM, Pascal Sancho wrote:

Hi,

I found 2 issues related to IPD change between 2 pages that throw such 
exception:

https://issues.apache.org/bugzilla/show_bug.cgi?id=50985
https://issues.apache.org/bugzilla/show_bug.cgi?id=51043

Perhaps the issue you are facing to is related to.

That said, one method to focus on the source that causes the problem 
is to look directly into the XLS-FO file.


Le 29/05/2012 22:20, Rob Sargent a écrit :

Using FOP-1.0, I've recently started seeing this exception and I'm
looking for clues on the root cause.

Caused by: java.lang.UnsupportedOperationException: Don't know how
to restart at positionSpaceHandlingPosition
at

org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:377)
at 
org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:85)



The variable positionAtBreak is an instance of
org.apache.fop.layoutmgr.SpaceResolver.SpaceHandlingPosition
and elementAtBreak is o.a.f.l.KnuthBox.

How do I trace this back to my source xml or is there some other
approach which would shed some light on this for me?








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



Re: Offending font: /Helvetica with PDF/A and SVG image

2012-05-30 Thread Pascal Sancho

Hi,

2 other topics rise here:

1/ Only metrics for base 14 fonts are provided by FOP.
fonts files are not embedded.
used font files depends on what is installed on the system of PDF reader:
When Helvetica is set, usually, Arial is used on Win systems, Helvetica 
on Mac.

For those both fonts, metrics are equivalent, not glyphes shapes.
This explains why you don't need to embed font files for regular PDF 
when you use base 14 fonts.


2/ For SVG, fonts must be available for both FOP (via config file), and 
Batik (witch picks system font data via the java AWT package.


Le 30/05/2012 15:12, Christian Pestel a écrit :

Hi Pascal,

I don't understand why a simple fo file with texte fo:block
font-family="Helvetica" work fine in PDF-A (no license problem)
and an fo file with SVG image don't work.


Christian Pestel

christian.pes...@orange.fr


-Message d'origine-
From: Pascal Sancho
Sent: Wednesday, May 30, 2012 9:12 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Offending font: /Helvetica with PDF/A and SVG image

Hi,

embedding fonts is required by the PDF/A-1b spec, even when you use some
of base 14 fonts.

Since there is license restriction with Helvetica (and other base 14)
font, it is not embedded by default. You have to get it by yourself (you
can purchase it on vendor's web site).

Or you can use another font that is free of charge, like dejaVu (see [1]).

[1] http://dejavu-fonts.org/wiki/Main_Page

Le 29/05/2012 18:48, Christian Pestel a écrit :

Hi Developpers,
I have this fop error with PDF/A and SVG image :
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts,
even the base 14 fonts, have to be embedded! Offending font: /Helvetica
no problem with an .JPG image
Here is my fo file :

http://www.w3.org/1999/XSL/Format";
xmlns:fox="http://xmlgraphics.apache.org/fop/extensions";>
















I send you my files : .fo, userconfig.xml, image1.svg

Note that I add the font “any” in my userconfig.xml for a PDF/A
workarround for fonts used in the fo but that are not present in the
UserConfig


--
Pascal

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



Re: Offending font: /Helvetica with PDF/A and SVG image

2012-05-30 Thread Christian Pestel

Hi Pascal,

I don't understand why a simple fo file with texte fo:block 
font-family="Helvetica" work fine in PDF-A (no license problem)

and an fo file with SVG image don't work.


Christian Pestel

christian.pes...@orange.fr


-Message d'origine- 
From: Pascal Sancho

Sent: Wednesday, May 30, 2012 9:12 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Offending font: /Helvetica with PDF/A and SVG image

Hi,

embedding fonts is required by the PDF/A-1b spec, even when you use some
of base 14 fonts.

Since there is license restriction with Helvetica (and other base 14)
font, it is not embedded by default. You have to get it by yourself (you
can purchase it on vendor's web site).

Or you can use another font that is free of charge, like dejaVu (see [1]).

[1] http://dejavu-fonts.org/wiki/Main_Page

Le 29/05/2012 18:48, Christian Pestel a écrit :

Hi Developpers,
I have this fop error with PDF/A and SVG image :
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts,
even the base 14 fonts, have to be embedded! Offending font: /Helvetica
no problem with an .JPG image
Here is my fo file :

http://www.w3.org/1999/XSL/Format";
xmlns:fox="http://xmlgraphics.apache.org/fop/extensions"; >
















I send you my files : .fo, userconfig.xml, image1.svg

Note that I add the font “any” in my userconfig.xml for a PDF/A
workarround for fonts used in the fo but that are not present in the
UserConfig

Christian Pestel

christian.pes...@orange.fr 



--
Pascal

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



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



Re: "fo:external-graphic" inside a "fo:block" - Unexpected margins

2012-05-30 Thread Léa Massiot

Hello Pascal.
Thank you for your answer: this is the answer I needed.

With the following code:







I get the following result:
http://old.nabble.com/file/p33929960/test.png 


-- 
View this message in context: 
http://old.nabble.com/%22fo%3Aexternal-graphic%22-inside-a-%22fo%3Ablock%22---Unexpected-margins-tp33924830p33929960.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: position not a breakpoint

2012-05-30 Thread Pascal Sancho

Hi,

I found 2 issues related to IPD change between 2 pages that throw such 
exception:

https://issues.apache.org/bugzilla/show_bug.cgi?id=50985
https://issues.apache.org/bugzilla/show_bug.cgi?id=51043

Perhaps the issue you are facing to is related to.

That said, one method to focus on the source that causes the problem is 
to look directly into the XLS-FO file.


Le 29/05/2012 22:20, Rob Sargent a écrit :

Using FOP-1.0, I've recently started seeing this exception and I'm
looking for clues on the root cause.

Caused by: java.lang.UnsupportedOperationException: Don't know how
to restart at positionSpaceHandlingPosition
at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:377)
at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:85)


The variable positionAtBreak is an instance of
org.apache.fop.layoutmgr.SpaceResolver.SpaceHandlingPosition
and elementAtBreak is o.a.f.l.KnuthBox.

How do I trace this back to my source xml or is there some other
approach which would shed some light on this for me?





--
Pascal

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



Re: Offending font: /Helvetica with PDF/A and SVG image

2012-05-30 Thread Pascal Sancho

Hi,

embedding fonts is required by the PDF/A-1b spec, even when you use some 
of base 14 fonts.


Since there is license restriction with Helvetica (and other base 14) 
font, it is not embedded by default. You have to get it by yourself (you 
can purchase it on vendor's web site).


Or you can use another font that is free of charge, like dejaVu (see [1]).

[1] http://dejavu-fonts.org/wiki/Main_Page

Le 29/05/2012 18:48, Christian Pestel a écrit :

Hi Developpers,
I have this fop error with PDF/A and SVG image :
org.apache.fop.pdf.PDFConformanceException: For PDF/A-1b, all fonts,
even the base 14 fonts, have to be embedded! Offending font: /Helvetica
no problem with an .JPG image
Here is my fo file :

http://www.w3.org/1999/XSL/Format";
xmlns:fox="http://xmlgraphics.apache.org/fop/extensions"; >
















I send you my files : .fo, userconfig.xml, image1.svg

Note that I add the font “any” in my userconfig.xml for a PDF/A
workarround for fonts used in the fo but that are not present in the
UserConfig

Christian Pestel

christian.pes...@orange.fr 



--
Pascal

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