Forum Replies Created

Viewing 15 posts - 541 through 555 (of 1,410 total)
  • Author
    Posts
  • in reply to: Maintenance PD4ML v381 (Java) released – changes?
    #29224

    You may find an actual changes description in the release notes document:
    https://pd4ml.com/relnotes.htm

    in reply to: PDF Pages are all blank
    #29223

    It seems the binary PDF document data is corrupted. Usually that happens by a HTTP transfer, when an undesired character encoding conversion is applied to a binary PDF document.

    In PD4ML JSP taglib byte[] result PDF data is sent 2 ways:

    sr.setContentLength(result.length);
    ServletOutputStream sos = sr.getOutputStream();
    if ( this.getEncoding() != null && this.getEncoding().equals("default") ) {
    sos.write(result);
    } else {
    sos.print( new String( result, "ISO8859_1" ) );
    }
    sos.close();

    Try both in your Tomcat app.

    Another more rare reason of such corruption is a replacement of UNIX-style new line characters with Win-style double chars. The problem may happen, but it is quite unlikely to face with in web scenarios.

    in reply to: PDF page headers/footers definition options
    #27288

    There is a number of header-definition methods:
    https://pd4ml.com/cookbook/pdf_header_footer_generation.htm

    With Java API you may either merge header definition like <pd4ml:page.header scope="2+"> with HTML content (the header definition needs to be before opening <html> tag) or to customize PD4PageMark instance;

    PD4PageMark header = new PD4PageMark() {
    public String getHtmlTemplate(int pageNumber) {
    if ( pageNumber > 1 ) {
    return "<html><body>some document header stuff...";
    } else {
    return "";
    }
    }
    };
    pd4ml.setPageHeader(header);

    in reply to: Background image to the html page not visible in the pdf
    #29209

    I am not sure if I understand your approach with stretched background image right.

    Try to apply a PD4ML-specific style “background-repeat: scale-xy” to a DIV – it should do the trick.

    in reply to: Out of memory error while converting a dxl file
    #29211

    In most of the cases “This is a multipart message in MIME format” means the email message includes 2 content versions: HTML and text-only.

    I tested your DXL with PD4ML v381 – the build suppresses “This is a multipart message in MIME format”, however still outputs both content versions as PDF.

    OutOfMemory error usually can be handled with an overriding of Max Heap Size JVM parameter (i.e. -Xmx512m). But first I would recommend to give a try to PD4ML v381 – since v380fx5 you currently use – we addressed a number of DXL converting issues.

    in reply to: Headers missing in the first part of email content
    #29210

    dxl4pd4ml.xsl stylesheet builds mail headers with the following code:

    
    <tr>
    <td valign="top">:</td><td></td>
    </tr>
    

    however in your DXL sample the structure differs: expected tags are nested to :

    <text
    >"Fil...nov, ...der" <...der.Fil...nov@BAKERNET.com>
    <mg...n@mmm.com>
    RE: Meguiar's/ANR - T39863

    A quick solution is to add a new XSL iteration:

    
    <tr>
    <td valign="top">:</td><td></td>
    </tr>
    

    in reply to: PDF page headers/footers definition options
    #27285

    Try to temporarily set the height parameter to any defined value:
    footer.setAreaHeight(50);
    Does it change anything?

    in reply to: PDF page headers/footers definition options
    #27284

    @jos.jesus wrote:

    I’m using the PRO version.

    And which version number?

    in reply to: PDF page headers/footers definition options
    #27280

    Which PD4ML version do you currently use? It can be checked in Document properties of any PDF, generated with the library.

    in reply to: PDF page headers/footers definition options
    #27278

    With PD4ML Pro it can be done like that:

    PD4PageMark footer = new PD4PageMark();
    footer.setHtmlTemplate("<font color="red"><i>page $[page] of $[total]</i></font>");
    footer.setAreaHeight(-1);
    pd4ml.setPageFooter(footer);

    Use pd4ml.setPageHeader() for headers.

    in reply to: Xhtml to pdf conversion
    #29030

    Could you please add enable=”false” attribute to <pd4ml:transform> and to generate a HTML with the JSP placeholders substituted with a dynamic content. Save the HTML from a web browser and publish it here (or send to support pd4ml com)

    in reply to: Lotus Notes 8.5.3 troubles with ttf fonts
    #29207

    I converted the DXL with the actual XSL and as for me it seems to be correct (except a missing barcode font issue).

    I have attached the conversion result and the XSL stylesheet (which can be also taken from the actual Dxl2Pdf package: https://pd4ml.com/command-line-dxl-to-pdf-converter.htm )

    in reply to: Lotus Notes 8.5.3 troubles with ttf fonts
    #29205

    Could you please send the entire DXL and its resulting PDF to support pd4ml com?

    I tried to convert the snippet you sent with our actual XSL and it printed only “ÀU+!!$Ô (well, we do not have the needed barcode font to test). Base64 portion has been suppressed by <xsl:template match="d:compositedata" /> directive.

    in reply to: Lotus Notes 8.5.3 troubles with ttf fonts
    #29203

    The garbage looks like UTF-8 wrongly interpreted as Latin-1. Should be solvable with an XSL adjustment. Could you please publish a DXL sample, which causes such problem?

    in reply to: 9 CSS hack in stylesheet – entire stylesheet ignored
    #29195

    Give a try to the attached.

Viewing 15 posts - 541 through 555 (of 1,410 total)