Re: How to find out why fop needs a certain font?

2012-12-19 Thread Luis Bernardo


This is of no consequence although is it puzzling at first. If you 
specify a global font-family in the fo root element I think the warning 
goes away. I think what you are seeing has been discussed here: 
http://apache-fop.1065347.n5.nabble.com/ZapfDingbats-and-Symbol-not-found-whereas-they-are-not-needed-td31330.html


On 12/19/12 11:05 PM, Alexey Neyman wrote:

Hi all,

I see the following warning message reported by FOP:

$ fop -c fop.cfg -dpi 150 apiguide.fo apiguide.pdf
Dec 19, 2012 2:59:02 PM org.apache.fop.events.LoggingEventListener
processEvent
WARNING: Font "Serif,normal,400" not found. Substituting with
"any,normal,400".
...

However, apiguide.fo does not contain any references to 'serif' font:

$ grep -i serif apiguide.fo
$

Why does FOP need 'Serif' font? Is there some built-in expectation that
'Serif' font must be always available?

Regards,
Alexey.

-
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



How to find out why fop needs a certain font?

2012-12-19 Thread Alexey Neyman
Hi all,

I see the following warning message reported by FOP:

$ fop -c fop.cfg -dpi 150 apiguide.fo apiguide.pdf
Dec 19, 2012 2:59:02 PM org.apache.fop.events.LoggingEventListener 
processEvent
WARNING: Font "Serif,normal,400" not found. Substituting with 
"any,normal,400".
...

However, apiguide.fo does not contain any references to 'serif' font:

$ grep -i serif apiguide.fo
$

Why does FOP need 'Serif' font? Is there some built-in expectation that 
'Serif' font must be always available?

Regards,
Alexey.

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



Re: page-position="only" in conditional-page-master-reference

2012-12-19 Thread Alexios Giotis
Hi Franck,

Since there is already a ticket for this, It would be better to add it as a 
comment. After the migration to Jira, the link is

https://issues.apache.org/jira/browse/FOP-2148

Alexis


On 19 Dec 2012, at 19:42, franck FIMBEL  wrote:

> Hi, 
> 
> Looking at the source code, I could trace a possible cause for this bug.
> In o.a.f..layoutmgr.PageProvider, in the method getPage
> a test is done to verify if the page is the last one
>  boolean isLastPage = (lastPageIndex >= 0) && (index == lastPageIndex);
> 
> In the case of the fo attached (onlypage.fo) this test returns false as 
> lastPageIndex is still initialized to -1.
> 
> Further down the processing, in 
> o.a.f.fo.pagination.ConditionalPageMasterReference isValid method
> the test (pagePosition == EN_ONLY && (isFirstPage && isLastPage)) fails
> 
> 
> I do not have enough experience with the fop source code to provide a 
> possible patch, but hopefully this could help someone to do it for me.
> 
> Thanks in advance
> 
> Franck
> 
> 
> 
> 
> On Tue, Oct 30, 2012 at 11:34 AM, franck FIMBEL  wrote:
> Thanks
> 
> I filled the bug 
> 
> Bug 54074  page-position="only" in conditional-page-master-reference does not 
> work
> 
> 
> On Tue, Oct 30, 2012 at 10:18 AM, Pascal Sancho  wrote:
> Hi,
> 
> This should work.
> Please, file in a new bug entry, attaching the material you gave here.
> 
> 2012/10/29 franck FIMBEL :
> > Hi,
> >
> > I am trying to use the attribute page-position="only" in a
> > conditional-page-master-reference in order to produce a different page
> > header if the document has only one page (if I understood correctly, it
> > applies if the page is the first and the last page of the document at the
> > same time).
> >
> > 
> >   
> >  > page-position="only" />
> >  > />
> >   
> > 
> >
> > Unfortunately, using the attached fo and fop trunk, it does not work as
> > expected.
> > I get the header for multiple page even if I only have one page in the final
> > output document.
> >
> > If I change the attribute to last, it works fine.
> >  
> >   
> >  > page-position="last" />
> >  > />
> >   
> > 
> >
> >
> >
> > Is there something wrong with the way I use this attribute.
> >
> > Thanks in advance for your help
> 
> 
> --
> pascal
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 
> 
> 
> 
> -- 
> Franck
> 
> 
> 
> -- 
> Franck


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



Re: Simple SVG path doesn't render at all with FOP 1.0

