Forum Replies Created

Viewing 15 posts - 466 through 480 (of 4,246 total)
  • Author
    Posts
  • in reply to: General questions / FAQ
    #26346

    We are evaluating your product and for the most part, it serves our purpose of capturing web pages. Going by your example pd4ml.render(…), is there a way to scale so the whole page fits on A4 for example?

    in reply to: Evaluation: Scaling
    #27896

    pd4ml.fitPageVertically(); should do the trick

    in reply to: General questions / FAQ
    #26347

    At times, PD4ML is not able to render a web page and generates errors. Most of the times the try and catch clause is sufficient to handle these errors but other times PD4ML seems to be buried in a perpetual loop.

    Please try converting this page:

    http://openjfx.java.sun.com/current-build/doc/reference/ch06s01.html

    Thanks for your help as always.

    in reply to: Another Evaluation Question
    #27897

    I tested the URL with v360 and was able to reproduce the issue, however the actual build, we are going to publish in few days, converted the document without problems. See attached.

    If you are interested to test the build, we could send it to you asap. Please contact PD4ML support by email.

    in reply to: Another Evaluation Question
    #27898

    I would be delighted to test the build. How do I download it? Thanks!

    in reply to: HTML/CSS rendering issues
    #26349

    Hi,

    how can I make the text of a fieldset legend bold?

    fieldset legend{
    color: #000000;
    font-weight:bold;
    }

    this will print the legend in the correct color but the font-weight seems not to work.

    in reply to: Fieldset Legend + Bold
    #27904

    You defined the style correctly, but the actual version of PD4ML offers limited style flexibility for the legend text (actually you may change only color, text style it inherits from the current context).

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

    in reply to: Fieldset Legend + Bold
    #27905

    sounds great…

    i suggest there is another issue with fieldsets, if you look at the following

    <br /> <div style="font-size: 18pt;font-weight: bold;">text</div><br /> <fieldset><br /> <legend>legend text</legend><br /> palim palim<br /> </fieldset><br /> <br /> <div style="font-size: 18pt;font-weight: bold;">text</div><br /> <fieldset><br /> <legend>legend text</legend><br /> </fieldset><br /> <br /> <div style="font-size: 18pt;font-weight: bold;">text</div><br /> <fieldset><br /> <legend>legend text</legend><br /> palim palim<br /> </fieldset><br /> <br /> <div style="font-size: 18pt;font-weight: bold;">text</div><br /> <fieldset><br /> <legend>legend text</legend><br /> <table><br /> <thead><br /> <tr><br /> <th>heading</th><br /> </tr><br /> </thead><br /> <tbody><br /> <tr><br /> <td>content</td><br /> </tr><br /> </tbody><br /> </table><br /> </fieldset><br /> <br /> <div style="font-size: 18pt;font-weight: bold;">text</div><br /> <fieldset><br /> <legend>legend text</legend><br /> <table><br /> <tr><br /> <td>content</td><br /> </tr><br /> </table><br /> </fieldset><br /> <br /> <div style="font-size: 18pt;font-weight: bold;">text</div><br /> <fieldset><br /> <legend>legend text</legend><br />  <br /> </fieldset><br /> <br /> <div style="font-size: 18pt;font-weight: bold;">text</div><br /> <fieldset><br /> <legend>legend text</legend><br /> <table><br /> <tr><br /> <td></td><br /> </tr><br /> </table><br /> </fieldset><br />
    you will see that some of the legends are formatted with the font-size: 18pt from the div above. it seems that this happens if there is no visible output or nbsp inside the fieldset

    in reply to: Fieldset Legend + Bold
    #27906

    I’ve just run the test with your sample and got layout identical to a rendered by MS IE. So I would say the issue is solved too.

    in reply to: Troubleshooting
    #26348

    Hi. I’m testing PD4ML trial v360. One of the problems I’m having is that the page insets defined by the tag pd4ml:transform do not work. The margins I define are only applied to the PDF when I add the following line to the Java code:
    pd4ml.setPageInsetsMM(new Insets(10, 30, 20, 20));
    Does anybody have an idea why this could be happening? Below are both my html and my Java code. Thanks.
    <br /> <?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"<br /> "xhtml.dtd"><br /> <!-- modelo --><br /> <!-- documento --><br /> <pd4ml:transform pageFormat="A4" screenWidth="600" pageOrientation="portrait" pageInsets="10,30,20,20,mm"><br /> <html><br /> <head><br /> </head><br /> <body><br /> <!-- PD4ML --><br /> <br /> <pd4ml:page.header scope="1"><br /> <table width="100%"><br /> <tr><br /> <td>Testando cabeçalho 1a pagina</td><br /> </tr><br /> </table><br /> </pd4ml:page.header><br /> <br /> <pd4ml:page.header scope="2+"><br /> <table width="100%" border="0" bgcolor="#FFFFFF"><br /> <tr><br /> <td>Testando cabeçalho 2a pagina</td><br /> </tr><br /> </table><br /> </pd4ml:page.header><br /> <br /> <span style="font-size:11pt"><br /> <!-- Generated by XStandard version 2.0.5.0 on 2010-03-22T14:02:35 --><br /> </span><br /> <p style="font-size:11pt;">a sdf sfsdsd</p><br /> <br /> <pd4ml:page.footer scope="1"><br /> <p>Estou testando meu rodapé 1 </p><br /> </pd4ml:page.footer><br /> <br /> <pd4ml:page.footer scope="2+"><br /> <p>Estou testando meu rodapé 2 </p><br /> </pd4ml:page.footer><br /> </body><br /> </html><br /> </pd4ml:transform><br />
    <br /> StringReader sr = new StringReader(html);<br /> PD4ML pd4ml = new PD4ML();<br /> ByteArrayOutputStream baos = new ByteArrayOutputStream();<br /> //pd4ml.setPageInsetsMM(new Insets(10, 30, 20, 20));<br /> //pd4ml.setHtmlWidth(600);<br /> pd4ml.render(sr, baos);<br />

    in reply to: Problem in applying margins
    #27899

    is a custom JSP tag, which works only in JSP container. Its attributes are mapped to PD4ML API calls. So in .JSP implicitly invokes pd4ml.setPageInsetsMM(new Insets(10, 30, 20, 20));

    If you do not use PD4ML JSP taglib, a call like pd4ml.setPageInsetsMM(new Insets(10, 30, 20, 20)); is the only way to define the margins.

    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: General questions / FAQ
    #26351

    Hi i am evaluating your product and found a very strange issue.

    I have an HTML with an image in it called logo.jpg. when ever i render, it throws an exception, then hangs until I get an out of memory exception. I broke it down to the simplest HTML and get the same issue:

    <HTML><BODY><IMG SRC="logo.jpg"></BODY></HTML>

    This occurs whether the image exists or not in my basedir. If i rename the file and the reference to the file in the html, it sometimes works. Here is the rename attempts and the results:

    logo.jpg – fails
    logo.png – fails
    alogo.jpg – fails
    a_logo.jpg – succeeds
    logoa.jpg – fails
    logo_a.jpg – succeeds

    I know the obvious solution is to rename the files and the references in the HTML, but that is not a feasible option in my circumstances. Please help as your library is perfect for my needs.

    This is the exception i get when running against the simple HTML example above as well as my production HTML:

    BlockElement(body) {margin-right=8, line-height=1.2000000476837158, font-size=16, margin-left=8, margin-bottom=8, display=block, font-family=[Ljava.lang.String;@14835fb, margin-top=8}<br /> ContentElement(pd4content) [ ] {line-height=1.2000000476837158, font-family=[Ljava.lang.String;@14835fb, display=block, font-size=16}<br /> <br /> java.lang.StringIndexOutOfBoundsException: String index out of range: 10<br /> at java.lang.String.substring(String.java:1935)<br /> at org.zefer.html.doc.n.Öõ0000(Unknown Source)<br /> at org.zefer.html.doc.n.Õõ0000(Unknown Source)<br /> at org.zefer.html.doc.n.ö00000(Unknown Source)<br /> at org.zefer.html.doc.b.b.o00000(Unknown Source)<br /> at org.zefer.html.doc.ab.o00000(Unknown Source)<br /> at org.zefer.html.doc.b.d.o00000(Unknown Source)<br /> at org.zefer.html.doc.ab.o00000(Unknown Source)<br /> at org.zefer.html.doc.Document.layout(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.super(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> at Main.transform(Main.java:51)<br /> at Main.main(Main.java:23)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br /> at java.lang.reflect.Method.invoke(Method.java:597)<br /> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

    Then it runs away and I get this after awhile:

    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space<br /> at java.util.Arrays.copyOf(Arrays.java:2882)<br /> at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)<br /> at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)<br /> at java.lang.StringBuffer.append(StringBuffer.java:224)<br /> at org.zefer.pd4ml.pdf.g.o00000(Unknown Source)<br /> at org.zefer.pd4ml.pdf.PD4Device.printHeaderAndFooter(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.super(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> at Main.transform(Main.java:51)<br /> at Main.main(Main.java:23)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br /> at java.lang.reflect.Method.invoke(Method.java:597)<br /> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

    in reply to: logo in an img tag blows up
    #27913

    Please give a try to the most recent beta, available for download from our site (v360fx1b1). It should resolve the issue.

    in reply to: Troubleshooting
    #26352

    If use PD4ML custom tags in JSP and test in IE with Google Toolbar enabled, when try to open the PDF file in a new tab, Google toolbar will block the page and crush.

    Does anyone met this situation, and if yes how can I solve it?

Viewing 15 posts - 466 through 480 (of 4,246 total)