Forum Replies Created

Viewing 15 posts - 1,066 through 1,080 (of 1,410 total)
  • Author
    Posts
  • in reply to: Custom PD4ML classloader
    #28194

    Current versions load the class like that:

    Class c = Class.forName(className);
    ResourceProvider provider = (ResourceProvider) c.newInstance();

    We’ve just changed to

    Class c;
    try {
    c = Class.forName(className);
    } catch (ClassNotFoundException e) {
    try {
    c = Thread.currentThread().getContextClassLoader().loadClass(className);
    } catch (ClassNotFoundException e1) {
    c = ResourceCache.class.getClassLoader().loadClass(className);
    }
    }

    (ResourceCache is one of PD4ML classess)

    In theory it should help. Please contact support pd4ml com if you have anything to add to the code or if you want to test it with your application before we released new version.

    in reply to: uncorrect size for image
    #27822

    The archive does not contain images 🙁
    Please add

    in reply to: pd4ml:page.footer Inline tag not rendering
    #28199

    <pd4ml:page.footer> and <pd4ml:page.header> tags do not impact current page (they applied to subsequent pages only). So if you place the definition to the very end of HTML, there is no pages anymore, to apply the footer.

    In order to resolve the issue you need to place the footer definition immediately after opening <body> tag or before opening <html>.

    in reply to: Form in a sheet
    #28205

    If the HTML document has only the form, pd4ml.fitPageVertically() should help.

    If the form is a section of a bigger document, there are possible workarounds with proprietary tag.

    in reply to: media "print"
    #28198

    Glad, you found the solution

    in reply to: background print
    #28172

    For security reasons, a silent background print of online documents is not allowed by web browsers and PDF viewers.

    You may only force PDF viewer to open the print dialog. See
    html-pdf-faq-f1/automatically-open-print-dialog-t158.html

    The topic also explains how to start a print job from command line.

    in reply to: Black screen in pdf
    #28185

    The newest development build addresses the issue. Please contact support pd4ml com for the trial version.

    in reply to: Is it possible to toggle multicolumn from page to page
    #28049

    Unfortunately the feature is not supported.

    If multicolumn is needed for a single page only, you may play with undocumented <pd4ml:layoutbox>content</pd4ml:layoutbox>
    It “understands” the following attributes (numbers are default values):

    maxcols=4
    colspacing=20
    scalelimit=0.75
    scalestep=0.02
    width
    height

    The purpose of the tag is to try to fit given nested content into a box, limited by height/width. It scales the content down till scalelimit. If a single column is not sufficient for the content, it tries to layout into 2 columns etc.

    in reply to: PD4ML.render proxy issue
    #28192

    You may specify proxy server address an port with the standard way for Java applications – usin http.proxyServer and http.proxyPort environment variables.

    in reply to: PD4ML.render proxy issue
    #28191

    Try to propagate session ID with PD4ML requests. There is an API call intended for that:

    pd4ml.setCookie( "JSESSIONID", cookieValue );

    where cookieValue is something like that: “9034657927465;path=/”

    in reply to: nullPointerException when rendering page
    #27615

    Please give a try to PD4ML v361b1
    As far as I remember we addressed a similar issue (caused by image parsing in order to determine its type).

    in reply to: [.NET] HTML rendering problem
    #28143

    > Is this version already available for purchase?

    It is not available for download yet, but we are ready to send it to you directly by request.

    in reply to: PD4ML multicolumn functionality does not support Arabic RTL
    #28095

    Please send source HTML and resulting PDF samples to support pd4ml com

    in reply to: body background-color vs. background-image
    #28188

    You may define a page background this way:

    PD4PageMark footer = new PD4PageMark();
    footer.setPageBackgroundImageUrl("http://server/img/background.jpeg");
    pd4ml.setPageFooter(footer);

    It will stretch the image to cover the choosen paper format, so it makes sense to prepare a background image whose aspect ratio is identical to the format.

    in reply to: PDF printing problem
    #28187

    A simplest workaround for the problem is to choose “Scale To Fit” option in the print dialog.

    A better solution would be do determine a reason, why it prints so small. What is a target paper format you use by conversion? (By default it is A4)

Viewing 15 posts - 1,066 through 1,080 (of 1,410 total)