Forum Replies Created

Viewing 15 posts - 391 through 405 (of 4,249 total)
  • Author
    Posts
  • in reply to: Radio Buttons
    #27829

    The server-side should care the HTML includes the checked state like
    <INPUT name="ACCOUNT_TYPE" type="radio" VALUE="2" CHECKED>
    before the document passed to PD4ML.

    However I may imagine the CHECKED keyword is expected by missing there bacause of the session ID is not passed to PD4ML with the HTML template URL. The following info may help:
    post416.html#p500

    in reply to: Base URL Issue
    #27830

    URL base = new URL(“file:/g:/acme/web);

    should work if the image SRC defined as “images/image.png”, not as “/images/image.png”

    in reply to: Possible security hole in pd4ml
    #27762

    Dea Sirs,

    Thank you for explaining. This is not an issue for us and most I would suspect.

    in reply to: Base URL Issue
    #27831

    The css and images are stored root web folder like “/images/image.png”.

    How can this be resolved?

    in reply to: Deployment / Configuration issues
    #26328

    Hi,

    I am using the java version of pd4ml pro with command line execution on unix.

    I have modified to pd4browser.properties file for page fomat LETTER.
    ..
    page.format=LETTER

    But it seems not considered for conversion – the pdf ouput is still in A4.

    Could it be a path issue? The properties file is in the same directory as the pd4ml.jar file. Input Html file and the calling Perl script are in different directories.

    Thanks!

    in reply to: PD4ML Tips & Tricks
    #26329

    I want to save PDF file directly in to the server (folder). on that time it will open a pop up to save file in to client browser.

    I have seen solution on http://pd4ml.com/php.htm ,

    If you need a generated PDF not to be sent to clients browser, but saved to the disk, add ‘ >/generated/file/location/file.pdf’ command-line redirect and remove header(‘Content-type: application/pdf’); directive in pd4ml.php.

    Please explain me briefly that where i Add ‘>/generated/file/location/file.pdf’ (on which file).

    Thanks in Advance.
    AKM

    in reply to: pd4browser.properties file settings not working
    #27842

    First try to make sure it is not the config file path issue. You may define an explicit config file location with “-config filename.properties” parameter.

    Example:
    [language=Java:6rer4axl]java -jar pd4ml.jar -config /path/filename.properties file:/path/template.htm /path/out.pdf[/language:6rer4axl]

    in reply to: Base URL Issue
    #27832

    An information regarding the mapping of the root web folder to the physical file system is known only to the web application container. So the container/server should be somehow taken into the path resolving. There are two methods:

    • Request the resources via HTTP. In your case it is going to be a definition of URL base = new URL(“http://yourserver/&#8221;);
    • Let PD4ML to talk to the server directly with pd4ml.useServletContext(ServletContext ctx)
    in reply to: PD4ML Tips & Tricks
    #26327

    Hello Team,

    First i say thanks to all your team to reply my query for previous topic.

    Now when integrate PD4ml Pdf Generation Concept on my live server then an Error Is occurred: “Unhandled MIME type: “application/octet-stream” . I have use Linux server.

    and write following code in to pd4ml.php

    stderr.txt’ commend line suffix

    // UNIX version
    passthru(‘java -Xmx512m -Djava.awt.headless=true -cp .:pd4ml_demo.jar Pd4Php ” . $_POST . ” 840 A4 -ttf ./fonts 2>>stderr.txt’);
    // Windows version
    //passthru(‘java -Xmx512m -cp .;pd4ml_demo.jar Pd4Php ‘ . $_POST . ‘ 800 A4’);

    } else {
    echo ‘invalid usage’;
    }
    ?>

    Please Reply me ASAP.

    Thanks in advance.

    AKM

    in reply to: Eroor in PDF Genration:
    #27841

    Obviously the problem is caused not by PD4ML, but by the server configuration.

    Hopefully the info from the page will help:
    http://www.linuxquestions.org/questions/linux-software-2/unhandled-mime-type-applicationoctet-stream-651502/

    in reply to: General questions / FAQ
    #26330

    Does PD4ML support font suitcases on a Mac? I’m trying to access fonts, but they are stored in suitcases, and so far, I am not having any success in using these fonts.

    in reply to: Font Suitcase Support on Mac?
    #27844

    PD4ML does not support font suitcases, so you need to use third-party tools to extract TTFs from there. I googled – there are many of such tools.

    On MacOSX you should not have such problem as long as the fonts are located as regular TTF or OTF files in /Library/Fonts directory.

    in reply to: Font Suitcase Support on Mac?
    #27845

    Thanks. I know that I can extract the fonts, but that adds overhead to the installation. The site is using font managing software that wraps fonts in suitcases.
    If you are interested in adding suitcase support, you may want to take a look at Fondu (http://fondu.sourceforge.net/)

    in reply to: Base URL Issue
    #27833

    For now, modifying the html with the following works to remove the leading slash

    [language=java:2cbj9nop]data = data.replaceAll(“src=”/images/”, “src=”images/”);
    data = data.replaceAll(“href=”/style/”, “href=”style/”);[/language:2cbj9nop]
    and the following javascript in the page will set a ‘checked’ into the html

    [language=Java:2cbj9nop]function processFormData(oForm) {
    var e, i = 0;
    while (e = oForm.elements[i++]) {
    if (e.type == 'checkbox') {
    if (e.checked == true) {
    e.defaultChecked = true;
    } else {
    e.defaultChecked = false;
    }
    }
    if (e.type == 'radio') {
    var x = e.name;
    if (e.checked == true) {
    e.defaultChecked = true;
    } else {
    e.defaultChecked = false;
    }
    }
    }
    }[/language:2cbj9nop]

    in reply to: Font Suitcase Support on Mac?
    #27846

    Thank you for the hint! We’ll check if there is an easy way to add an optional support for the suitcases.

Viewing 15 posts - 391 through 405 (of 4,249 total)