[xep-support] Loosing content / Image scaling issue

Kevin Brown kevin at renderx.com
Thu Mar 4 18:26:56 PST 2010


We solved this differently for a recent project. We did solve it this way
because no one cares about the "size" of a page PDF. It is not relevant to
what was trying to be accomplished.

What likely is different is that there is a distinction in the inline
content about:

1) What is an inline image and
2) What is an image that should take a full page (Or more but that is
irrelevant)

Without such a distinction, no one doing publishing should be. You need to
know this before figuring out how to create *real* published pages. As in,
you should have some notion about how to layout a page within your templates
and full-page or very large images should be marked differently than a
half-page or a small inline graphic. 

For our solution, we process those very large images into a separate page
sequence. This page sequence is set to very large page dimensions -- larger
than any expected size for a page (read: 5ft by 5ft or something like that).
We process this to intermediate format and in that intermediate format we
read actual dimensions and then automatically trim the page dimensions to
match that size. This done server side through post processing the
intermediate format and because it is manipulation of XML results in 0.001
secs additional processing time.

We then format the document to PDF.

The result is a PDF with (or course) mixed page dimensions. That huge image
(and in our case the 42 column, 768 row table) is on a single page in the
PDF. The end user's PDF viewer supports the panning and zooming needed to
see the whole thing or zoom in. The page is not trying to be predictive to
fit some pre-conceived notion of size, the size expands to fit the content.

If you are not delivering print materials and you are delivering PDF then
this is a much better solution.

Kevin Brown
RenderX

-----Original Message-----
From: owner-xep-support at renderx.com [mailto:owner-xep-support at renderx.com]
On Behalf Of Stefan Kleineikenscheidt [k15t.com]
Sent: Tuesday, February 23, 2010 12:59 PM
To: xep-support at renderx.com
Subject: Re: [xep-support] Loosing content / Image scaling issue

Hi all,

I work with Tobias and we have tried various workaround, but it seems
that this can only properly fixed with support for "scale-down-to-fit"
as defined by XSL 1.1 [1]. We do know that this is XSL 1.1 and XEP is
only supporting 1.0 officially, however it is still hard for us to
explain to customers why we are losing content.

I noticed that this has been already a topic on this list [2] and I
wonder whether RenderX is planning to implement this anytime soon?

-Stefan


[1] http://www.w3.org/TR/xsl/
[2] http://services.renderx.com/lists/xep-support/6099.html



On Tue, Feb 9, 2010 at 8:18 PM, Tobias Anstett [k15t.com]
<tobias at k15t.com> wrote:
> Hi,
>
> we recently noticed that in some situations XEP drops images.
>
> The problem occurs sometimes when exporting very big pictures which
> need to be resized. Therefore we use the scale-to-fit property to
> scale the image with respect to its width as illustrated below:
>
> <fo:external-graphic
>            src="url(picture.jpg)"
>            width="100%"
>            height="auto"
>            content-width="scale-to-fit"
>            content-height="100%"/>
>
> This works fine in most of the cases. However, if the height of the
> image is still to big to get rendered properly to the page after it
> was already resized, XEP drops the image with the following error:
> [core.export.impl.XepExporter$XepLogger] error no space for an
> element, trying to recover.
>
> For us, loosing information is a very big issue. Is there any known
workaround?
>
> Cheers,
> Tobias
> -------------------
> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
> in the body of the message to majordomo at renderx.com from the address
> you are subscribed from.
> (*) By using the Service, you expressly agree to these Terms of Service
http://www.renderx.com/terms-of-service.html
>

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
http://www.renderx.com/terms-of-service.html


-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html



More information about the Xep-support mailing list