xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: Including an image as a page
Date Thu, 17 Apr 2008 12:24:35 GMT
On 17.04.2008 14:12:47 John Brown wrote:
> Jeremias Maerki <dev <at> jeremias-maerki.ch> writes:
> 
> > On the block containing the fo:external-graphic add these properties:
> > font-size="0" line-height="0" break-before="page" break-after="page"
> 
> When I made the changes, I saw that the page seemed to be indented, so I
> added 'start-indent="0" end-indent="0"' also. The appearance seems to be
> perfect now, but I still get one warning (I got 2 originally):
> 
> WARNING: Part/page 0 overflows the available area in block-progression
> dimension. (fo:block-container, location: 317/58)
> How can I avoid this warning? Can I ignore it?
> 
> The relevant block now looks like this:
> <fo:block id="id2489196" text-align="center" line-height="0"
>           font-size="0" break-before="page" break-after="page" 
>           start-indent="0" end-indent="0">
>   <fo:external-graphic src="url(doc1-page1.pdf)" 
>                        width="8.5in" height="11in" 
>                        content-width="8.5in" content-height="11in"             
>                        
>                        text-align="center" display-align="center"/>
> </fo:block>

That's not the relevant block. Look closer: the warning is about the
block-container further up in your file. The height of the
block-container is set to 0.01in and its contents (the fo:leader) grow
beyond that. Just remove the leader.

> 
> 
> ><snip/>
> > 
> > A better solution might be to investigate if you can create a custom
> > extension for DocBook so you could still use fox:external-document from
> > inside DocBook. But I don't know enough about DocBook to know if that is
> > even doable.
> > 
> 
> Now that I know the FO that works, I will probably try to see if I can
> extend my custom stylesheet to add the necessary attributes. I think that
> this way is easier because it does not disturb the structure of the DocBook
> document. 
> 
> The DocBook docs explain how to add elements to the Docbook DTD, but
> considering that I don't really know what I am doing, I would not want to
> take on that task.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org




Jeremias Maerki


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


Mime
View raw message