Forum Replies Created

Viewing 15 posts - 3,271 through 3,285 (of 4,243 total)
  • Author
    Posts
  • in reply to: ClassCastException with endless loop in PDF page generation
    #29931

    Just finished a testing. The issue has been fixed in the DEV build. If everything goes fine with QA, we’ll publish a maintenance version on Friday.

    in reply to: Troubleshooting
    #27102

    Hi,
    the watermark image is not loaded like standard resources :
    – it doesn’t use the custom org.zefer.cache.ResourceProvider
    – it doesn’t support the java: protocol

    Sample code:

    PD4PageMark header = new PD4PageMark();
    header.setWatermark( “java:img/draft.gif”, new Rectangle(10,10,120,25), 50 );

    Error on console:
    invalid watermark image URL: java:img/draft.gif

    in reply to: Watermark image doesn’t accept java protocol
    #29938

    We’ve reproduced the issue and already fixed in the dev build.

    A new maintenance version will be published next days (after QA is finally passed)

    in reply to: Multiple Column PDF
    #29926

    For the time being there is only solution with tag. It is not exactly what you need, but in some cases it can be helpful.

    The tag tries to fit all given content into a specified box and automatically goes multicolumn when it is not possible with a single column.

    See pdf-generation-troubleshooting-f4/is-it-possible-to-toggle-multicolumn-from-page-to-page-t255.html

    Alternatively you may split your document to single- and multi-column parts, convert them separately and merge the resulting PDFs into a single doc (usin PD4ML’s PDF merge API).

    in reply to: Java Out Of Memory Error
    #29928

    No I haven’t. Here’s my current Java memory situation:

    java -XX:+PrintFlagsFinal -version | grep -iE ‘HeapSize|PermSize|ThreadStackSize’

    ajradich@dvm-ajradich2:/usr/local/html(BOS-740)$ java -XX:+PrintFlagsFinal -version | grep -iE ‘HeapSize|PermSize|ThreadStackSize’
    intx CompilerThreadStackSize = 0 {pd product}
    uintx ErgoHeapSizeLimit = 0 {product}
    uintx HeapSizePerGCThread = 87241520 {product}
    uintx InitialHeapSize := 65011712 {product}
    uintx LargePageHeapSizeThreshold = 134217728 {product}
    uintx MaxHeapSize := 1035993088 {product}
    intx ThreadStackSize = 1024 {pd product}
    intx VMThreadStackSize = 1024 {pd product}
    java version “1.8.0_91”
    Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
    Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)

    in reply to: Deployment / Configuration issues
    #27103

    Good afternoon,

    We are using your product PD4ML for some time.
    For resolving the urls for css-files and images we use the URL parameter in the PDML.render function.
    But recently we had the problem with one off our customers, that resolving this URL wasn’t working. The server could not connect to his own URL.
    For now we changed the host-file, so it redirect it’s own url to localhost.

    But I would like to fix to problem by letting PD4ML get the file directly through our Tomcat instance.
    I found the options:
    http://pd4ml.com/api/org/zefer/pd4ml/PD4ML.html#useServletContext(ServletContext)
    http://pd4ml.com/api/org/zefer/pd4ml/PD4ML.html#useHttpRequest(HttpServletRequest,%20HttpServletResponse)
    But the documentation off those functions are minimal.
    What do those functions do, do they use the context or the request to calculate the URL, or do they use some functionality off it’s container, in this case Tomcat .

    in reply to: ClassCastException with endless loop in PDF page generation
    #29932

    I just noticed that the fx2 version is out, we’ll give it a try.

    in reply to: Local converter 398 fx4/fx5 crash with a NPE
    #29891

    Is there any chance of progress with this one? I just tried with fx2, the issue seems unchanged.
    Previously, I tested fx1 on several computers in several paths (complete innocent containing paths too, no dollar signs etc.) and the NPE seems to be omnipresent.

    Could you please have a look at it? Having the standalone mode running again would be great help for tracking down some “paragraphs and lists in inline-block spans” rendering issues fx1 seems to be having. I’ll gladly report those to you then.

    Thanks+cheers,
    Viktor

    in reply to: Local converter 398 fx4/fx5 crash with a NPE
    #29892

    It seems fx2 does not fix the issue completely.

    Try to set in an auto-generated pd4borowser.properties

    viewer.executeble=whatever
    viewer.rtf.executeble=whatever

    in reply to: NullPointerException in a table/disp:none/float combination
    #29937

    v399fx2 should fix the issue.

    in reply to: Url resolving for CSS and images
    #29940

    > What do those functions do, do they use the context or the request to calculate
    > the URL, or do they use some functionality off it’s container, in this case Tomcat .

    When httpRequest/httpResponse are set, PD4ML uses a request dispatcher to load local (probably, dynamic) resources, like “/WEBAPP/images/logo.png” or “/page.jsp”

    It is done like that:

    [language=java:4w4ss1xh]RequestDispatcher dispatcher = httpRequest.getRequestDispatcher(url);
    BufferedHttpResponseWrapper wrapper = new BufferedHttpResponseWrapper(httpResponse, debugOn);
    dispatcher.include(httpRequest, wrapper);

    byte[] ret = wrapper.getOutputAsArray();[/language:4w4ss1xh]

    in reply to: Url resolving for CSS and images
    #29941

    Thank you for the response.
    This makes it perfectly clear how it works. It will probably fix my problem I have with server how can’t connect to themselves.

    in reply to: HTML/CSS rendering issues
    #27096

    A table in a table, with both tables a width off 100%.
    In the browser this will evenly divide the width based on the content off the column.
    In pd4ml the long sentence will get all the space it needs and even more, and thereby crushes the short sentence to its longest word.

    Example with htmlWidth 1024
    <br /> <table style="width: 100%; background-color:grey;"><br /> <tr><br /> <td ><br /> A short sentence with a average size and no width.<br /> </td><br /> <td><br /> <table style="width: 100%; background-color:green;"><br /> <tr><td><br /> A very long sentence that fits on one line. So that PD4ml will try to fit it all and pushes the short sences flat.<br /> </td></tr><br /> </table><br /> <br /> <br /> </td></tr><br /> </table><br />

    in reply to: HTML/CSS rendering issues
    #27104

    I am not able to apply the css to a specific jsp page while converting to pdf.
    I tried to debug the PD4ML in debug mode in each case it show the css files getting loaded in the console.

    But in one case it just show
    version: PD4ML 370fx2 DMS Pro
    done in 761ms.

    The same css files are included in all pages in the same order.

    can you please tell me what could be the issue.

    in reply to: Watermark image doesn’t accept java protocol
    #29939

    Thanks it is working

Viewing 15 posts - 3,271 through 3,285 (of 4,243 total)