2012-12-19 Thread Sergiu Dumitriu
On 12/19/2012 12:04 PM, Abel Braaksma wrote:
> Hi List,
> 
> I'm trying to get an SVG logo on a pageusing fo:instream-foreign-object,
> but all I got was total nothingness. So I trimmed down the example and
> after some experimenting, I got it working with svg:rect, but as soon as
> a svg:path turned up, it didn't get rendered.
> 
> Does anybody know of this issue? Or am I simply missing something? I'm
> using FOP 1.0 with Batik 1.7.From a long time ago I remember I had
> something similar and that I needed to setup a viewport or coordinates
> translation or something, but I can't find the example I had back then.
> 
> This is a rectangle drawn by svg:path, which doesn't work:
> 
>http://www.w3.org/2000/svg";
>   width="40px" height="40px">
> d="M 20 390 L 80 390 L 80 410 L 20 410 Z" />
>
> 
> Any helpis appreciated,
> 
> Thanks,
> Abel Braaksma

The problem is in the SVG content. Since you specify a width and a
height, but not a viewbox, the path is drawn, but outside the visible
area. If you increase the height of the SVG to 500, you'll see the image
somewhere very low.

So, make sure you're drawing inside the area that's actually displayed.

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



Simple SVG path doesn't render at all with FOP 1.0

2012-12-19 Thread Abel Braaksma
Hi List,

I'm trying to get an SVG logo on a pageusing fo:instream-foreign-object,
but all I got was total nothingness. So I trimmed down the example and
after some experimenting, I got it working with svg:rect, but as soon as
a svg:path turned up, it didn't get rendered.

Does anybody know of this issue? Or am I simply missing something? I'm
using FOP 1.0 with Batik 1.7.From a long time ago I remember I had
something similar and that I needed to setup a viewport or coordinates
translation or something, but I can't find the example I had back then.

This is a rectangle drawn by svg:path, which doesn't work:

   http://www.w3.org/2000/svg";
  width="40px" height="40px">
  
   

Any helpis appreciated,

Thanks,
Abel Braaksma


Re: page-position="only" in conditional-page-master-reference

2012-12-19 Thread franck FIMBEL
Hi,

Looking at the source code, I could trace a possible cause for this bug.
In o.a.f..layoutmgr.PageProvider, in the method getPage
a test is done to verify if the page is the last one
 boolean isLastPage = (lastPageIndex >= 0) && (index == lastPageIndex);

In the case of the fo attached (onlypage.fo) this test returns false
as lastPageIndex is still initialized to -1.

Further down the processing,
in o.a.f.fo.pagination.ConditionalPageMasterReference isValid method
the test (pagePosition == EN_ONLY && (isFirstPage && isLastPage)) fails


I do not have enough experience with the fop source code to provide a
possible patch, but hopefully this could help someone to do it for me.

Thanks in advance

Franck




On Tue, Oct 30, 2012 at 11:34 AM, franck FIMBEL  wrote:

> Thanks
>
> I filled the bug
>
> *Bug 54074  ** 
> *page-position="only"
> in conditional-page-master-reference does not work
>
>
> On Tue, Oct 30, 2012 at 10:18 AM, Pascal Sancho wrote:
>
>> Hi,
>>
>> This should work.
>> Please, file in a new bug entry, attaching the material you gave here.
>>
>> 2012/10/29 franck FIMBEL :
>> > Hi,
>> >
>> > I am trying to use the attribute page-position="only" in a
>> > conditional-page-master-reference in order to produce a different page
>> > header if the document has only one page (if I understood correctly, it
>> > applies if the page is the first and the last page of the document at
>> the
>> > same time).
>> >
>> > 
>> >   
>> > > > page-position="only" />
>> > > master-reference="Multiple"
>> > />
>> >   
>> > 
>> >
>> > Unfortunately, using the attached fo and fop trunk, it does not work as
>> > expected.
>> > I get the header for multiple page even if I only have one page in the
>> final
>> > output document.
>> >
>> > If I change the attribute to last, it works fine.
>> >  
>> >   
>> > > > page-position="last" />
>> > > master-reference="Multiple"
>> > />
>> >   
>> > 
>> >
>> >
>> >
>> > Is there something wrong with the way I use this attribute.
>> >
>> > Thanks in advance for your help
>>
>>
>> --
>> pascal
>>
>> -
>> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>
>>
>
>
> --
> Franck
>



-- 
Franck


Re: Omitting Bottom table border on page-break

2012-12-19 Thread Bonekrusher
Thanks Chris and sorry for the delay. I will give it a try.





--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Omitting-Bottom-table-border-on-page-break-tp37527p37601.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