You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Michonska Sylvie <sm...@sopragroup.com> on 2009/01/26 16:14:03 UTC

BREAK LINE

Hello,
 
We upgrade FOP from 0.20.5 to FOP 0.94. We use FOP to transform XML files to PDF files. We don't have the same graphic results  : 
- different line breaks
- different interlines.
 
How can we obtain the same graphic results ?
Example : 
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo=" http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="page1" page-width="210.00mm" page-height="297.00mm">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="page1">
<fo:flow flow-name="xsl-region-body">
<fo:block-container border-color="black" border-style="solid" border-width="0.5mm" left="20.00mm" top="20mm" position="absolute" width="168.80mm" height="297.00mm" text-indent="0.00mm" text-align="left">
<fo:block text-indent="0.00mm" font-size="48pt" line-height="1.2">
<fo:inline font-style="normal" font-family="Helvetica" font-weight="500" font-size="48pt" color="#000000" text-decoration="none">Nous vous invitons � v�rifier que les renseignements qui y figurent sont exacts et que les garanties et montants correspondent � vos besoins.</fo:inline>
</fo:block>
<fo:block/>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</fo:root>
 
With this fo, we obtain this two PDF Files.
 
Thanks for your help.
Sylvie.

Re: break line

Posted by Ulrich Mayring <ul...@denic.de>.
Michonska Sylvie wrote:
> Hi Vincent,
> Thanks for your response.
>
> But I want to change to FOP 0.94 (or 0.95) to transform XML files en PDF/A files
> (this isn't possible with FOP 0.20.5).
> We use FOP in a progiciel to edit dynamic documents.
> Our clients use our progiciel to edit or send letters or documents to their clients.
> They want to send PDF/A documents to replace PDF documents.
> Its must be same documents, our clients don't want to test all their letters or documents
> to adapt for the new presentation.
>
> Have you an other idea ?

There is no other way with FOP. However, what you could do is keep FOP 0.20.5 
and post-process the PDFs with a 3rd party application. There are some tools 
out there that proclaim to convert PDF to PDF/A, but I have no experience 
with any.

Ulrich


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


RE: break line

Posted by Michonska Sylvie <sm...@sopragroup.com>.
Hi Vincent,
Thanks for your response.

But I want to change to FOP 0.94 (or 0.95) to transform XML files en PDF/A files
(this isn't possible with FOP 0.20.5).
We use FOP in a progiciel to edit dynamic documents.
Our clients use our progiciel to edit or send letters or documents to their clients.
They want to send PDF/A documents to replace PDF documents. 
Its must be same documents, our clients don't want to test all their letters or documents 
to adapt for the new presentation. 

Have you an other idea ?
Thanks

Sylvie.


-----Message d'origine-----
De : Vincent Hennebert [mailto:vhennebert@gmail.com]
Envoyé : lundi 26 janvier 2009 16:56
À : fop-users@xmlgraphics.apache.org
Objet : Re: break line


Hi Sylvie,

Michonska Sylvie wrote:
> Hello,
>  
> We upgrade FOP from 0.20.5 to FOP 0.94. We use FOP to transform XML files to PDF files. We don't have the same graphic results  : 
> - different line breaks
> - different interlines.
>  
> How can we obtain the same graphic results ?

The answer is short: you can’t. FOP 0.94 follows the XSL-FO
Recommendation much better than FOP 0.20.5 did. If there is any
difference between 0.20.5 and 0.94, then 0.94 is likely to be right.
This is the case here for line heights.

Regarding the different ways paragraphs are broken, this is because
FOP 0.93 and onwards implement a line-breaking method that optimizes the
layout of each paragraph in its whole, instead of the line-by-line
break-as-soon-as-you-can method in FOP 0.20.5. You will probably agree
that the 0.94 rendering looks better than the 0.20.5 one (lines are more
evenly filled).

This means that you will have to modify your stylesheets and adapt them
to the new behaviour. It’s probably worth it, as you get much more
features with the new versions and will benefit from ongoing
improvements, whereas 0.20.5 is no longer supported.

If for some reason you absolutely need the exact same results as before,
then you will have to stick with 0.20.5.

BTW, you probably want to upgrade directly to the latest 0.95 version.

<snip/>
>  
> With this fo, we obtain this two PDF Files.
>  
> Thanks for your help.
> Sylvie.


HTH,
Vincent

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


Re: break line

Posted by Vincent Hennebert <vh...@gmail.com>.
Hi Sylvie,

Michonska Sylvie wrote:
> Hello,
>  
> We upgrade FOP from 0.20.5 to FOP 0.94. We use FOP to transform XML files to PDF files. We don't have the same graphic results  : 
> - different line breaks
> - different interlines.
>  
> How can we obtain the same graphic results ?

The answer is short: you can’t. FOP 0.94 follows the XSL-FO
Recommendation much better than FOP 0.20.5 did. If there is any
difference between 0.20.5 and 0.94, then 0.94 is likely to be right.
This is the case here for line heights.

Regarding the different ways paragraphs are broken, this is because
FOP 0.93 and onwards implement a line-breaking method that optimizes the
layout of each paragraph in its whole, instead of the line-by-line
break-as-soon-as-you-can method in FOP 0.20.5. You will probably agree
that the 0.94 rendering looks better than the 0.20.5 one (lines are more
evenly filled).

This means that you will have to modify your stylesheets and adapt them
to the new behaviour. It’s probably worth it, as you get much more
features with the new versions and will benefit from ongoing
improvements, whereas 0.20.5 is no longer supported.

If for some reason you absolutely need the exact same results as before,
then you will have to stick with 0.20.5.

BTW, you probably want to upgrade directly to the latest 0.95 version.

<snip/>
>  
> With this fo, we obtain this two PDF Files.
>  
> Thanks for your help.
> Sylvie.


HTH,
Vincent

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