Forum Replies Created

Viewing 15 posts - 4,201 through 4,215 (of 4,234 total)
  • Author
    Posts
  • in reply to: custom tags documentation
    in reply to: Technical questions / Troubleshooting
    #38345

    When the text in my textarea is too long/near the bottom of a page, the form element is created twice instead of being split or only on the second page. It seems PD4ML recognizes it may not fully fit on the “first” page so it recreates it on the “second” page, but now it’s duplicated and not respecting the footer.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Licensing / Purchasing of PD4ML
    #38371

    Hello,

    we have bought a DMS license and we are using Maven to include PD4ML v4 in our build, but seems that the PDF/A support is not availble, the method is not available:
    pd4ml.generatePdf(true);

    Where am I wrong ?

    thanks!

    in reply to: PDF/A ?
    #38372

    .. of course I meant:
    generatePdfa(true)

    in reply to: Technical questions / Troubleshooting
    #38373

    Actually we bought pd4ml pro license for v4 and then we are migrating to 4.0.17 while doing that pdf is generating properly only but we identified one problem with generatepdfa(true). In pdf we are getting “Evaluating Mode pd4ml pdf” watermark. we need some more information about what is difference between pdfa vs pdf generation through pd4ml jar. we need justification for that statement.

    This how code looks like in old pd4ml jar
    import org.zefer.pd4ml.PD4ML;

    PD4ML pdf=new PD4ML();
    pdf.generatePdfa(true);

    when we migrate to pd4ml v4.0.17 jar we are getting “Evaluating Mode pd4ml pdf” but when we comment that statement we are getting pdf properly. we need to understand what is difference between generating pdf using pdfa vs pdf(default)

    Attachments:
    You must be logged in to view attached files.
    #38375

    Hi! I guess you currently own PD4ML license, which assumes only regular PDF output. PDF/A-b support requires PD4ML DMS license, PDF/A-a and PDF/UA requires PD4ML UA license.

    See https://pd4ml.com/products/

    You can easily upgrade to the above version by paying the difference in license price (if your maintenance period is still active).
    There is no need to replace the PD4ML binaries, you only need to apply a new license code with the required features enabled.

    in reply to: Technical questions / Troubleshooting
    #38376

    Hi,
    Greetings. Hope you are well! I am trying to generated a pdf from a html stream recently we upgraded the platform to latest version and with that pd4ml has been upgraded to 4.0.17. There is no entire html content in the generated pdf and the pdf formatting also does not look good, can you please have a look at the java code and the attached html stream to see if something is changed in v4.0.17?

    Java Code:
    /* Implementing using the PD4ML API per Pega Support Documents
    https://community.pega.com/support/support-articles/not-able-set-margin-pdf-document
    */
    String PD4ML_DOCUMENT_VIEW_MODE =”pd4ml.document.view.mode”;
    org.zefer.pd4ml.PD4ML pd4ml = new org.zefer.pd4ml.PD4ML();
    com.pd4ml.PD4ML pd4mlNew = new com.pd4ml.PD4ML();

    java.awt.Insets margins = new java.awt.Insets(30,25,30,25); // Add letter border (top, left, bottom, right)
    pd4ml.setPageInsetsMM(margins);

    pd4ml.setPageSize(org.zefer.pd4ml.PD4Constants.A4);
    pd4ml.protectPhysicalUnitDimensions();
    pd4ml.interpolateImages(true);

    java.util.Map m = new java.util.HashMap();
    m.put(org.zefer.pd4ml.PD4Constants.PD4ML_ABSOLUTE_ADDRESS_SPACE, “document”);
    //pd4ml.setDynamicParams(m);
    pd4ml.pd4mlNew.setParam(PD4ML_DOCUMENT_VIEW_MODE,”TwoPageRight”);

    java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();

    org.zefer.pd4ml.PD4PageMark footer = new org.zefer.pd4ml.PD4PageMark();
    footer.setPageNumberTemplate(“$[page] of $[total]”);
    footer.setPageNumberAlignment(org.zefer.pd4ml.PD4PageMark.RIGHT_ALIGN);
    footer.setColor(new java.awt.Color(0x303030));
    footer.setInitialPageNumber(1);
    footer.setPagesToSkip(0);
    footer.setFontSize(11);
    footer.setAreaHeight(20);
    footer.setFont(new java.awt.Font(“Times-Roman”,0,11));
    pd4ml.setPageFooter(footer);

    pd4ml.render(new java.io.StringReader(HTMLStream), baos);

    baos.close();

    return baos.toByteArray();

    Regards,
    Bharat

    Attachments:
    You must be logged in to view attached files.
    #38379

    understand thank you

    #38380

    And also I need some more info about ss_css2-3.7.1.jar, pd4ml_rc-3.9.8.jar and fonts-3.7.1.jar

    when I remove css2 jar it was working fine since we have separate package under pd4ml from 3.9.8 onwards but I didn’t found any information like they merged css related code into main pd4ml jar.

    And when we remove fonts jar chinese and arbic languages are not working does version 4 will still supports 3.7.1 fonts jar or we have to do manual configurations for that.

    Finally question does we required pd4ml_rc jar since we have samme .ttf files exist in fonts jar as well

    #38381

    ss_css2-*.jar is not needed since version 3.9.8, since we implemented our own CSS cascading mechanism.

    Any older font JAR is compatible with v4. You can create new font collections using the GUI tool:

    PD4ML Fonts Tool

    #38382

    what about this jar pd4ml_rc-3.7.1.jar

    #38383

    can anyone please respond this chat. while doing upgradation we found that font.jar and pd4ml_rc.jar having same ttf files. if we remove pd4ml_rc.jar and keep fonts.jar will anything can break

    #38384

    pd4ml_rc-3.7.1.jar contains only the minimal set of fonts needed to produce PDF/A. If it duplicates fonts from other font sources, it can be safely removed.

    in reply to: Image rotation based on EXIF orientation metadata
    #38387

    Hi,

    Thanks for your answer. I tried the EXIF orientation support with the 4.0.20 release, the image is rotated but unfortunately it is also cropped (please check attached PDF). Could you please help ?

    Attachments:
    You must be logged in to view attached files.
    #38390

    Thank you for your response it is helpful

Viewing 15 posts - 4,201 through 4,215 (of 4,234 total)