Forum Replies Created

Viewing 15 posts - 1,276 through 1,290 (of 4,246 total)
  • Author
    Posts
  • #28533

    ok. We’ll try to implement the feature within the next 2-3 weeks. Please contact support pd4ml com if you need it sooner.

    in reply to: Troubleshooting
    #26558

    On MS Internet Explorer v7 fails to deliver PDF over HTTPS protocol. On FF and Chrome everything works fine.

    Source configuration:

    PD4ML html = new PD4ML();<br /> html.useHttpRequest(request, response);<br /> <br /> response.setContentType("application/pdf");<br /> response.setHeader("Content-Disposition", "attachment;filename="" + params.getFileName() + ".pdf"");

    in reply to: Error HTTPS on MS Internet Explorer 7
    #28534

    Try to add the following code:

    [language=java:3t1sjbvm]response.setHeader(“Pragma”, “cache”);
    response.setHeader(“Expires”, “0”);
    response.setHeader(“Cache-control”, “private”);[/language:3t1sjbvm]

    Does it change anything?

    in reply to: Error HTTPS on MS Internet Explorer 7
    #28535

    It works fine.

    Thanks!

    in reply to: Troubleshooting
    #26559

    I have a test document with a range of fonts that I am trying to be sure all work, since our customers can choose most any font they like. I remember seeing that Wing/Webdings don’t work on UNIX boxes, but on my local Windows box I would expect it to work. I have set the code to debug level and can see that it loads the Wing/Webdings font files, but when I look at the generated PDF I see only the default font, whatever it is. Does anyone have any ideas why this is happening?

    #28206

    Exactly the same thing happens to me

    #28207

    This is a common problem with MemoryStream usage in code ported from java.

    Try this workaround (it works fine for me):
    http://connect.microsoft.com/VisualStudio/feedback/details/164680/streamwriter-incorrectly-disposes-underlying-stream
    Basically decorate the underlying memory stream (the argument to StreamWriter) as:
    streamWriter(new NonDisposingStreamDecorator(memoryStream))

    Alex

    in reply to: Troubleshooting
    #26560

    Hi, I use PD4ML 3.70 and found one problem – if there is a single comma in CSS part and another one in page body, output PDF document will be blank.

    I paste sample HTML code here. It has 2 single commas.
    If you’ll remove one of them, PDF document will be produced, otherwise it will be blank.

    <br /> <html><br /> <head><br /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><br /> <title>A Plus Payroll Document</title><br /> <style type="text/css"><br /> <!--<br /> body {<br /> font: 100% Calibri, Calibri, Calibri, sans-serif;<br /> background: #FFFFFF;<br /> margin: 0; /* it's a test */<br /> padding: 0;<br /> height:100%;<br /> text-align: center;<br /> color: #000000;<br /> }<br /> .oneColFixCtrHdr #container {<br /> width: 720px;<br /> background: #FFFFFF;<br /> margin: 0 auto;<br /> border: 1px solid #000000;<br /> min-height:100%;<br /> height:100%;<br /> position:relative;<br /> text-align: left;<br /> }<br /> .oneColFixCtrHdr #header {<br /> background: #FFFFFF;<br /> }<br /> .oneColFixCtrHdr #body {<br /> background: #FFFFFF;<br /> padding:0 20px;<br /> padding-bottom:60px;<br /> }<br /> .oneColFixCtrHdr #header h1 {<br /> margin: 0;<br /> padding: 10px 0;<br /> }<br /> .oneColFixCtrHdr #mainContent {<br /> padding: 0 20px;<br /> background: #FFFFFF;<br /> }<br /> .oneColFixCtrHdr #footer {<br /> position:absolute;<br /> bottom:0;<br /> width:720;<br /> height:60px;<br /> background:#FFFFFF;<br /> }<br /> .oneColFixCtrHdr #footer p {<br /> margin: 0;<br /> padding: 10px 0;<br /> }<br /> .style2 {font-size: small}<br /> .style3 {<br /> font-family: Calibri, Calibri, Calibri, sans-serif;<br /> font-size: smaller;<br /> }<br /> .style9 {font-family: Calibri, Calibri, Calibri, sans-serif; font-size: x-small; }<br /> .style11 {<br /> color: #000000<br /> }<br /> .style12 {<br /> font-family: Calibri, Calibri, Calibri;<br /> font-size: x-small;<br /> color: #000000;<br /> }<br /> .style13 {<br /> font-family: Calibri, Calibri, Calibri;<br /> font-size: smaller;<br /> color: #000000;<br /> }<br /> --><br /> </style></head><br /> <body><br /> <table width=400><br /> <tbody><br /> <tr><br /> <td>W-2's and Electronic Filing Base Fee</td><br /> <td>$opportunity.w2_base_fee_1725915001</td><br /> </tr><br /> </tbody><br /> </table><br /> </body><br /> </head><br /> </html><br />

    I used old version of PD4ML before, and it was working without any problem.
    Could you please fix it or explain why it doesn’t work?

    in reply to: Blank PDF document because of single commas in HTML
    #28536

    It is a strange issue and I do not believe it is caused by a PD4ML bug (bearing in mind it splits HTML and CSS and parses them separately). I tried to convert your sample offline with a command-line PD4ML tool and got predictable results. See attached.

    Also as I see your HTML has placeholders ($opportunity). Could it be the issue comes from the runtime, which pre-process the HTML?

    in reply to: HTML/CSS rendering issues
    #26561

    Hey,

    I tried with a the link does not open up in a new window while in acrobat reader plug-in in the browser. Any way out??

    in reply to: How Split a Table Header In Each Page
    #28223

    @ustarhk wrote:

    I have the following CSS and table html

    tr.noBreakCell{
    page-break-inside:avoid;
    }

    header 1 header 2 header 3 header 4
    cell 1 cell 2 cell 3 cell 4
    cell 1 cell 2 cell 3 cell 4
    cell 1 cell 2 cell 3 cell 4

    I have a number of tr row with class = noBreakCell, I found that when I not use:
    pd4mlObj.enableSmartTableSplit(true);

    the table is break while row does not break inside, this is fine.

    But I try to have the table header repeat on different page, it turns out that the whole table is being moved to the next page instead of splitting into multiple page, did I use anything wrongly?

    in reply to: How Split a Table Header In Each Page
    #28224

    pd4mlObj.enableSmartTableSplit(true) API call implicitly defines

    TABLE, TR {page-break-inside: avoid }

    In order to workaround the issue you faced with, I would recommend to partially unset the CSS style with

    TABLE {page-break-inside: avoid !important}

    in reply to: Href does not open in new window
    #28537

    We need some time to check if the feature is supported by Browser+Acroread in principle.

    in reply to: HTML/CSS rendering issues
    #26562

    hello
    i am using TTF enbadding but one of the fonts doesnt show the text correctly , and when i copy the text to microsoft word it shows the correct look . why would that be . is there a solution .

    font : simplified arabic

    thank you

    in reply to: PD4ML Tips & Tricks
    #26563

    Below is a simple PDF-forms based server-side “calculator”. It submits PDF form input to server-side script and recieves the form update as FDF data.

    Note: Preview.app of Mac OS X (default PDF reader of Safari browser) does not seem to support PDF form submitting.

    index.jsp
    [language=xml:1rjc3xsm]<%@ taglib uri="http://pd4ml.com/tlds/pd4ml/2.6" prefix="pd4ml" %><%@page contentType="text/html; charset=ISO8859_1"%>



    pd4ml test


    Field 1:
    Field 2:
    Popup message:
    Result:
     


    [/language:1rjc3xsm]

    fdf.jsp
    [language=xml:1rjc3xsm]<%@page contentType="application/vnd.fdf"%><% int v1 = 0; int v2 = 0; try { v1 = Integer.parseInt(request.getParameter("field1")); } catch ( NumberFormatException e ) { } try { v2 = Integer.parseInt(request.getParameter("field2")); } catch ( NumberFormatException e ) { } int res = v1 + v2; // business logic of the script String status = request.getParameter("status"); String message = ( status != null && status.length() > 0 ) ? “/Status (Well done!)” : “”;
    %>
    %FDF-1.2
    1 0 obj
    < /Fields [ << /T(result) /V(<%=res%>) >>
    << /T(field1) /V(<%=v1%>) >>
    << /T(field2) /V(<%=v2%>) >>
    % << /T(status) /V(<%=(message.length() > 0?”Yes”:”Off”)%>) >> % Checkbox init does not work for some reason
    ]
    /UF(<%=request.getHeader("referer") %>)
    /F(<%=request.getHeader("referer") %>)
    >>
    >>
    endobj
    trailer
    <>
    %%EOF[/language:1rjc3xsm]

Viewing 15 posts - 1,276 through 1,290 (of 4,246 total)