Forum Replies Created

Viewing 15 posts - 1,006 through 1,020 (of 1,410 total)
  • Author
    Posts
  • in reply to: pdf renders garbled png image
    #28320

    An HTML document sample and its PDF output, sent to support pd4ml com would help us to analyze the problem reasons.

    in reply to: Generate RTF with Wrapper
    #28329

    To be honest we’ve forgotten to add the feature to the wrapper.

    The wrapper source code is available for download, so you may to add the feature by yourself. Or wait till the next (beta) release of PD4ML – we’ll add the missing code. Please do not forget: RTF output is a feature of PD4ML Pro.

    in reply to: Integrating the PD4ML Converter into Notes
    #28332

    Most probably the red content is base64-encoded versions of the mail fields.

    We constantly improve our DXL->HTML XSL stylesheet and some issues like yours are already resolved. Could you please send a DXL sample to support pd4ml com – we’ll check if it is convertible with the current state of XSL stylesheet and PD4ML library.

    in reply to: RTF Support in Tag Library
    #28333

    Hmm… The only explanation is that you use PD4ML Std. RTF output is a feature of PD4ML Pro.

    in reply to: IllegalStateException
    #28335

    My first suspect is that the PDF bytes are sent to the browser not in bin, but in text mode. The content has grown because of newline conversion from “n” to “nr”. But I cannot be sure about that before I took a look to your code.

    Could you please publish a JSP sample here or send it to support pd4ml com?

    in reply to: Is the evaluation copy for intranet only?
    #28330

    Of course PD4ML is able to work in local environment as well as in the Internet.

    Obviously there are some network-specific issues on your side. I would recommend to try to dump HTML content before it is passed to PD4ML (to make sure the source HTML is not blank).

    Also pd4ml.enableDebugOutput() forces PD4ML to dump external resources URLs it tries to load.

    in reply to: Passing authentication headers
    #28316

    Well, basic authentication is supported by PD4ML, so you may always use

    Map m = new HashMap();
    m.put(PD4Constants.PD4ML_BASIC_AUTHENTICATION, "login:password");
    pd4ml.setDynamicParams(m);

    and it is quite safe to use, as the base64-encoded password does not leave the server side in the scenario.

    But the trick with iv-user HTTP header is still not clear to me. As I can imagine, MS Internet Explorer never sets such proprietary HTTP header. How does it request for images after HTML is loaded?

    in reply to: Passing authentication headers
    #28314

    In regular non-PDF scenario, the image requests are initiated by a web browser after the main HTML page is loaded. So I do not think it uses any proprietary HTTP headers to identify a user/session. I would expect a very standard session ID propagation – via cookie (in HTTP header) or via URL string.

    Try to dump HTTP headers (there are browser plugins or other tools for that) and determine the way it identifies a session.

    in reply to: Debug – Blank Page Rendered from JSP?
    #28309

    Please save a blank PDF and send it to support pd4ml com. First we are going to check if the problem is caused by a wrongly applied character set conversion to a binary PDF data.

    in reply to: Passing authentication headers
    #28312

    PD4ML.setCookie() and PD4ML.useHttpRequest() is the right direction to solve the issue.

    Does your application use JSESSIONID cookie to identify a session? If so, what do you pass to PD4ML.setCookie() as a parameter?

    in reply to: A few questions about PD4ML
    #28318

    > 1. Could I handle events whenever PD4ML creates a new page?

    No.

    > – Could I create a margin-left at each uneven page and a margin-right at each even page ?

    We call the feature “mirrored margins”, it is in our TODO list, and it is going to be available with forthcoming versions.

    > – Could I avoid orphan ?

    you may achieve that with a conditional page breaks
    <pd4ml:page.break ifSpaceBelowLessThan="150">
    placed before paragraphs, or by “page-break-inside: avoid” CSS style applied to paragraph portions.

    > 2. When I create a table of contents, how can I refered the title to his pagenumber ?

    <pd4ml:toc> generates a table of contents from H1-h6 hierarchy with correct references and page numbers.

    Page numbering info is known on the very late phases of PDF output, so there is no reasonable way to implement, for example, placeholders for page numbers in main HTML body.

    in reply to: pdf page comes at empty
    #28285

    A sample of source HTML and its resulting PDF could be very useful to analyze the problem reason. Please post them here or send to support pd4ml com

    in reply to: HTML tags from JSF written to pdf file
    #28214

    Do you want to render an HTML document (generated by the JSF page) as PDF or just want to print the generated HTML text (HTML source code listing) to PDF?

    in reply to: font rendering issue
    #28117

    1. PD4ML supports TTF and OTF fonts. OTFs from Win32 distribution are ok, but there are “third-party” OTFs for some reasons not supported by Java (in the case they are skipped in pd4fonts.properties). Usually it helps to open such OTF file in FontForge application and save as TTF. FontForge is an open source tool for UNIX/Linux platform, which is also available for Win32 as “fontforge-mingw”

    2. <font face="Myriad Pro Light"> refers to Myriad Pro Light in pd4fonts.properties. <font face="Myriad Pro Light"> refers to Myriad Pro Light Italic, <font face="Myriad Pro Light"> refers to Myriad Pro Light Bold. Also <font face="Myriad Pro Light Bold"> refers to Myriad Pro Light Bold even if there is no tags around. Probably it can explain some oddities with font styles you faced with.

    in reply to: Selecting multiple classnames doesnt work
    #27868

    For the particular HTML sample a workaround would be to change the style to

    body .x div.a {
    color: green;
    }

    PD4ML does not support selectors combine multiple classes, like “div.a.b“.

    We’ll add support for it to the forthcoming release.

Viewing 15 posts - 1,006 through 1,020 (of 1,410 total)