Eliminating block's padding around an external-graphic

2013-08-10 Thread cwulf
Hi, 

I'm placing images with different heights into table rows. The highest image
within a row should define the height of the row. All other images are
centered vertically. The table-cells get a background-color, so when an
image's height is less than the height of the highest image of its row, one
should see the background-color above and below that image.

But I've noticed the background-color above and below the highest image,
too. Especially in rows with just images of definitely same size (where the
background-color never should appear) I can see a padding to the top and a
larger padding to the bottom.

So I made a simple test without a table:



The result is:

http://apache-fop.1065347.n5.nabble.com/file/n39020/screen.png 

Altough *padding*, *margin* (and some other properties I tried to fix this)
are set to *0* for the *block* and the *external-graphic* there is still
some space above and below the image.

The result I expected would be something like this:

http://apache-fop.1065347.n5.nabble.com/file/n39020/nominal.png 

What properties can I add to eliminate that (cyan) space above and below the
image?

Thx a lot in advance,
Christoph

P.S.: I am using FOP 1.0



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Eliminating-block-s-padding-around-an-external-graphic-tp39020.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: Eliminating block's padding around an external-graphic

2013-08-10 Thread Robert Meyer
Hi Christoph,

If I'm understanding correctly, this issue is caused by FOP taking into 
consideration line spacing even when there's no text. Try setting the parent 
block to have font-size=0 and that should resolve the problem.

If that doesn't resolve it or do what you want it to, it might be best to post 
a sample FO file to show the problem and I'll take another look.

Regards,

Robert Meyer

From: cwulfmailto:christoph.w...@jpool.net
Sent: ‎10/‎08/‎2013 12:49
To: fop-users@xmlgraphics.apache.orgmailto:fop-users@xmlgraphics.apache.org
Subject: Eliminating block's padding around an external-graphic

Hi,

I'm placing images with different heights into table rows. The highest image
within a row should define the height of the row. All other images are
centered vertically. The table-cells get a background-color, so when an
image's height is less than the height of the highest image of its row, one
should see the background-color above and below that image.

But I've noticed the background-color above and below the highest image,
too. Especially in rows with just images of definitely same size (where the
background-color never should appear) I can see a padding to the top and a
larger padding to the bottom.

So I made a simple test without a table:



The result is:

http://apache-fop.1065347.n5.nabble.com/file/n39020/screen.png

Altough *padding*, *margin* (and some other properties I tried to fix this)
are set to *0* for the *block* and the *external-graphic* there is still
some space above and below the image.

The result I expected would be something like this:

http://apache-fop.1065347.n5.nabble.com/file/n39020/nominal.png

What properties can I add to eliminate that (cyan) space above and below the
image?

Thx a lot in advance,
Christoph

P.S.: I am using FOP 1.0



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Eliminating-block-s-padding-around-an-external-graphic-tp39020.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: Eliminating block's padding around an external-graphic

2013-08-10 Thread cwulf
Hello Robert,

that has been it. Thanks a lot!

Regards,
Christoph


Robert Meyer-5 wrote
 If I'm understanding correctly, this issue is caused by FOP taking into
 consideration line spacing even when there's no text. Try setting the
 parent block to have font-size=0 and that should resolve the problem.





--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Eliminating-block-s-padding-around-an-external-graphic-tp39020p39022.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: Memory usage and page numbering...

2013-08-10 Thread Mahesh Rayudu
Hi,

I noticed memory leak issue in font complex-scripts features with trunk
code. Not seen any memory issues with page numbers/totals. I tested my code
on Mac 10.7 and CentOS 6.4 with visualvm profiler.

Thank you,
Mahesh


On Fri, Aug 9, 2013 at 12:20 AM, Bernard Giannetti 
thebernmeis...@hotmail.com wrote:

 Hi,

 I have a Java desktop application, using embedded FOP to create PDFs from
 a data XML file and an XSLT file.  I wanted to see how much memory is being
 used, given the point about memory usage, page numbers and page totals (
 http://xmlgraphics.apache.org/fop/1.1/running.html#memory).

 My PDF reports have a page N of TOTAL at the bottom right of each page
 and I wanted to see the memory usage and compare to no page numbers and
 just page numbers without totals.  I also used the two variations for page
 number totals (XSL 1.0 and XSL 1.1).

 To work out the memory usage I computed the difference when
 calling Runtime.getRuntime().freeMemory() at the start and end of the
 render process.  I ran each render variation 5 times from a shell script
 and each render kicked off a separate JVM to avoid any caching.  Regardless
 of whether I had page numbers or not, and page totals or not, it seemed the
 result is that there is no difference between having page numbers/totals or
 not.  Sometimes the memory usage was 50 MB and sometimes 200 MB.

 I then used the sample code and data files from embedded FOP,
 http://svn.apache.org/viewvc/xmlgraphics/fop/tags/fop-1_1/examples/embedding/.
  I modified the data XML file to contain lots of entries, giving a data
 file size of about 1 MB.  I also modified the XLST file to include pages
 numbers and then also page totals.  Again, I noticed no difference in
 memory usage.

 Given the varying values for memory usage I'm seeing, I assume my quick
 and dirty method is inadequate.  I expected variation, but mostly to see
 far less memory usage when no page totals were used, but that's not the
 case.

 Has anyone seen similar results?  Does using page totals really use THAT
 much more memory compared to not using page totals?


 Thanks in advance,

 Bernard.



Re: Memory usage and page numbering...

2013-08-10 Thread Glenn Adams
On Sat, Aug 10, 2013 at 5:55 PM, Mahesh Rayudu mahesh.ray...@gmail.comwrote:

 I noticed memory leak issue in font complex-scripts features with trunk
 code. Not seen any memory issues with page numbers/totals. I tested my code
 on Mac 10.7 and CentOS 6.4 with visualvm profiler.


Be specific.