Quantcast
Channel: Adobe Community : Popular Discussions - Reporting
Viewing all articles
Browse latest Browse all 38309

CFDocument Image Maps

$
0
0
We've run into issues using client image maps in CFDocument. We're able to render the image maps fine, and when we use a fixed image size like 800x600, they work fine:

<img src="/express/cache/#imagename#" class="map" usemap="##map1" border="1" width="800" height="600"/>

However, when we attempt to use percentages to get the image to scale to the size of the whole page,

<img src="/express/cache/#imagename#" class="map" usemap="##map1" border="1" width="100%" height="100%"/>

we get a ColdFusion error, as follows:

An exception occurred when performing document processing.
The cause of this exception was that: coldfusion.document.spi.DocumentExportException: java.lang.NumberFormatException: For input string: "100%".

Taking out the map reference makes this work as expected.

So, okay, the parser must be getting confused because it doesn't know how to lay out the image map with the x% scaling. We'll just use the exact size of the image to scale it to the size we want... This is when we run into another issue: We can't seem to accurately size images in CFDocument. When we set the image to 1024x768 (or something like that), the image renders at the exact same size! (The underlying PNG is actually 2400 x 1800).

So, the questions are:

1) Is there any way to dynamically scale the image and use image maps in CFDocument, or
2) How in the world does the image scaling work (in the black box)?

We just want to have a full screen mapped image that we can use as a TOC for our CFDocument.

Thanks!

Viewing all articles
Browse latest Browse all 38309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>