Right alignment of page references in TOC

2013-10-24 Thread honyk
Dear All,

I've encountered a weird alignment issue (FOP 1.1) when formatting TOC, see

http://drifted.in/other/_toc.fo
http://drifted.in/other/_toc.pdf

It is partly caused by the combination of itemized lists (the second level)
and blocks (the rest). Every case is almost consistent, but the right edge
is different. 

I am writing 'almost' as there are slight fluctuations in the former group
which depends on the text before the leader line.
Please compare items 2.1, 2.2 (iii iii iii) and 2.3 (iii).

Is there any workaround for this? 

Thanks, Jan


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



RE: PDF images

2013-10-24 Thread honyk
On 2013-10-24 Luis Bernardo wrote:
 On 10/23/13 7:41 PM, honyk wrote:
 
  taking into an account that PDF images are not supported:
 
  http://xmlgraphics.apache.org/fop/1.1/graphics.html
 
  I am still trying to investigate it via PDF images extension:
 
  http://www.jeremias-maerki.ch/download/fop/pdf-images/
 
  Unfortunately, I am getting this fatal error
 
 See http://xmlgraphics.apache.org/fop/fop-pdf-images.html. The provided
 packages work with fop-1.1.
 
Thanks for the link, it would be nice to mention this possibility in the
'graphics' page, I've completely overlooked this extension even it is in the
left navigation tree of the website...

Btw, it works seemlessly, great job!

Jan



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



Shifted image when centered

2013-10-24 Thread honyk
Dear All,

I am just curious if this is a bug or feature...

When this FO code is used, the title page image is shifted do the left (the
left edge is outside the page). It happens when both the page master margin
(20mm) and the image's block text-align (center) properties are set.

If any of them is removed, the image is displayed as expected (not left
cropped).

That text-align=center is redundant here and can be removed. I am
reporting it as I was surprised by this behaviour.

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  
  fo:layout-master-set
  fo:simple-page-master master-name=titlepage page-width=210mm
page-height=297mm margin=20mm
 fo:region-body/
  /fo:simple-page-master  
  /fo:layout-master-set

  fo:page-sequence master-reference=titlepage  
  fo:flow flow-name=xsl-region-body
 fo:block-container absolute-position=fixed left=0mm top=0mm
width=100% height=100%
fo:block text-align=center
   fo:external-graphic content-width=210mm
src=Images/TitlePageImage.jpg/
/fo:block
 /fo:block-container
  /fo:flow
  /fo:page-sequence
/fo:root

Regards, Jan


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



Re: Right alignment of page references in TOC

2013-10-24 Thread Alexey Neyman
Looks like this issue:

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

Regards,
Alexey.

On Thursday, October 24, 2013 06:39:50 PM honyk wrote:
 Dear All,
 
 I've encountered a weird alignment issue (FOP 1.1) when formatting TOC, see
 
 http://drifted.in/other/_toc.fo
 http://drifted.in/other/_toc.pdf
 
 It is partly caused by the combination of itemized lists (the second level)
 and blocks (the rest). Every case is almost consistent, but the right edge
 is different.
 
 I am writing 'almost' as there are slight fluctuations in the former group
 which depends on the text before the leader line.
 Please compare items 2.1, 2.2 (iii iii iii) and 2.3 (iii).
 
 Is there any workaround for this?
 
 Thanks, Jan
 
 
 -
 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



Re: Shifted image when centered

2013-10-24 Thread Luis Bernardo


What is the purpose of the absolute-position=fixed left=0mm top=0mm?

The odd behavior you see is because of that, and also due to a bug in 
fop-1.1 that pushes images to the left of the right margin if they 
would  overflow it (the right margin). The bug has been fixed in trunk, 
and didn't exist in 1.0 either (it was a 1.1 regression).


If you use trunk or 1.0 text-align=left|center|right works as expected.

On 10/24/13 5:52 PM, honyk wrote:

Dear All,

I am just curious if this is a bug or feature...

When this FO code is used, the title page image is shifted do the left (the
left edge is outside the page). It happens when both the page master margin
(20mm) and the image's block text-align (center) properties are set.

If any of them is removed, the image is displayed as expected (not left
cropped).

That text-align=center is redundant here and can be removed. I am
reporting it as I was surprised by this behaviour.

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
   
   fo:layout-master-set

   fo:simple-page-master master-name=titlepage page-width=210mm
page-height=297mm margin=20mm
  fo:region-body/
   /fo:simple-page-master
   /fo:layout-master-set
 
   fo:page-sequence master-reference=titlepage

   fo:flow flow-name=xsl-region-body
  fo:block-container absolute-position=fixed left=0mm top=0mm
width=100% height=100%
 fo:block text-align=center
fo:external-graphic content-width=210mm
src=Images/TitlePageImage.jpg/
 /fo:block
  /fo:block-container
   /fo:flow
   /fo:page-sequence
/fo:root

Regards, Jan


-
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