Forum Replies Created

Viewing 15 posts - 661 through 675 (of 1,410 total)
  • Author
    Posts
  • in reply to: Anybody had problems with PD4ML on Lion for Mac?
    #28962

    I’ve just sent to you a link to an updated version. Please check if our workaround helps.

    in reply to: Some times empty pdf while convering dxl to pdf’s
    #29015

    Hmm… Try to dump as many info as possible: DXL just before it is passed to conversion, HTML transformed from DXL, switch debug attributes to “true” in XSLT, etc. It must reasons of blank PDF appear somewhere there.

    in reply to: Extended arabic char not rendering correctly
    #29005

    To build correct “character chains” PD4ML currently utilizes Arabic ligaturizer, ported from a reference C implementation from IBM (I believe). To be honest we are not 100% sure how it works, as nobody from our team understands Arabic scripting. We’ll try to find an updated version of the ligaturizer – hopefully it exists. If not, it is going to be a challenge to update the current one.

    in reply to: Anybody had problems with PD4ML on Lion for Mac?
    #28959

    Thank you for the input!

    So, most probably, it hangs in the following code:

    private boolean hasCanvasInterpreter() {
    Class c;
    try {
    try {
    c = Class.forName(PD4Constants.PD4ML_EXTERNAL_CANVAS_HANDLER);
    } catch (ClassNotFoundException e) {
    try {
    c = Thread.currentThread().getContextClassLoader().loadClass(PD4Constants.PD4ML_EXTERNAL_CANVAS_HANDLER);
    } catch (ClassNotFoundException e1) {
    c = ResourceCache.class.getClassLoader().loadClass(PD4Constants.PD4ML_EXTERNAL_CANVAS_HANDLER);
    }
    }
    } catch (Exception e) {
    return false;
    }
    
    if ( c != null ) {
    return true;
    }
    
    return false;
    }

    I see nothing dangerous in it. It looks like it hits some class loader implementation specific issues.

    in reply to: Custom fonts in header/footer
    #29003

    Try to enable debug info and inspect the output: it should report which TTF files it tries to load and fails.

    in reply to: Large PDF Issue
    #28859

    A usual reason of such problems is that the document layout is built as a single huge table. If it is your case, try to split it to smaller ones.

    Also sometimes a borderless table with a single cell is used to limit horizontal width of content. If it is your case, replace it with a <div>

    in reply to: Anybody had problems with PD4ML on Lion for Mac?
    #28956

    Does your product or Tomcat installation includes GWT-DEV.jar?

    in reply to: NullPointerException sometimes during render
    #28992

    The exception is thrown in the following code (in StringTokenizer constructor)

    for (int i = 1; (headerName = conn.getHeaderFieldKey(i)) != null; i++) {
    if (headerName.equalsIgnoreCase(SET_COOKIE)) {
    Map cookie = new HashMap();
    StringTokenizer st = new StringTokenizer(conn.getHeaderField(i), COOKIE_VALUE_DELIMITER);
    ...

    Where conn is URLConnection.
    It seems, conn.getHeaderField(i) returns null, which should not be possible according to the method specification.

    We added an extra check for the null value to the development build. The fix will be available with the new beta release.

    in reply to: Anybody had problems with PD4ML on Lion for Mac?
    #28954

    Currently on my workstation is installed OSX 10.7.2 – no problems with PD4ML at all.

    Just noticed:

    > I’ve been trying to run the command-line pd4ml class but whatever I do I get:
    > java.io.IOException: Cannot run program "/Applications/Preview.app": error=13, Permission denied

    Pd4Cmd does not try to run Preview.app. Probably you are trying to convert with PD4Browser. Run Pd4Cmd instead:
    https://pd4ml.com/html-to-pdf-command-line-tool.htm

    #27225

    I am afraid PD4ML cannot replicate multiple levels of headers from page to page.

    Currently as a table header it interprets the first table rows, consist of <th> elements only. <thead> tags or similar are not supported.

    in reply to: Question about header areaHeight
    #29001

    Most probably the first page header height difference effect is caused by the <body> top margin. Try to define:

    BODY { margin-top: 0; margin-bottom: 0 }

    in reply to: Conversion of DXL File to PDF other than English
    #29000

    In order to display non-latin characters you need to utilize TTF embedding feature.

    https://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm

    If you use dxl2pdf command line tool, there is a dedicated -ttf parameter.

    in reply to: Junk characters while converting DXL to PDF
    #28999

    Please publish or email as a DXL sample to analyze.

    in reply to: Paragraph indentation not working in generated RTF
    #28765

    Please publish or email us an HTML sample to test

    in reply to: Junk characters while converting DXL to PDF
    #28997

    The actual XSL stylesheet contains the following section

    <xsl:for-each select="/d:document/d:item/d:rawitemdata[@type='502']">
    <xsl:if test="../@name='From' or ../@name='SendTo' or ../@name='Subject' or ../@name='CopyTo'">
    <tr>
    <td valign="top"><xsl:value-of select="../@name"/>:</td>
    <td><span style="text-transform: base64"><xsl:copy-of select="text()"/></span></td>
    </tr>
    </xsl:if>
    </xsl:for-each>

    intended to process the DXL code.

    Your code should be transformed to

    <span style="text-transform: base64">
    DgAIAAAAJQAEAAIAJwAiQWxpIEJvem9nbHUiIDxBbGkuQm96b2dsdUBndW4uYXYudHI+RnJvbTog
    IkFsaSBCb3pvZ2x1IiA8QWxpLkJvem9nbHVAZ3VuLmF2LnRyPg0K</span>

    PD4ML makes from it
    “Ali Bozoglu” <Ali.Bozoglu@gun.**.tr>

    Please give a try to XSL+JAR from dxl2pdf2012.05.zip, currently available for download.

Viewing 15 posts - 661 through 675 (of 1,410 total)