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 Manuel Strehl <ma...@stud.uni-regensburg.de> on 2007/04/25 08:53:57 UTC

File sizes under Win and Linux

Hi.

Just a point I noticed last night: Has someone experienced, too, that
PDF file sizes with Fop 0.93 under *Windows* are approx. 70% larger than
the ones of FOP 0.93 under *Linux*? It's in both cases the same JRE version.

Was this just a quaint FO file I had, or is this a general result? Btw:
I had inline SVG (in both cases handled by Batik 1.6), two PNGs and 3
TTF fonts to be embedded. Could the SVG be the reason?

Best
Manuel


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


Re: File sizes under Win and Linux

Posted by Manuel Strehl <ma...@physik.uni-regensburg.de>.
Ok, updating JRE to 1.6 fixes that. Files are now identical. Thanks!

Manuel


Jeremias Maerki schrieb:
> Ok, I see. It's the color profile again. FOP seems to have embedded the
> overly big Sun sRGB color profile. This is weird since I've added code
> that should explicitely use the much smaller profile that comes with FOP
> (as happens in your Linux case). At least on my Windows machines, this
> works perfectly. What I see, however, is that you use an ancient JRE on
> Windows. Can you please check if the same problem appears with the
> latest JRE 1.5 or 6?
>
> On 03.05.2007 21:26:03 Manuel Strehl wrote:
>   
>> I can't figure out, where the problem lies. I append a very simple FO 
>> file to this mail. These settings are made:
>>
>> * FOP 0.93
>> * JRE 1.5.0_01 (Win), JRE 1.5.0_07 (Lin)
>> * Win XP, Linux Deb Sarge
>> * No config file used, hence no special fonts embedded
>> * No internal fancy stuff like inline SVG and so on
>>
>> Results: I uploaded them to my webspace:
>>
>> * <http://www.manuel-strehl.de/fop/testcase4-win.pdf> (filesize 105 kB)
>> * <http://www.manuel-strehl.de/fop/testcase4-lin.pdf> (filesize 5 kB)
>>
>> differing in filesize by 2100% ;-) Opening them in Acrobat gives the 
>> exactly same result, including embedded fonts (only Helvetica).
>>
>> You'll find a ready made diff file there as well:
>>
>> * <http://www.manuel-strehl.de/fop/testcase.diff> (filesize 108 kB)
>>
>> but since some stuff is binary, the file looks rather weird.
>>
>> Best regards
>> Manuel
>>
>> PS: The FO file I used to produce above files:
>>
>> <?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
>>                     margin-top="0cm" margin-bottom="0cm"
>>                     margin-left="0cm" margin-right="0cm"
>>                     page-width="21cm" page-height="29.7cm"
>>                     master-name="A4">
>>             <fo:region-body
>>                     margin-bottom="0cm" margin-top="0cm"/>
>>         </fo:simple-page-master>
>>     </fo:layout-master-set>
>>    
>>     <fo:page-sequence master-reference="A4">
>>        
>>         <fo:title>Testcase file sizes</fo:title>
>>
>>         <fo:flow flow-name="xsl-region-body">
>>            
>>             <fo:block margin-top="14.1mm" font-size="4.9mm" 
>> letter-spacing="1.6" text-align="center">
>>                 F<fo:inline font-size="80%">ile</fo:inline> S<fo:inline 
>> font-size="80%">izes</fo:inline>
>>             </fo:block>
>>            
>>             <fo:block-container position="absolute" top="56mm" left="41mm"
>>                                                     >
>>                 <fo:block-container position="absolute" top="0mm">
>>                     <fo:block>1</fo:block>
>>                 </fo:block-container>
>>                 <fo:block-container position="absolute" top="58mm">
>>                     <fo:block>2</fo:block>
>>                 </fo:block-container>
>>                 <fo:block-container position="absolute" top="121mm">
>>                     <fo:block>3</fo:block>
>>                 </fo:block-container>
>>                 <fo:block-container position="absolute" top="173mm">
>>                     <fo:block>4</fo:block>
>>                 </fo:block-container>
>>             </fo:block-container>
>>            
>>         </fo:flow>
>>
>>     </fo:page-sequence>
>>
>> </fo:root>
>>
>>
>> Jeremias Maerki schrieb:
>>     
>>> How about doing a diff between the two PDFs to get an idea what's going
>>> on?
>>>
>>> I wouldn't normally expect any size difference between platforms for a
>>> PDF file if all the variables concerning FOP (especially the
>>> configuration) are the same.
>>>
>>> On 25.04.2007 08:53:57 Manuel Strehl wrote:
>>>   
>>>       
>>>> Hi.
>>>>
>>>> Just a point I noticed last night: Has someone experienced, too, that
>>>> PDF file sizes with Fop 0.93 under *Windows* are approx. 70% larger than
>>>> the ones of FOP 0.93 under *Linux*? It's in both cases the same JRE version.
>>>>
>>>> Was this just a quaint FO file I had, or is this a general result? Btw:
>>>> I had inline SVG (in both cases handled by Batik 1.6), two PNGs and 3
>>>> TTF fonts to be embedded. Could the SVG be the reason?
>>>>
>>>> Best
>>>> Manuel
>>>>     
>>>>         
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>   


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


