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


    Could it be possible to have horizontally overflowing content to be printed on a separate page? Because of my content’s completely dynamic nature, I have no control over how many horizontal pages are required. It just is one huge table which can span in every direction. Scaling is not possible here either because font sizes are defined by the user.

    Currently it seems that PD4ML just skips the overflown part altogether. In my opinion, it should be treated differently.

    Is there a some kind of switch I’ve missed that could be used to fix this issue.

    I have no example here, but I bet you can imagine what happens to a too wide table.


    Determine the width of the table with javascript (or other method) and then pass that as the screen width (screenWidth=”400″ for example)

    That should get it to render the whole table, at least it has worked for us via the command line interface.


    PD4ML does not support JavaScript, so for the approach the measurement must be performed in a third-party tool (which adds yet another level of complexity).

    You may compute a content right edge position using PD4ML API and an idle render() call:

    pd4ml.render(url, byteArrayOutputStream);
    System.out.println(“right edge: ” + (Long)pd4ml.getLastRenderInfo(PD4Constants.PD4ML_RIGHT_EDGE_PX));[/language:2p69o76a]

    The returned right edge value (plus optionally some more margin pixels) can be used as pd4ml.setHtmlWidth() parameter value for an effective render() call.

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

The forum ‘Troubleshooting’ is closed to new topics and replies.