Variable (Keydef) Maps with Text and Images | Community
Skip to main content
sschnelbach
Level 5
November 14, 2023

Variable (Keydef) Maps with Text and Images

  • November 14, 2023
  • 1 reply
  • 1576 views

In some of our larger manuals, we need to be able to use multiple variable (keydef) maps: some with text keydefs and some with image keydefs (or a mix of both types of keydefs in the same variable map file).

 

Currently, as long as the keydefs are text only, we can have variable maps inserted into our primary map, and the variable/keys generate without any problems. Image keydefs must be placed outside of variable maps and inside the primary map to generate the output correctly.

 

Is there any way to be able to have variable/keydef map files that include both the image keydefs and text keydef?

 

AEM Guides (UUID) v4.2 On-Prem Installation (late April/early May 2023)
AEM 6.5.15 On-Prem Installation

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Adobe Employee
November 23, 2023

Hi @sschnelbach 
Attached is the sample package containing variable/keydef map with both image and text keydefs, which has been inserted into the primary map. Please try and let us know if it meets your requirements.

Note: Upload the package directly from Assets UI and extract its content to a folder using 'Extract Archive' option. 

sschnelbach
Level 5
November 27, 2023

I need to investigate further. When I originally ran into this problem, any image variable defined within a keydef map was outputting as a blank square.

 

Today, the text keydef maps AND image keydefs maps are all generating PDF outputs perfectly. I have two text keydef maps and one image keydef map -- all working now in my test maps and topics.

 

Are there any background tasks within either AEM or AEM Guides that would affect performance like this? Or, as we sometimes see, images that generate in the PDF (Native PDF Publishing) as unusably pixelated, but if I wait a few minutes and generate another PDF, the image will be crisp and clear?

DivrajSingh
Adobe Employee
Adobe Employee
November 28, 2023

@sschnelbach :

From what you described I think following explanation may help:

  • When an image is uploaded to AEM, AEM Assets digital assets workflow will process it to create renditions of that image which can be associated to different output formats. This processing (workflow execution) may take some time (depending on load in the system). By default only original rendition is available.
  • And PDF publishing uses one of those rendition (depending on the image format as configured in /libs/fmdita/config/renditionmap.xml - can be overlayed to /apps for any custom changes). If the desired renditions are not available the original one is scaled as per output format.

I am still open to understand what happened in the other scenario where the images were shown as blank square. Is that still happening? Please also share the image format (png, jpg, svg or any other) you are using to test this?