Re: File sizes under Win and Linux

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Ok, I see. It's the color profile again. FOP seems to have embedded the
overly big Sun sRGB color profile. This is weird since I've added code
that should explicitely use the much smaller profile that comes with FOP
(as happens in your Linux case). At least on my Windows machines, this
works perfectly. What I see, however, is that you use an ancient JRE on
Windows. Can you please check if the same problem appears with the
latest JRE 1.5 or 6?

On 03.05.2007 21:26:03 Manuel Strehl wrote:
> I can't figure out, where the problem lies. I append a very simple FO 
> file to this mail. These settings are made:
> 
> * FOP 0.93
> * JRE 1.5.0_01 (Win), JRE 1.5.0_07 (Lin)
> * Win XP, Linux Deb Sarge
> * No config file used, hence no special fonts embedded
> * No internal fancy stuff like inline SVG and so on
> 
> Results: I uploaded them to my webspace:
> 
> * <http://www.manuel-strehl.de/fop/testcase4-win.pdf> (filesize 105 kB)
> * <http://www.manuel-strehl.de/fop/testcase4-lin.pdf> (filesize 5 kB)
> 
> differing in filesize by 2100% ;-) Opening them in Acrobat gives the 
> exactly same result, including embedded fonts (only Helvetica).
> 
> You'll find a ready made diff file there as well:
> 
> * <http://www.manuel-strehl.de/fop/testcase.diff> (filesize 108 kB)
> 
> but since some stuff is binary, the file looks rather weird.
> 
> Best regards
> Manuel
> 
> PS: The FO file I used to produce above files:
> 
> <?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
>                     margin-top="0cm" margin-bottom="0cm"
>                     margin-left="0cm" margin-right="0cm"
>                     page-width="21cm" page-height="29.7cm"
>                     master-name="A4">
>             <fo:region-body
>                     margin-bottom="0cm" margin-top="0cm"/>
>         </fo:simple-page-master>
>     </fo:layout-master-set>
>    
>     <fo:page-sequence master-reference="A4">
>        
>         <fo:title>Testcase file sizes</fo:title>
> 
>         <fo:flow flow-name="xsl-region-body">
>            
>             <fo:block margin-top="14.1mm" font-size="4.9mm" 
> letter-spacing="1.6" text-align="center">
>                 F<fo:inline font-size="80%">ile</fo:inline> S<fo:inline 
> font-size="80%">izes</fo:inline>
>             </fo:block>
>            
>             <fo:block-container position="absolute" top="56mm" left="41mm"
>                                                     >
>                 <fo:block-container position="absolute" top="0mm">
>                     <fo:block>1</fo:block>
>                 </fo:block-container>
>                 <fo:block-container position="absolute" top="58mm">
>                     <fo:block>2</fo:block>
>                 </fo:block-container>
>                 <fo:block-container position="absolute" top="121mm">
>                     <fo:block>3</fo:block>
>                 </fo:block-container>
>                 <fo:block-container position="absolute" top="173mm">
>                     <fo:block>4</fo:block>
>                 </fo:block-container>
>             </fo:block-container>
>            
>         </fo:flow>
> 
>     </fo:page-sequence>
> 
> </fo:root>
> 
> 
> Jeremias Maerki schrieb:
> > How about doing a diff between the two PDFs to get an idea what's going
> > on?
> >
> > I wouldn't normally expect any size difference between platforms for a
> > PDF file if all the variables concerning FOP (especially the
> > configuration) are the same.
> >
> > On 25.04.2007 08:53:57 Manuel Strehl wrote:
> >   
> >> Hi.
> >>
> >> Just a point I noticed last night: Has someone experienced, too, that
> >> PDF file sizes with Fop 0.93 under *Windows* are approx. 70% larger than
> >> the ones of FOP 0.93 under *Linux*? It's in both cases the same JRE version.
> >>
> >> Was this just a quaint FO file I had, or is this a general result? Btw:
> >> I had inline SVG (in both cases handled by Batik 1.6), two PNGs and 3
> >> TTF fonts to be embedded. Could the SVG be the reason?
> >>
> >> Best
> >> Manuel
> >>     


