Forum Replies Created

Viewing 15 posts - 1,366 through 1,380 (of 1,410 total)
  • Author
    Posts
  • in reply to: Nested CSS definitions not rendered
    #27464

    Pd4ML does support CSS selectors like “.tableclass td”. Among the supported CSS selector types are the following:

    • * Universal selector
    • E Type selectors
    • E F Descendant selectors
    • E > F Child selectors
    • E:first-child The :first-child pseudo-class
    • E + F Adjacent selectors
    • E[foo] Attribute selectors
    • E[foo=”warning”] Attribute selectors

    If for some reason it does not work for you, I would check if CSS properties (in your message they are substituted with “…”) are supported by PD4ML. See the list of supported CSS properties: https://pd4ml.com/css.htm

    in reply to: PDF rendition appears to not honor CSS
    #27483

    Oficially PD4ML does not support HTTPS, however on practice it tries to load HTTPS resources with Java’s standard SSL classes.

    WebSphere and Weblogic, for example, and may be some others implement their own SSL libraries, not derived from Java’s standard one. As a result it causes ClassCastException. As I see, it is not your case, but there may be other SSL protocol related issues, specific for your environment.

    The best workaround for the HTTPS issue is not to use HTTPS for CSS or image references. It is expensive from the performance perspective and causes undesired network transactions. A better approach is to reference the resources with relative links.

    If your source HTML documents are read-only and you are not allowed to change HTTPS URLs there, there is also a solution with custom resource loaders. You may implement your own one and to use any SSL library you like:

    pd4ml-html-css-pdf-tips-tricks-f7/a-definition-of-custom-resource-loaders-t40.html

    Regarding pd4ml.addStyle(“p { color:red; }”, true); – it always worked. We’ll check it once more – probably there are some newly introduced “code optimization issues” in the recent builds.

    in reply to: Regarding direct print through default printer & Preview
    #27459

    @yuvarajv wrote:


    1) Is there any option to directly print the PDF objects generated by PD4ML through default printer?

    I am not sure if it is possible to force Acroread browser plugin to silently print to the default printer. With some portion of embedded Javascript it is possible to popup the print dialog window and to let a user click “print” button.

    However the scripting feature is in our TODO list and not yet available.

    Acrobar Reader application allows you to force printing offline with command line parameters. See:

    http://support.adobe.com/devsup/devsup.nsf/docs/52080.htm

    @yuvarajv wrote:


    2) Is it possible to open as “PDF Preview mode” that is dynamically generated PDF file by PD4ML for ?

    Please clarify what you mean under “PDF Preview mode”

    in reply to: Using taglib in other language than JSP or Coldfusion ?
    #27443

    You may use in your documents any HTML tag from the list:

    https://pd4ml.com/html.htm

    At the bottom of the page you may see PD4ML proprietary tags, which are available in any context (not only in JSP). As you may see <pd4ml:page.break> is among them.

    FYI: PD4ML JSP taglib is built on the top of PD4ML API. It is only a wrapper for the API functions. For example <pd4ml:header> implicitly creates PD4PageMark object, initializes it with data and passes to PD4ML.

    As long as PD4ML JSP taglib and PD4ML proprietary tags share the same namespace name (<pd4ml:xxxxx>), PD4ML JSP taglib includes dummy JSP custom tag implementations for the proprietary tags. For example <pd4ml:page.break> has, of course, no corresponding API call. It simply outputs itself “as is” to be processed by PD4ML parser.

    in reply to: Images not working
    #27447

    > I have 3 environmnets, set up identically on 1 sun unix server running websphere6.1.

    Websphere implements SSL a proprietary way (the classes are not derived from the standard Java’s SSL classes), thus as a rule an attempt to load HTTPS resource from PD4ML in such environment causes ClassCastException. So I wonder how it works on the 2 servers.

    If the images are stored on the same server, where PD4ML runs, it makes sense to avoid any network interactions by the image loading. The best way would be to trigger useServletContext() method of PD4ML and to use absolute web paths (Image from the forum topic: Images not working) in the source HTML documents.

    Base URL definition most probably needs to be suppressed there.

    in reply to: Watermarks
    #27436

    Should be:

    You may use any image as a watermark. But you’ll get better results if you use a GIF or PNG with a transparency mask or alpha layer. (Opaque white background of a watermark image makes underlying content faded)

    On practice:

    the actual v351b8 has problems with opacity control (it always remains 100%). It is going to be fixed with the next release.

    As a workaround you may use translucent PNG with opacity set, for example in Adobe Photoshop, to 20-35%.

    in reply to: Stylesheet definition results in emtpy pdf document
    #27391

    We addressed the issue again in v351b8. Please give a try to it.

    in reply to: SVG or embedded pdf Images
    #27430

    Unfortunately PD4ML does not support SVG graphics. SVG format is comparable by complexity to PDF itself and a fair implementation of SVG support module is not a trivial task.

    We considered to use open-source SVG renderers, but were not satisfied with the existing libraries.

    We are trying to keep PD4ML compact and performant, so we do not use general-purpose XML parsers, HTML code normalizers etc. Everything we use is custom developed (parsers, for example, with JavaCC) and specialized for HTML rendering and PDF output. As a result we have only 2 JARs, 635KB in size.

    An adding of bulky 12MB of Batik (an open-source SVG library) just to support a single image format, was unacceptable from our perspective.

    Nevertheless the SVG support is still in our TODO list. Most probably we’ll implement a plugable interface for vector graphics writers and an optional Batik-interface module is going to be an implementation of it.

    in reply to: [CSS Issue] Border-style : dashed.
    #27437

    We’ll check what wrong with it.

    It seems the only workaround for the time being is to use border-width value 2 and greater

    in reply to: HTML-to-Image conversion with PD4ML
    #27259

    If you need any assistance with the HTML-toImage conversion, please contact PD4ML support by email. Unfortunately for the time being we have no detailed documentation for the feature.

    in reply to: problems with pd4ml.pro.trial.351b7
    #27422

    I changed the class from “addressen” to “test” and again got identical results in MS IE and PDF.

    in reply to: Federal Government Export Law Compliance
    #27428

    1. Does your product perform “cryptography”, or otherwise contain any parts or components that are capable of performing any of the following “information security” functions?
    (Mark with an “X” all that apply)

    a. X encryption
    b. _ decryption only (no encryption)
    c. _ key management / public key infrastructure (PKI)
    d. X authentication (e.g., password protection, digital signatures)
    e. _ copy protection
    f. _ anti-virus protection
    g. _ other, e.g., home grown scrambling (please explain): _______________________________
    h. _ NONE / NOT APPLICABLE

    2. For items with encryption, decryption and/or key management functions (1.a, 1.b, 1.c above):

    a. What symmetric algorithms and key lengths (e.g., 56-bit DES, 112 /168-bit Triple-DES, 128 / 256-bit AES / Rijndael) are implemented or supported?

    ARC4 (ARCFOUR) 40-128bit

    b. What asymmetric algorithms and key lengths (e.g., 512-bit RSA /Diffie-Hellman, 1024 / 2048-bit RSA / Diffie-Hellman) are implemented or supported?

    –

    c. What encryption protocols (e.g., SSL, SSH, IPSEC or PKCS standards) are implemented or supported?

    –

    d. What type of data is encrypted?

    Text content, images, attachments, textual meta data

    3. For products that contain an “encryption component”, can this encryption component be easily used by another product, or else accessed / re-transferred by the end-user for cryptographic use?

    No way

    in reply to: Supported platforms
    #27233

    Sorry for the delay with the reply.

    Did you check the installed programs list and the PTF group level as the Zend forum recommends?

    http://forums.zend.com/viewtopic.php?f=64&t=579&start=0#p6874

    Did it help to resolve the issue?

    in reply to: PD4ML getting out of memory errors
    #27426

    As far as I remember the default max heap size of JVM is limited by 64mb (which matches “~70mb”, you got).

    In order to increase it you need to run your java runtime or appserver with a JVM command-line parameter like the following:

    -Xmx512m
    (defines 512 mb of heap size, sufficient for most of PD4ML applications)

    in reply to: problems with pd4ml.pro.trial.351b7
    #27420

    For the test, of course, I placed the style to the document inline. The rendering result is identical to MS IE.

Viewing 15 posts - 1,366 through 1,380 (of 1,410 total)