PDF Generating Tool Support Forum

HOME   Login   Register    Search

Post a reply
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Font size:
Font colour
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are OFF
Disable BBCode
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the Board Administrator.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.

Topic review - Horizontal overflow to a new page
Post subject:  Re: Horizontal overflow to a new page
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));

The returned right edge value (plus optionally some more margin pixels) can be used as pd4ml.setHtmlWidth() parameter value for an effective render() call.
    Post Posted: 20 Sep 2011, 18:05
Post subject:  Re: Horizontal overflow to a new page
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.
    Post Posted: 15 Sep 2011, 20:54
Post subject:  Horizontal overflow to a new page

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.
    Post Posted: 13 Apr 2011, 13:20

Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share