Jeremias Maerki


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


Re: File sizes under Win and Linux

Posted by Manuel Strehl <ma...@stud.uni-regensburg.de>.
I can't figure out, where the problem lies. I append a very simple FO 
file to this mail. These settings are made:

* FOP 0.93
* JRE 1.5.0_01 (Win), JRE 1.5.0_07 (Lin)
* Win XP, Linux Deb Sarge
* No config file used, hence no special fonts embedded
* No internal fancy stuff like inline SVG and so on

Results: I uploaded them to my webspace:

* <http://www.manuel-strehl.de/fop/testcase4-win.pdf> (filesize 105 kB)
* <http://www.manuel-strehl.de/fop/testcase4-lin.pdf> (filesize 5 kB)

differing in filesize by 2100% ;-) Opening them in Acrobat gives the 
exactly same result, including embedded fonts (only Helvetica).

You'll find a ready made diff file there as well:

* <http://www.manuel-strehl.de/fop/testcase.diff> (filesize 108 kB)

but since some stuff is binary, the file looks rather weird.

Best regards
Manuel

PS: The FO file I used to produce above files:

<?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
                    margin-top="0cm" margin-bottom="0cm"
                    margin-left="0cm" margin-right="0cm"
                    page-width="21cm" page-height="29.7cm"
                    master-name="A4">
            <fo:region-body
                    margin-bottom="0cm" margin-top="0cm"/>
        </fo:simple-page-master>
    </fo:layout-master-set>
   
    <fo:page-sequence master-reference="A4">
       
        <fo:title>Testcase file sizes</fo:title>

        <fo:flow flow-name="xsl-region-body">
           
            <fo:block margin-top="14.1mm" font-size="4.9mm" 
letter-spacing="1.6" text-align="center">
                F<fo:inline font-size="80%">ile</fo:inline> S<fo:inline 
font-size="80%">izes</fo:inline>
            </fo:block>
           
            <fo:block-container position="absolute" top="56mm" left="41mm"
                                                    >
                <fo:block-container position="absolute" top="0mm">
                    <fo:block>1</fo:block>
                </fo:block-container>
                <fo:block-container position="absolute" top="58mm">
                    <fo:block>2</fo:block>
                </fo:block-container>
                <fo:block-container position="absolute" top="121mm">
                    <fo:block>3</fo:block>
                </fo:block-container>
                <fo:block-container position="absolute" top="173mm">
                    <fo:block>4</fo:block>
                </fo:block-container>
            </fo:block-container>
           
        </fo:flow>

    </fo:page-sequence>

</fo:root>


Jeremias Maerki schrieb:
> How about doing a diff between the two PDFs to get an idea what's going
> on?
>
> I wouldn't normally expect any size difference between platforms for a
> PDF file if all the variables concerning FOP (especially the
> configuration) are the same.
>
> On 25.04.2007 08:53:57 Manuel Strehl wrote:
>   
>> Hi.
>>
>> Just a point I noticed last night: Has someone experienced, too, that
>> PDF file sizes with Fop 0.93 under *Windows* are approx. 70% larger than
>> the ones of FOP 0.93 under *Linux*? It's in both cases the same JRE version.
>>
>> Was this just a quaint FO file I had, or is this a general result? Btw:
>> I had inline SVG (in both cases handled by Batik 1.6), two PNGs and 3
>> TTF fonts to be embedded. Could the SVG be the reason?
>>
>> Best
>> Manuel
>>     
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>   


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


Re: File sizes under Win and Linux

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
How about doing a diff between the two PDFs to get an idea what's going
on?

I wouldn't normally expect any size difference between platforms for a
PDF file if all the variables concerning FOP (especially the
configuration) are the same.

On 25.04.2007 08:53:57 Manuel Strehl wrote:
> Hi.
> 
> Just a point I noticed last night: Has someone experienced, too, that
> PDF file sizes with Fop 0.93 under *Windows* are approx. 70% larger than
> the ones of FOP 0.93 under *Linux*? It's in both cases the same JRE version.
> 
> Was this just a quaint FO file I had, or is this a general result? Btw:
> I had inline SVG (in both cases handled by Batik 1.6), two PNGs and 3
> TTF fonts to be embedded. Could the SVG be the reason?
> 
> Best
> Manuel


Jeremias Maerki


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