Forum Replies Created

Viewing 15 posts - 1,201 through 1,215 (of 1,410 total)
  • Author
    Posts
  • in reply to: HTML to PDF conversion
    #27939

    Hmm… I tried the URL with GUI tool
    java -jar pd4ml_demo.jar
    and got it converted. See attached.

    What kind of conversion problems do you experience?

    in reply to: CSS div positioning bug
    #27955

    Unfortunately it did not attach your document to the message. But I guess the document absolute positioning suffers from the explicit page breaks.

    Starting with v360fx1b1 PD4ML has 2 absolute positioning modes: document- and page-centric.

    You may switch to another mode with

    -Dpd4ml.absolute.address.space=document

    JVM parameter, PD4ML API call

    Map m = new HashMap();
    m.put(PD4Constants.PD4ML_ABSOLUTE_ADDRESS_SPACE, "document");
    pd4ml.setDynamicParams(m);

    or with custom JSP tag, nested to <pd4ml:transform>

    <pd4ml:parameters>
    <pd4ml:parameter key="pd4ml.absolute.address.space" value="document"/>
    </pd4ml:parameters>

    As a result you’ll get a document where absolute positioned blocks match relatively positioned blocks. But PD4ML also requires you explicitly define block dimensions.

    in reply to: uncorrect size for image
    #27816

    pack them to a zip.

    below the message text field, there is “choose file” and “add the file” buttons to add a message attachment.

    in reply to: zoom property
    #27962

    Please attach a sample HTML and its resulting PDF – it would help a lot to analyze the issue and to provide you with a hint or a workaround.

    in reply to: uncorrect size for image
    #27814

    And again: the document HTML source and resulting PDF would help to answer your question.

    in reply to: Is JavaScript supported?
    #27949

    PD4ML does not support JavaScript

    in reply to: Different Languages
    #27941

    Yes. But you need to configure TTF embedding feature:
    pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html

    in reply to: How to save pdf file directly on disk
    #27843

    By default Pd4Php outputs to STDOUT. The output can be redirected in UNIX-style to any file with “>filename” at the end of the command line.

    passthru('java -Xmx512m -Djava.awt.headless=true -cp .:pd4ml_demo.jar Pd4Php '' .
    $_POST['url'] . '' 800 A4 2>>stderr.txt >/path/file.pdf');

    As I remember the actual versions of Pd4Php support also “-out filename” parameter:

    passthru('java -Xmx512m -Djava.awt.headless=true -cp .:pd4ml_demo.jar Pd4Php '' .
    $_POST['url'] . '' 800 A4 -out /path/file.pdf 2>>stderr.txt');

    in reply to: PDF Body Fills 50% of the page, Header/Footer Fill 100%
    #27937

    You need to decrease parameter value of setHtmlWidth() to match HTML document content width.

    adjustHtmlWidth() is intended to automatically decrease the value. (in other words to cut blank space right side) But if your document has elements with width=100% attributes (or for example


    elements), that would mean there is no blank space – nothing to cut.

    I assume you did not call fitPageVertically()

    in reply to: The file is damaged and could not be repaired
    #27935

    It would help a lot if you try to collect PD4ML debug info for the cases when it generates PDF successfully and when it fails. You may switch debug info on with debug=”true” attribute of <pd4ml:transform> (if you use PD4ML taglib) or with pd4ml.enableDebugInfo() API call. It writes the debug to STDOUT/server’s log.

    Also please send us (support pd4ml.com) a sample of PDF it generates.

    in reply to: logo in header
    #27932

    For example like that (HTML headers/footers is a feature of PD4ML Pro)

    ...
    PD4ML html = new PD4ML();
    ...
    PD4PageMark header = new PD4PageMark();
    header.setAreaHeight( 150 );
    header.setHtmlTemplate( "<font face="Arial" size="10">" +
    "<b><img alt="Image from the forum topic: logo in header" src="images/logo.gif"></b><br>" + "${page} of ${total}</font>" );
    html.setPageHeader( header );
    ...

    in reply to: Does Not Find New Fonts
    #27927

    In order to use a font, registered in the .properties file as
    xxxx Fixed 2 Unicode=xxxx-fixed2U.ttf
    you need to explicitly specify the font face as it appears in pd4fonts.properties file:

    <font face="xxxx Fixed 2 Unicode">Text</font> (or the same via CSS)

    On practice it would be more convenient to rename the bulky font face names in pd4fonts.properties, for example:

    xxxx=xxxx-fixedu.ttf
    xxxx Bold=xxxx-FixedU_B.ttf

    For bold style
    <font face="xxxx"><b>Text</b></font>
    It will look for font face with ” Bold” appended. (” Italic” for italic)

    Important:
    1. TTF embedding is a feature of PD4ML Pro (not Std)
    2. TTF font file should define glyphs, used in the text

    in reply to: "Pd4ml.render" take long time to process
    #27885

    It is strange, both PDFs have no attachment.

    Try also the following configuration switches:
    – change private final static boolean dontPassAttachmentsToXalan = false; to true
    – change String xml = dxl.exportDxl(tmp); to String xml = dxl.exportDxl(doc);

    in reply to: Evaluating pd4ml – getting blank page
    #27930

    Please post your JSP and the resulting PDF to the topic or send to support pd4ml com.

    in reply to: "Pd4ml.render" take long time to process
    #27883

    Probably some steps are redundant, but try to

    1. remove old JAR from agent resources using dominio designer
    2. close and reopen the database again in domino designer
    3. add the new JAR to the resources
    4. close the database in domino designer and open in lotus notes.

Viewing 15 posts - 1,201 through 1,215 (of 1,410 total)