#28225

PD4ML defined the following rendering switch:

[language=java:3h9fogh4]/**
* “pd4ml.document.view.mode” defines default view mode for generated document, one from:
* “SinglePage”, “OneColumn”, “TwoColumnLeft”, “TwoColumnRight”, “TwoPageLeft”, “TwoPageRight”;
* @see PD4ML#setDynamicParams(java.util.Map)
*/
public static final String PD4ML_DOCUMENT_VIEW_MODE = “pd4ml.document.view.mode”;[/language:3h9fogh4]

In Java it can be defined with the code:

[language=java:3h9fogh4]Map m = new HashMap();
m.put(PD4Constants.PD4ML_DOCUMENT_VIEW_MODE, “TwoColumnLeft”);
pd4ml.setDynamicParams(m);[/language:3h9fogh4]

PD4ML JSP custom tags do the same that way:

[language=xml:3h9fogh4] [/language:3h9fogh4]