clipping external-graphic
Howdy. I am producing PDFs with external graphics. In some cases the graphic is larger than the space available for it and it should be scaled down. This sort of works (only scales if width is too large, but not height). In orther cases, the image should be clipped (not scaled down to fit into the space). For instance, one graphic is a series of dots; rather than compress the dots, the right side of the graphic should be trimmed off. According to the spec, if the external-graphic tag's overflow=hidden (or NOT visible), and clip=auto, the image should be clipped to the parent block's size (if it is specified). Has anyone else had this work? Is this a bug? Thanks. = - Mr Lauren Commons DISCLAIMER: The opinions expressed ARE in fact those of my employer. __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/
Re: clipping external-graphic
Lauren Commons wrote: Howdy. According to the spec, if the external-graphic tag's overflow=hidden (or NOT visible), and clip=auto, the image should be clipped to the parent block's size (if it is specified). I think clipping (overflow=hidden) is not implemented. You can try to work around this by using an SVG, which can be clipped at the SVG viewport. SVGs can refer to graphic files in other formats. In case of the dots, check whether you should rather use fo:leader. J.Pietschmann
Re: clipping external-graphic
--- J.Pietschmann [EMAIL PROTECTED] wrote: ... I think clipping (overflow=hidden) is not implemented. Heck. Should this be mentioned in the Limitations section of the FOP website? You can try to work around this by using an SVG, which can be clipped at the SVG viewport. SVGs can refer to graphic files in other formats. Hmmm... I'll look into that. In case of the dots, check whether you should rather use fo:leader. For the dots I could probably do that, but there are some others that I also need to do that the leader doesn't support. Thanks!! J.Pietschmann Lauren = - Mr Lauren Commons DISCLAIMER: The opinions expressed ARE in fact those of my employer. __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/