PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) HTML/CSS rendering issues Multiple A4 pages side by side

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26461

    I was just wondering if and how it is possible to have A4 pages print to the PDF side by side (2 per line) instead of it being singular A4 pages scrolling downwards? Is this something that can be added into the header of my JSP layout?

    #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]

    #28226

    Thank you for your reply, I tried adding the JSP part to my JSP template however it created an error, should it of worked with only updating the JSP and none of the other parts? This is what my head tag looks like;

    <c:out value='${company.name}'></c:out> – <tiles:getasstring name="title"></tiles:getasstring>

    lee@domus.net)

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.