Re: strange page break

2011-03-07 Thread Hahnekamp, Rainer
And its working. Thank you very much!

Greetings,
Rainer

2011/3/7 J.Pietschmann 

> On 07.03.2011 01:53, Hahnekamp, Rainer wrote:
>
>> Hello everybody,
>>
>> I have the following simple xml markup that should put an image to the end
>> of the page. The image is public so can simply copy&  paste the code.
>>
>> For some reason fop generates a PDF file with two pages instead of one.
>> Are
>> there any hidden default spaces I should be aware of?
>>
>
> It looks like you got the usual "half-leading" issue: the image is
> embedded in a line, which gets some space added to the line height
> (default 20% of the font size).
> You could add font-size="0" to the block to avoid this issue, although
> rounding problems may still cause FOP to produce a line break (reducing
> the margin-top to 186.99mm should be safe).
>
> Search the spec at http://www.w3.org/TR/xsl/ for more "half-leading"
> to get more info.
>
>
>> ---
>> 
>> http://www.w3.org/1999/XSL/Format";>
>>  
>> > page-width="210mm" margin-top="15mm" margin-bottom="15mm"
>> margin-left="15mm"
>> margin-right="15mm">
>>  
>> 
>> 
>>  
>> 
>>  
>>   http://kiga.s3.amazonaws.com/4251-4500/4344/krokuszaehlspieleinfach44d693c7cf29b74d693c7d3e20e.svg
>> "
>> content-width="80mm"
>> content-height="80mm" />
>>  
>> 
>> 
>> 
>> ---
>>
>
>
> J.Pietschmann
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>


Re: strange page break

2011-03-07 Thread J.Pietschmann

On 07.03.2011 01:53, Hahnekamp, Rainer wrote:

Hello everybody,

I have the following simple xml markup that should put an image to the end
of the page. The image is public so can simply copy&  paste the code.

For some reason fop generates a PDF file with two pages instead of one. Are
there any hidden default spaces I should be aware of?


It looks like you got the usual "half-leading" issue: the image is
embedded in a line, which gets some space added to the line height
(default 20% of the font size).
You could add font-size="0" to the block to avoid this issue, although
rounding problems may still cause FOP to produce a line break (reducing
the margin-top to 186.99mm should be safe).

Search the spec at http://www.w3.org/TR/xsl/ for more "half-leading"
to get more info.


---

http://www.w3.org/1999/XSL/Format";>
  

  


  

  
   http://kiga.s3.amazonaws.com/4251-4500/4344/krokuszaehlspieleinfach44d693c7cf29b74d693c7d3e20e.svg";
content-width="80mm"
content-height="80mm" />
  



---



J.Pietschmann

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



Re: font substitution question (fop trunk)

2011-03-07 Thread Glenn Adams
This is a bug in FOP's native SVG rendering code, which maps SVG's bold to
600 instead of 700. I just reported this recently.

Glenn

On Mon, Mar 7, 2011 at 3:21 AM, Régis Fénéon  wrote:

> Hello,
>
> I'm trying the fop trunk version and now I get warning messages when I
> generate my document:
>
> 7 mars 2011 11:04:42 org.apache.fop.events.LoggingEventListener
> processEvent
> ATTENTION: Font "Arial,normal,600" not found. Substituting with
> "Arial,normal,700".
> 7 mars 2011 11:04:44 org.apache.fop.events.LoggingEventListener
> processEvent
> ATTENTION: Font "Arial,italic,600" not found. Substituting with
> "Arial,italic,700".
>
> I dont have this message with fop 1.0, using same document and
> configuration (I use Windows 7 system fonts).
>
> It's strange that fop cannot find a given size in a vectorial font, I
> thought vectorial fonts contained any size.
>
> Thanks,
> regis
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>


Re: PDF output: svg images with transparent color gradient

2011-03-07 Thread Régis Fénéon
Hi,

I have made a quick'n dirty patch to fop to add the following command to
each page section:

/Group << /S /Transparency /I true /CS /DeviceRGB>>

This solves the problem I had with transparent svg images, and I think
this is the same problem as the bug #45809. It would be nice if a fop
developper could take a look at this. It's an old bug that makes the pdf
documents look wrong, definitely not a minor bug for me.

Thanks,
regis


Le 26/02/2011 14:35, Tavmjong Bah a écrit :
> On Sat, 2011-02-26 at 11:51 +0100, Régis Fénéon wrote:
>> Hello,
>>
>> I use fop to convert docbook documents to pdf. I have some issues when a
>> document includes a svg image that contains a transparent color gradient:
>> - the colors of the image and the other parts of the page are wrong, it
>> looks like a different color space is used,
>> - this problem occurs not only on the page that contains the image, but
>> several pages before and after the image,
>> - the rest of the document has the correct colors.
>> The problem disappears if I modify the svg image to use an fully opaque
>> gradient.
>>
>> Versions: FOP 1.0, JRE 1.6.0_20, Windows 7 64-bit
> I had a similar problem with PNGs, JPGs, and some SVGs when viewing
> files using Acroread on Linux and to a lesser extent with Acroread on
> Windows XP (Evince got the colors correct). By default, PDF uses
> DeviceCMYK when you probably want DeviceRGB for compositing a page with
> an SVG. I wrote a little script that goes through the PDF file and adds:
>
>   /Group << /S /Transparency /I true /CS /DeviceRGB>>
>
> after each /Page (I found this workaround on the bmeps web site). I then
> ran the PDF file through pdftk to fix the references. This fixed the
> problem for me. Check the fop-users archives for September 2009 for more
> details.
>
>   Tav
>
>
>
>
> -
> 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



font substitution question (fop trunk)

2011-03-07 Thread Régis Fénéon
Hello,

I'm trying the fop trunk version and now I get warning messages when I
generate my document:

7 mars 2011 11:04:42 org.apache.fop.events.LoggingEventListener processEvent
ATTENTION: Font "Arial,normal,600" not found. Substituting with
"Arial,normal,700".
7 mars 2011 11:04:44 org.apache.fop.events.LoggingEventListener processEvent
ATTENTION: Font "Arial,italic,600" not found. Substituting with
"Arial,italic,700".

I dont have this message with fop 1.0, using same document and
configuration (I use Windows 7 system fonts).

It's strange that fop cannot find a given size in a vectorial font, I
thought vectorial fonts contained any size.

Thanks,
regis

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