Forum Replies Created

Viewing 15 posts - 526 through 540 (of 583 total)
  • Author
    Posts
  • in reply to: Problem in applying margins
    #27901

    so pd4ml:transform doesn’t work if embedded in raw HTML for processing via pd4ml.render(HTMLInputStream, pdfOutputStream);? I’m looking to set up templates with page orientation data in them but have been struggling with getting them to work. I’d prefer to not have to code the Java handler to set the orientation…

    sample HTML:

    <pd4ml:transform pageOrientation="landscape">
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>landscape report - DEV</title>
    ...

    in reply to: cache parsed CSS?
    #27985

    @PD4ML wrote:

    I do not believe you use CSS stylesheets, greater than 1 Mb in size. Otherwise it should not tangible impact HTML-to-PDF conversion performance.

    No, it’s ‘only’ about 120kb in size. Which is huge, but i cant change that.

    @PD4ML wrote:

    the best solution would be to support the notorious “filter:” properties

    That’d be awesome. We have to rely on that property to support IE6…

    Thanks for your efforts!

    in reply to: Fieldset Legend + Bold
    #27907

    @PD4ML wrote:

    We’ve just fixed the problem in our development build. The version will be available for download in few days.

    Is this version now available?

    in reply to: CSS div positioning bug
    #27956

    Thank you for the quick reply.

    I tried the parameter setting configuration, but it still did not work.

    There is no “choose file” and “add the file” buttons to add a message attachment, so I am pasting below the source code of the jsp. If there is another way to send you the attachment files, I will be glad to send.

    <%@ taglib uri="/WEB-INF/pd4ml.tld" prefix="pd4ml" %><%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %><%@page contentType="application/pdf" %><%response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
    response.setHeader("Pragma","no-cache"); //HTTP 1.0
    response.setDateHeader ("Expires", 0); //prevents caching at the proxy server %><c:set var="ctx" value="${pageContext.request.contextPath}" scope="request"/><c:set var="serverAddr" value="http://${pageContext.request.serverName}:${pageContext.request.serverPort}" scope="request"/><pd4ml:transform
    screenWidth="400"
    pageFormat="A4"
    pageOrientation="portrait"
    pageInsets="20,20,20,20,points"
    enableImageSplit="false">
    <strong>  <pd4ml:parameters>
    <pd4ml:parameter key="pd4ml.absolute.address.space" value="document"/>
    </pd4ml:parameters>  </strong>
    <pd4ml:fix_base_path pattern="${ctx}" basePath="${serverAddr}">
    
    <html>
    <head>
    <style type="text/css">
    h2 {
    page-break-after: always;
    }
    </style>
    </head>
    <body>
    <center>
    <div style=" background-color: aqua; width:100px; border-color: black; height:150px; border-width: 3px; border-style: solid;" >
    <div style="background-color: green; ">CONTRACHEQUE 1</div>
    <div style="position: relative; border-color: red; border-width: 3px; border-style: solid;">
    <div style=" position: absolute; left: 0; top: 0; border-color: maroon;  border-width: 3px; border-style: solid;">
    div absolute da imagem
    </div>
    <div style="background-color: BLUE; position: absolute; left: 0; top: 0; border-color: yellow; border-width: 3px; border-style: solid;">
    <div id="destinatario" class="destinatario" >
    <p class="textoVerso">MARCOS URATA
    
    <p class="textoVerso">ENDERECO
    
    </div>
    </div>
    </div>
    </div>
    <pd4ml:page_break />
    <div style=" margin-top:5px; background-color: black; width:100px; height:150px; border-color: green; border-width: 3px; border-style: solid;">
    <div style="background-color: yellow; ">CONTRACHEQUE 2</div>
    <div style="position: relative; border-color: red; border-width: 3px; border-style: solid;">
    <div style=" position: absolute; left: 0; top: 0;  border-color: maroon;  border-width: 3px; border-style: solid;">
    div absolute da imagem
    </div>
    <div style="background-color: yellow; position: absolute; left: 0; top: 0;border-color: yellow; border-width: 3px; border-style: solid;">
    <div id="destinatario" class="destinatario" >
    <p class="textoVerso">MARCOS URATA
    
    <p class="textoVerso">ENDERECO
    
    </div>
    </div>
    </div>
    </div>
    <pd4ml:page_break />
    <div style="margin-top:5px; background-color: lime;  width:100px; height:150px; border-color:fuchsia; border-width: 3px; border-style: solid;">
    <div style="background-color: silver; ">CONTRACHEQUE 3</div>
    <div style="position: relative; border-color: red; border-width: 3px; border-style: solid;">
    <div style=" position: absolute; left: 0; top: 0;  border-color: maroon;  border-width: 3px; border-style: solid;">
    div absolute da imagem
    </div>
    <div style="background-color: silver; position: absolute; left: 0; top: 0; border-color: yellow; border-width: 3px; border-style: solid;">
    <div id="destinatario" class="destinatario" >
    <p class="textoVerso">MARCOS URATA
    
    <p class="textoVerso">ENDERECO
    
    </div>
    </div>
    </div>
    </div>
    </center>
    </body>
    
    </html>
    </pd4ml:fix_base_path>
    </pd4ml:transform>

    in reply to: CSS div positioning bug
    #27954

    Hello,

    I am doing some test with absolute positioning inside relative divs. Something like this

    <div id="outer" style="position:relative; height: 100px;" >
    outer div 1
    <div id="inner-1" style="position:absolute; top:0; left:0"> inner-1 <img alt="Image from the forum topic: CSS div positioning bug" src="test.jpg"> </div>
    <div id="inner-2" style="position:absolute; top:0; left:0"> inner-2 </div>
    </div>
    
    <div id="outer" style="position:relative; height: 100px;">
    outer div 2
    <div id="inner-1" style="position:absolute; top:0; left:0"> inner-1 <img alt="Image from the forum topic: CSS div positioning bug" src="test.jpg"> </div>
    <div id="inner-2" style="position:absolute; top:0; left:0"> inner-2 </div>
    </div>

    On the HTML each div is rendered one after the other and the inner divs are displayed INSIDE their outer divs.

    Here is the sample html source code that I am trying to render with pd4ml.
    [attachment=C:pd4ml.jpg][/attachment]

    <html>
    <head>
    <style type="text/css">
    h2 {
    page-break-after: always;
    }
    </style>
    <jsp:include page="../../includes/head.jsp" />
    </head>
    <body>
    <center>
    <div style=" background-color: aqua; width:100px; border-color: black; height:150px; border-width: 3px; border-style: solid;" >
    <div style="background-color: green; ">CONTRACHEQUE 1</div>
    <div style="position: relative; border-color: red; border-width: 3px; border-style: solid;">
    <div style=" position: absolute; left: 0; top: 0; border-color: maroon; border-width: 3px; border-style: solid;">
    div absolute da imagem
    </div>
    <div style="background-color: BLUE; position: absolute; left: 0; top: 0; border-color: yellow; border-width: 3px; border-style: solid;">
    <div id="destinatario" class="destinatario" >
    <p class="textoVerso">MARCOS URATA
    
    <p class="textoVerso">ENDERECO
    
    </div>
    </div>
    </div>
    </div>
    <h2> </h2>
    <div style=" margin-top:5px; background-color: black; width:100px; height:150px; border-color: green; border-width: 3px; border-style: solid;">
    <div style="background-color: yellow; ">CONTRACHEQUE 2</div>
    <div style="position: relative; border-color: red; border-width: 3px; border-style: solid;">
    <div style=" position: absolute; left: 0; top: 0;  border-color: maroon;  border-width: 3px; border-style: solid;">
    div absolute da imagem
    </div>
    <div style="background-color: yellow; position: absolute; left: 0; top: 0;border-color: yellow; border-width: 3px; border-style: solid;">
    <div id="destinatario" class="destinatario" >
    <p class="textoVerso">MARCOS URATA
    
    <p class="textoVerso">ENDERECO
    
    </div>
    </div>
    </div>
    </div>
    <h2> </h2>
    <div style="margin-top:5px; background-color: lime;  width:100px; height:150px; border-color:fuchsia; border-width: 3px; border-style: solid;">
    <div style="background-color: silver; ">CONTRACHEQUE 3</div>
    <div style="position: relative; border-color: red; border-width: 3px; border-style: solid;">
    <div style=" position: absolute; left: 0; top: 0;  border-color: maroon;  border-width: 3px; border-style: solid;">
    div absolute da imagem
    </div>
    <div style="background-color: silver; position: absolute; left: 0; top: 0; border-color: yellow; border-width: 3px; border-style: solid;">
    <div id="destinatario" class="destinatario" >
    <p class="textoVerso">MARCOS URATA
    
    <p class="textoVerso">ENDERECO
    
    </div>
    </div>
    </div>
    </div>
    </center>
    </body>
    
    </html>

    And the resulting pdf generated by pd4ml:
    [attachment=C:pd4ml.pdf][/attachment]

    in reply to: uncorrect size for image
    #27815

    How do I attach files to the message?

    in reply to: uncorrect size for image
    #27813

    I have the same problem here…In HTML the imagem is shown in normal size. When it is rendered with PD4ML, the image is zoomed.

    How can we fix that?

    in reply to: PDF loading crash in IE with Google Toolbar
    #27919

    Please try to open the link from your site (https://pd4ml.com/examples.htm) from “4. Web scenario: Using PD4ML custom tags in JSP.” –> “Click here to see the resulting PDF. (Tomcat 4.1.30 WinXP) ” in IE with Google toolbar installed. This is the scenario.

    Thanks.

    in reply to: graph not plotted
    #27808

    thanks for your help and your immediate replay

    in reply to: PD4ML getting out of memory errors
    #27427

    Hi PD4ML Support team,
    I have a question regarding my “out of memory” problem.
    My environment:
    – OS: AIX
    – Apps Server: Weblogic 6 (JDK 1.3)
    – PD4ML 350 Pro

    I tried to use PD4ML 350 Pro to print chinese character in PDF by accessing TTF file.
    The TTF file size is 22 MB.

    The parameter of java options in weblogic start script is the following
    -Xms=128m -Xmx=256m -> always throwing error “out of memory” when converting to PDF
    -Xms=512m -Xmx=512m -> always throwing error “out of memory” when converting to PDF
    -Xms=128m -Xmx=512m -> working properly

    My question is why when I set the heap size -Xms=512m -Xmx=512m, always throwing out of memory
    and -Xms=128m -Xmx=512m it can work properly.

    Is my setting above correct (-Xms=128m -Xmx=512m) ?

    Thank you

    in reply to: logo in header
    #27933

    hi
    I have to set logo in first page only.
    how can i do?

    Thanks in Advance
    Regards
    Dinesh.N

    in reply to: About text-indent
    #27922

    Hi again. We are deciding between PD4ML Java Library Pro single and volume licenses. Is it possible to estimate how long it would take for this feature to be available in each of these two cases?

    Thanks!

    in reply to: About text-indent
    #27920

    Correcting, “…the suggested alternative for moving the first letter…”

    in reply to: Problem in applying margins
    #27900

    Ok. I was not doing right, for PD4ML works differently from other tools I’ve experimented. Thank you for replying.

    in reply to: Double byte support
    #27887

    Thanks For your replay

    i tried but i have got some problem
    what i do why couldn’t i cache font properties.
    Here i have sent my exception
    Thanks in Advance,

    not yet in cache: file:c:/egurkha/manager/fonts/pd4fonts.properties
    using content encoding from HTTP header: UTF-8
    loading CSS file http://192.168.10.170:7077/final/reporter/eg_styles/repstyle_purple.css
    not yet in cache: http://192.168.10.170:7077/final/reporter/eg_styles/repstyle_purple.css
    'verdana' is not in pd4fonts.properties file
    reject TTF lookup for: 'verdana'
    'arial' is not in pd4fonts.properties file
    reject TTF lookup for: 'arial'
    'helvetica' is not in pd4fonts.properties file
    reject TTF lookup for: 'helvetica'
    not yet in cache: file:c:/egurkha/manager/fonts/CODE2000.TTF
    read 'code2000' from file:c:/egurkha/manager/fonts/CODE2000.TTF
    'arial bold' is not in pd4fonts.properties file
    reject TTF lookup for: 'arial bold'
    'verdana bold' is not in pd4fonts.properties file
    reject TTF lookup for: 'verdana bold'
    'helvetica bold' is not in pd4fonts.properties file
    reject TTF lookup for: 'helvetica bold'
    image not yet in cache: http://192.168.10.170:7077/final/reporter/images/spacer.gif
    not yet in cache: http://192.168.10.170:7077/final/reporter/images/spacer.gif
    image size: 43
    image not yet in cache: http://192.168.10.170:7077/final/reporter/images/purple/print.gif
    not yet in cache: http://192.168.10.170:7077/final/reporter/images/purple/print.gif
    image size: 1117
    'courier new' is not in pd4fonts.properties file
    reject TTF lookup for: 'courier new'
    image not yet in cache: http://192.168.10.170:7077/final/reporter/images/purple/tray-corner.gif
    not yet in cache: http://192.168.10.170:7077/final/reporter/images/purple/tray-corner.gif
    image size: 352
    done in 6610ms.
    done.

    Regards
    Dinesh.N

Viewing 15 posts - 526 through 540 (of 583 total)