Forum Replies Created

Viewing 15 posts - 451 through 465 (of 1,410 total)
  • Author
    Posts
  • in reply to: Landscape and portrait on the same document
    #28629

    Unfortunately there is no out-of-the-box solution for the issue. As a workaround you may define all page insets 10mm, and add extra 20mm using HTML/CSS means (i.e. margin-left or margin-top) where needed.

    in reply to: Local Image Rendered on Mac, but Not on Windows
    #29376

    Image from the forum topic: Local Image Rendered on Mac, but Not on Windows tag expects not a local path, but an URL as a src attribute value.

    The following reformatting should help to workaround:

    String portraitPath = System.getProperty("user.home") +  File.separator + "Desktop" + File.separator + "Test.jpg";
    portraitPath = new File(portraitPath).toURI().toString();

    in reply to: Implement PD4ML Using xhtml in jsf 2.0
    #29374

    xmlns:pd4ml=”https://pd4ml.com/tlds/pd4ml/2.6″

    in fact not an URL “to go”, but a unique ID for PD4ML’s TLD document. The ID is also present in the meta data of pd4ml_tl(_demo).jar. In a normal situation Servlet/JSP container discovers the IDs and do not even try to load https://pd4ml.com/tlds/pd4ml/2.6 as a web resource.

    So in your case I would suspect problems with web application deployment.

    in reply to: Display image in Page Footer
    #27614

    Most probably the problem is with the image path. Try to enable debug output and to inspect if it tried to load the image. Also Image from the forum topic: Display image in Page Footer is a more safe format to point local resources.

    in reply to: initialPageNumber
    #28401

    With your particular footer sample there is a possibility to get a confusing footer text “page 3 of 1”. So some mechanism to impact $[total] value is also needed. That was a reason we did not copy the feature from PD4PageMark to inline HTML headers/footers.

    We could add the feature to <pd4ml:page.footer>, but first we need to review typical use cases and to think how to keep everything consistent there. Of course, we would appreciate your input.

    in reply to: Implement PD4ML Using xhtml in jsf 2.0
    #29372

    PD4ML distribution ZIP includes a web application structure WEB-INF, you may reuse. TLD and pd4ml_tl.jar are already in correct locations. Just copy pd4ml_demo.jar and ss_css2.jar to WEB-INF/lib

    in reply to: Having trouble in display SVG correctly in lotus agent.
    #29375

    You need to make sure, resources of the Lotus agent include the most recent PD4ML library. You may check PD4ML version if you open a generated PDF in Acroread and review the document properties.

    If the version is old, open the database in Lotus Designer remove pd4ml_demo.jar from the agent resources, save the database, quit designer, open the database in Designer again and add a new lib.

    in reply to: Arial font in RTF
    #29370

    By RTF generation, in fact, PD4ML does not embed TTF fonts to the resulting document (I am even not sure if RTF file format supports that), but writes a font family reference to let RTF viewer resolve it.

    As I see in the RTF src, it refers to Win32-specific fonts, which is obviously not correct:
    {f1 Arial-BoldMT;}{f2 ArialMT;}

    Try to disable TTF Embedding by RTF generation (exclude pd4ml.useTTF() call). Does it change anything?

    in reply to: Any way to load image in parallel?
    #29358

    The simplest way would be to generate an HTML index of the images:

    <img alt="Image from the forum topic: Any way to load image in parallel?" src="images/logo.gif"><br>
    <img alt="Image from the forum topic: Any way to load image in parallel?" src="images/bullet.png"><br>
    ...

    and let PD4ML to convert it to PDF once.

    in reply to: small fractional widths are interpreted as "0"
    #29369

    We’ve just fixed the problem in the development build. The fix will be available with the forthcoming (beta) release in 1-2 weeks.

    in reply to: Is JavaScript supported?
    #27951

    We do not plan to natively support JavaScript in PD4ML. Originally PD4ML is not intended for web sites capture; it is to allow you to define PDF layouts with simple well-known languages – HTML/CSS.

    In PD4ML use cases JavaScript could be only used to generate some portions of HTML content, as the most of JavaScript “power” (interactivity, animation etc) is not applicable or direct convertible to its target PDF format.

    As a drawback JavaScript support would turn PD4ML into a bulky construct (adding JavaScript runtime, DOM structures) and requires quite a serious refactoring of the existing code.

    There is a tricky workaround JavaScript-enabled pages. It work only in web scenarios to implement “convert to PDF” button for current page. After JavaScript is evaluated in a web browser and the layout is rendered, the actual dynamic HTML can be captured from the browser and passed to PD4ML.

    I’ve attached a draft, which illustrates it. The form “action” attribute should point to a Java servlet, which takes “source” parameter value (HTML code) and converts it to PDF.

    in reply to: Any way to load image in parallel?
    #29356

    No. PD4ML runs single thread to be compliant with J2EE requirements.

    If you convert HTMLs come from a single source, probably an image pre-fetch to PD4ML internal cache could help.

    in reply to: border-radius is supported in pd4ml ?
    #29360

    Border radius is not supported in HTML/CSS properties yet.

    Its support has been recently added to SVG renderer module of PD4ML, so if it is needed for decorative reasons, you may use inline SVG graphics for that.

    in reply to: RTL support
    #29351

    Till now we did not address RTL-specific issues by RTF output. We’ll check what could be done and how long the implementation may take.

    in reply to: How to set footer only work on the last page.
    #29348

    The feature is problematic to implement. In an extreme case the last page may have no space to place a footer: it should force a page break and the trailing footer goes to new page with no content, which is undesired.

    As a workaround it you may use a conditional page break to move some content to next page (if needed, to make the last page not totally blank) and a footnote.

    Example:

    ....
    ....
    text text text ...
    
    the last text section...
    ....
    ....
    trailing footer

    The page break will take effect only if the remaining vertical page space is less than 200px (and the last text section + footnote do not presumably fit it)

    ifSpaceBelowLessThan parameter value for your document structure/layout needs to be found an empiric way.

Viewing 15 posts - 451 through 465 (of 1,410 total)