Forum Replies Created

Viewing 15 posts - 196 through 210 (of 583 total)
  • Author
    Posts
  • in reply to: How to embedd PDF?
    #29667

    You can embed PDFs only as an attachment using <pd4ml:attachment> tag.

    Some species of TIFFs (Fax) are supported by PD4ML directly, so a regular Image from the forum topic: How to embedd PDF? tag can be used.

    If not, there is a way to implement a custom resource loader to convert a TIFF to PNG, GIFF or JPEG on a fly.

    See https://pd4ml.com/cookbook/custom_rc_loaders.htm

    in reply to: Trouble understanding differencies between Linux and Windows
    #29620

    There is a minor difference in diagnostics data of the PDFs (encapsulated to the first PDF content object):

    % PD4ML version: 394 Pro DMS
    % JDK version: 1.7.0_51
    % OS version: Linux 3.2.0-76-generic-pae
    % File encoding: UTF-8
    % insets: java.awt.Insets[top=0,left=0,bottom=0,right=0]
    % size: java.awt.Dimension[width=595,height=842]
    % ttf: java:
    % pro version
    
    % PD4ML version: 394 Pro DMS
    % JDK version: 1.7.0_71
    % OS version: Windows 7 6.1
    % File encoding: UTF-8
    % insets: java.awt.Insets[top=0,left=0,bottom=0,right=0]
    % size: java.awt.Dimension[width=595,height=842]
    % ttf: java:
    % pro version

    The difference explains also a shift in the object offset table (XREF).

    Also the documents should differ in DOCIDs – unique document identifiers.

    Probably a better way to compare the documents would be to use PD4Document API to collect metadata (i.e. number of pages) and to extract particular page content.

    PD4Document doc1 = new PD4Document(new URL("file:o:/work/testdata/testsuite/pdf/doc5enc.pdf"), password);
    int pagenum = doc1.getNumberOfPages();
    String content = doc1.getPageContent(1);
    String outlines = doc1.dumpOutlines();
    String author = doc1.getAuthor()

    in reply to: HTML entities not rendered in PDF
    #29339

    There is no HTML entities in the code above.

    Constructs like <?php echo $src[0]; ?> are to be substituted with HTML by a PHP runtime before the document is passed to PD4ML.

    in reply to: HTML entities not rendered in PDF
    #29338

    <div class="box-a">
    <div class="logo-a"><img alt="Image from the forum topic: HTML  entities not rendered in PDF" src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="LOGO"/></div>
    <section>
    <div class="pro-img"><img alt="Image from the forum topic: HTML  entities not rendered in PDF" src="<?php echo $src[0]; ?>" alt="Product" /></div>
    <div class="voucher-sec">
    <h2>Product Name: <?php  echo  $ttt=$item;?></h2>
    <h2><b>Order Id:</b> <?php  echo $orderid; ?></h2>
    </div>
    </section>
    <h2 class="part-a"><strong>Coupon Code:<?php echo $coupon; ?></strong></h2>
    <div style="clear:both;"></div>
    </div>

    in reply to: BufferedImage via ImageIO not schow in firefox preview
    #29430

    In the servlet code I would try also to return a content lengths in HTTP header.

    For that, you would probably need to print image to a ByteArrayOutputStream, measure resulting byte array length, set headers and only after that send it to HTTP output stream.

    in reply to: Page is cut when is footer and html occupy all page.
    #29660

    Forthcoming v395 is going to address the issue. If you send us (support pd4ml com) a document sample, we could test prior to the release if it solves the numbering problem in your particular case.

    in reply to: Table of Contents Numbering off – BUG??
    #29632

    Forthcoming v395 is going to address the issue. If you send us (support pd4ml com) a document sample, we could test prior to the release if it solves the numbering problem in your particular case.

    in reply to: It seems adjustHtmlWidth doesn’t work
    #29594

    The issue is going to be solved with the forthcoming v395.

    in reply to: Mangal font support
    #29640

    PD4ML does not support a ligaturizing of Hindi fonts.

    If you point us to a good algorithm, which describes it, we’ll implement it on our code.

    in reply to: Problems with bullets in list, RTF file
    #29661

    We still have no solution.

    If you take a look at the RTF document source, you can see, all the bullets are defined absolutely identical way. But in MS Word some of them appears as they are defined with Times New Roman. The issue is not reproducible with OpenOffice.

    Next days we’ll try to find a workaround, however it is still not obvious how.

    in reply to: automatic scaling feature is not working
    #29658

    @don ji wrote:

    Before 3.8.5fx2, if set the html width to a big number(5000) , and the html page is 1200 width, it will generate the page render as 1200 width.
    After 3.8.5fx2, the page will render in PDF as if it’s 5000px long, the rendered PDF content is very small although there’s no need for scaling.

    Looks like the adjustHtmlWidth is broken since 3.8.5fx2 and thereafter.

    “adjustHtmlWidth() is needed in situations like the following: you have a wide table, whose width is not constant (depends on the table content). In order to avoid table cut right side, you may define very big htmlWidth value and trigger adjustHtmlWidth(). Lets’s say htmlWidth=1200, actual table width is 980. In the case PD4ML will render the document assuming htmlWidth=1200 and analyze a right edge location of the content. In our case it is 980, so it will auto-reduce htmlWidth to 980.

    in reply to: Can add new line in the footer
    #29648

    When i an trying to use
    tag in footer then content of new line in hide.
    Only first line contents are showing.

    <pd4ml:footer   areaHeight="18"   >
    <table align="right" width="100%"  >
    <tr>
    <td  align="left" valign="top">
    <font size="2">
    <% out.println(financeType+"-"+fullName+"nn");%>
    <br>
    <%	out.println(ourRef +"   CLIENT'S SIGNATURE:..............");%>
    </font>
    </td>
    <td align="right"  width="15%"  valign="top">
    <font size="2">
    page $[page] of $[total]
    </font>
    </td>
    </tr>
    </table>
    </pd4ml:footer>

    Plz reply.

    in reply to: Can i remove following url from the botton of the pages?
    #29646

    Thanks

    in reply to: pdf generated empty
    #29602

    Is there an equivalent in Domino to Port 10039 in Websphere or are ports 80 and 443 enough?

    in reply to: pdf generated empty
    #29601

    I cannot find stdout or equivalent for Domino, I am looking at the Domino console, i.e., log.nsf.
    If I create an error like change http://&#8230;. to htxx://… in the URL I get error information saying the protocol is wrong.

    what I get is:

    19/11/2014 12:58:57   HTTP JVM: f:dataEW0008.pdf
    19/11/2014 12:58:57   HTTP JVM: http://www.domain.com/v4/CTR0101.nsf/lookupParent/EW0008?OpenDocument
    19/11/2014 12:58:57   HTTP JVM: version: PD4ML 380fx6 Pro (eval)
    19/11/2014 12:58:57   HTTP JVM: done in 140ms.

    But, the PDF is blank

Viewing 15 posts - 196 through 210 (of 583 total)