Forum Replies Created

Viewing 15 posts - 856 through 870 (of 4,243 total)
  • Author
    Posts
  • in reply to: background print
    #28172

    For security reasons, a silent background print of online documents is not allowed by web browsers and PDF viewers.

    You may only force PDF viewer to open the print dialog. See
    html-pdf-faq-f1/automatically-open-print-dialog-t158.html

    The topic also explains how to start a print job from command line.

    in reply to: [.NET] HTML rendering problem
    #28144

    @PD4ML wrote:

    It is not available for download yet, but we are ready to send it to you directly by request.

    Ok, I’ll like to buy it. Can you send me a “PD4ML Library Pro” offer with payment information for this special case? I will forward it to the cost centre. Or should I use the normal PayPal-Link?

    Thanks and best regards,
    Stefan

    in reply to: uncorrect size for image
    #27821

    any respone ?

    in reply to: General questions / FAQ
    #26450

    We use PD4ML to render printable versions of our forms. I’ve read on the forum that PD4ML ignores the “print” media type. Is there any way to coax PD4ML to process styles assigned to this media type, so we don’t have to duplicate styles for “print” and proprietary “pdf” media types (in our case, they are essentially the same)

    Thanks!

    in reply to: media "print"
    #28197

    Ignore me; I just found PD4Constants.PD4ML_MEDIA_TYPE_PRINT

    public static final java.lang.String PD4ML_MEDIA_TYPE_PRINT

    “pd4ml.media.type.print”. PD4ML by default interprets “screen”, “all” and “pdf” CSS media types. If the parameter is set to “add”, it adds to the list “print” media type. If it is set to “override”, it forces PD4ML to ignore “screen”, but use “print” instead.

    See Also:
    PD4ML.setDynamicParams(java.util.Map), Constant Field Values

    in reply to: media "print"
    #28198

    Glad, you found the solution

    in reply to: HTML/CSS rendering issues
    #26451

    I’m having trouble getting the Inline footers to work. I’ve been able to define footers through the API with no problem but, no matter what I do, i can’t get them to show up when i’ve defined them in the html. Page breaks work perfectly

    I’d like to be able to put the footer on the last page of the document but, no matter what i do it will not display – anywhere. The html follows prior to pdf generation follows…

    Version of PD4ML library: pd4ml.prof.dotnet20.324b2

    Regards

    <html><br /> <link type="text/css" rel="Stylesheet" href="http://cobra/utopia/RateSheetStyle.css" xmlns="http://www.w3.org/TR/REC-html40" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:s="urn:schemas-microsoft-com:xml-data" xmlns:pd4ml="http://pd4ml.com/tlds/pd4ml/2.6" /><br /> <body><br /> <div xmlns="http://www.w3.org/TR/REC-html40" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:s="urn:schemas-microsoft-com:xml-data" xmlns:pd4ml="http://pd4ml.com/tlds/pd4ml/2.6"><br /> <div><br /> <table><br /> <tr><br /> <td style="padding-left:8px;padding-right:32px; "><br /> <span style="font-size:10pt; font-weight:bold;">Factor A</span><br /> </td><br /> <td style="padding-left:8px;padding-right:32px; "><br /> <span style="font-size:10pt; font-weight:bold;">Factor B</span><br /> </td><br /> </tr><br /> </table><br /> <table cellpadding="0" cellspacing="0" style="border-left:solid 1px black;"><br /> <thead><br /> <tr><br /> <th class="header_InnerCell">Class</th><br /> <th class="header_InnerCell">3/3</th><br /> <th class="header_InnerCell">6/6</th><br /> <th class="header_InnerCell">12/12</th><br /> <th class="header_InnerCell">24/24</th><br /> <th class="header_InnerCell">36/36</th><br /> </tr><br /> </thead><br /> <tbody><br /> <tr><br /> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">1</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">396</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">530</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">748</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1042</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1515</td><br /> </tr><br /> <tr><br /> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">2</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">429</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">579</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">810</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1134</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1666</td><br /> </tr><br /> <tr><br /> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">3</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">467</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">634</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">882</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1238</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1835</td><br /> </tr><br /> <tr><br /> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">4</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">589</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">752</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1108</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1410</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">2106</td><br /> </tr><br /> <tr><br /> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">5</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1251</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1719</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">2661</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">4282</td><br /> <td class="row_Cell" style="color:white;">&shy</td><br /> </tr><br /> </tbody><br /> </table><br /> <pd4ml:page.break /><br /> <table><br /> <tr><br /> <td style="padding-left:8px;padding-right:32px; "><br /> <span style="font-size:10pt; font-weight:bold;">Factor C</span><br /> </td><br /> <td style="padding-left:8px;padding-right:32px; "><br /> <span style="font-size:10pt; font-weight:bold;">Factor D</span><br /> </td><br /> </tr><br /> </table><br /> <table cellpadding="0" cellspacing="0" style="border-left:solid 1px black;"><br /> <thead><br /> <tr><br /> <th class="header_InnerCell">Class</th><br /> <th class="header_InnerCell">3/3</th><br /> <th class="header_InnerCell">6/6</th><br /> </tr><br /> </thead><br /> <tbody><br /> <tr><br /> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">1</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">455</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">640</td><br /> </tr><br /> <tr><br /> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">2</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">496</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">704</td><br /> </tr><br /> <tr><br /> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">3</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">539</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">776</td><br /> </tr><br /> <tr><br /> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">4</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">687</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">929</td><br /> </tr><br /> <tr><br /> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">5</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1482</td><br /> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">2186</td><br /> </tr><br /> </tbody><br /> </table><br /> <pd4ml:page.break /><br /> </div><br /> </div><br /> <pd4ml:page.footer height="-1" scope="skiplast" xmlns:pd4ml="http://pd4ml.com/tlds/pd4ml/2.6" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:s="urn:schemas-microsoft-com:xml-data" xmlns="http://www.w3.org/TR/REC-html40"><br /> <div style="margin-top:8px;"><br /> <span style="font-size:10pt; font-weight:bold;">Footer [INLINE]</span><br /> <hr class="thick" /><br /> <table cellpadding="0" cellspacing="0" style="width:100%;font-size:8pt;"><br /> <colgroup><br /> <col width="70%" /><br /> <col /><br /> <col /><br /> </colgroup><br /> <tr><br /> <td style="width:70%;background-color:#E9E9E9;">Option 1</td><br /> <td style="background-color:#E9E9E9;"><br /> <span /><br /> </td><br /> <td style="padding-right:4px;text-align:right;background-color:#E9E9E9;">200</td><br /> </tr><br /> <tr><br /> <td style="width:70%;">Option 2</td><br /> <td style=""><br /> <span /><br /> </td><br /> <td style="padding-right:4px;text-align:right;">25</td><br /> </tr><br /> <tr><br /> <td style="width:70%;background-color:#E9E9E9;">Option 3</td><br /> <td style="background-color:#E9E9E9;"><br /> <span /><br /> </td><br /> <td style="padding-right:4px;text-align:right;background-color:#E9E9E9;">75</td><br /> </tr><br /> <tr><br /> <td style="width:70%;">Option 4</td><br /> <td style=""><br /> <span /><br /> </td><br /> <td style="padding-right:4px;text-align:right;">100</td><br /> </tr><br /> <tr><br /> <td style="width:70%;background-color:#E9E9E9;">Option 5</td><br /> <td style="background-color:#E9E9E9;"><br /> <span /><br /> </td><br /> <td style="padding-right:4px;text-align:right;background-color:#E9E9E9;">150</td><br /> </tr><br /> <tr><br /> <td style="width:70%;">Option 6</td><br /> <td style=""><br /> <span /><br /> </td><br /> <td style="padding-right:4px;text-align:right;">175</td><br /> </tr><br /> <tr><br /> <td style="width:70%;background-color:#E9E9E9;">Option 7</td><br /> <td style="background-color:#E9E9E9;"><br /> <span /><br /> </td><br /> <td style="padding-right:4px;text-align:right;background-color:#E9E9E9;">75</td><br /> </tr><br /> <tr><br /> <td style="width:70%;">Option 8</td><br /> <td style=""><br /> <span /><br /> </td><br /> <td style="padding-right:4px;text-align:right;">100</td><br /> </tr><br /> </table><br /> <hr class="thick" /><br /> </div><br /> </pd4ml:page.footer><br /> </body><br /> </html>

    in reply to: General questions / FAQ
    #26452

    Hi, I need to export a form on a single sheet, but the form does not fit on one sheet, is there any way to reduce the size to enter the entire form on one sheet?

    thanks you

    in reply to: General questions / FAQ
    #26453

    I’m trying to generate PDF file in memory using MemoryStream. But MemoryStream is closed and unaviable for reading after render method is completed.

    I have seen an example on how to do it in Java using ByteArrayOutputStream but no example was provided in .NET.

    Thank you

    MemoryStream msPDF = new MemoryStream();
    msPDF.Seek(0,System.IO.SeekOrigin.Begin);
    pd4ml.render(msHTML,msPDF, new System.Uri(“http://localhost/cf&#8221;));
    byte[] baPDF = new byte[msPDF.Length];//this line produces an exception
    msPDF.Read(baPDF,0,(int) msPDF.Length);

    in reply to: Form in a sheet
    #28205

    If the HTML document has only the form, pd4ml.fitPageVertically() should help.

    If the form is a section of a bigger document, there are possible workarounds with proprietary tag.

    in reply to: pd4ml:page.footer Inline tag not rendering
    #28199

    <pd4ml:page.footer> and <pd4ml:page.header> tags do not impact current page (they applied to subsequent pages only). So if you place the definition to the very end of HTML, there is no pages anymore, to apply the footer.

    In order to resolve the issue you need to place the footer definition immediately after opening tag or before opening .

    in reply to: uncorrect size for image
    #27822

    The archive does not contain images 🙁
    Please add

    in reply to: Custom PD4ML classloader
    #28194

    Current versions load the class like that:
    [language=java:f8vh12om]Class c = Class.forName(className);
    ResourceProvider provider = (ResourceProvider) c.newInstance();[/language:f8vh12om]

    We’ve just changed to
    [language=java:f8vh12om]Class c;
    try {
    c = Class.forName(className);
    } catch (ClassNotFoundException e) {
    try {
    c = Thread.currentThread().getContextClassLoader().loadClass(className);
    } catch (ClassNotFoundException e1) {
    c = ResourceCache.class.getClassLoader().loadClass(className);
    }
    }[/language:f8vh12om]

    (ResourceCache is one of PD4ML classess)

    In theory it should help. Please contact support pd4ml com if you have anything to add to the code or if you want to test it with your application before we released new version.

    in reply to: uncorrect size for image
    #27823

    i’ve added picture of original html

    in reply to: HTML/CSS rendering issues
    #26454

    We Have One Table the columns of it Doesn’t span. Please Give Me Help For The How To Col-span For Table Columns

    <br /> <table><br /> <tr><br /> <td class="blank" >data</td><br /> <td class="blank" >data</td><br /> <td class="blank" >data</td><br /> <td class="blank" >data</td><br /> <td class="blank" >data</td><br /> </tr><br /> <tr><br /> <td class="blank" colspan="3"></td><br /> <td class="blank" colspan="2"></td><br /> </tr><br /> </table><br />

    I Write The Code This way But it Not Works

Viewing 15 posts - 856 through 870 (of 4,243 total)