Forum Replies Created

Viewing 15 posts - 3,106 through 3,120 (of 4,234 total)
  • Author
    Posts
  • in reply to: PD4ML Tips & Tricks
    #26849

    How can I define custom page-sze for my report. (15″ x 11″ Paper size) ?
    I develop using rollbase HTML-to-PDF feature.

    in reply to: Images not working
    #27453

    Can you explain how you solved it?

    Thanks.

    in reply to: System Error: Stack Underflow
    #29491

    I am currently testing v398fx3 pre-release and the issue is not reproducible.

    v398fx2 also work flawless with the HTML. Obviously it is a bug of older versions only.

    in reply to: Unable to embed document
    #29366

    Normally PD4ML extracts a file name from attachments URL. In your case an attachment body is passed as a base64-encoded stream of bytes with no file name hint – in such situation a description attribute with a file name is needed.

    In the forthcoming v398fx3 we implemented an “auto-guess” of file extension by a mime type. If there is no description, it will extract a mime type from “data:” prefix.

    For example:

    [language=html:3vavs04u] data:text/plain;base64,YSxiLGMsZCxlDQp2YWx1ZSAxLCB2YWx1ZSAyLCB2YWx1ZSAzLCB2YWx1ZSA0 [/language:3vavs04u]

    auto-names the attachment as “attachment.txt”

    in reply to: How to define custom page size for HTML to PDF
    #29349

    pd4ml.setPageSize() API call takes page dimensions in typographic points as a parameter.

    [language=java:1cucxovh]public static final int POINTS_PER_INCH = 72;

    pd4ml.setPageSize( new java.awt.Dimension(15 * POINTS_PER_INCH, 11 * POINTS_PER_INCH) );[/language:1cucxovh]

    in reply to: Empty IMG src hangs PD4ML
    #29390

    On my test environment it does not hang, but in forthcoming v398fx3 we anyway worked potential issues around.

    in reply to: org/w3c/dom/* classes in ss_css2.jar
    #28101

    Hi,
    I used Zurich font in my pdf. It is displaying in html but not in pdf. In pdf, the default font is appearing.

    fonts folder contains all type of font files and properties file with code:
    Zurich BT=Zurich.ttf

    jsp file:

    font.css:
    @font-face
    {
    font-family: ‘Zurich BT’;
    src: url(‘fonts/Zurich BT.eot’);
    src: local(‘Zurich BT’), url(‘fonts/Zurich BT.ttf’) format(‘truetype’), url(‘fonts/Zurich BT.woff’) format(‘woff’), url(‘fonts/Zurich BT.svg’) format(‘svg’);
    font-weight: normal;
    font-style: normal;
    }
    .Zurich{
    font-family: ‘Zurich BT’;
    font-size:12px;
    }

    in reply to: org/w3c/dom/* classes in ss_css2.jar
    #28102

    @DurgaPrasad wrote:

    Hi,
    I used Zurich font in my pdf. It is displaying in html but not in pdf. In pdf, the default font is appearing.

    fonts folder contains all type of font files and properties file with code:
    Zurich BT=Zurich.ttf

    jsp file:

    font.css:
    @font-face
    {
    font-family: ‘Zurich BT’;
    src: url(‘fonts/Zurich BT.eot’);
    src: local(‘Zurich BT’), url(‘fonts/Zurich BT.ttf’) format(‘truetype’), url(‘fonts/Zurich BT.woff’) format(‘woff’), url(‘fonts/Zurich BT.svg’) format(‘svg’);
    font-weight: normal;
    font-style: normal;
    }
    .Zurich{
    font-family: ‘Zurich BT’;
    font-size:12px;
    }

    in reply to: HTML/CSS rendering issues
    #26852

    Hi,
    when ever we try to pass string contain like single quote or ‘&’ to text tag in SVG where we getting blank page.
    kindly do need full to provide solution

    Thank you .

    in reply to: Special Characters in input tags broken with 3.98
    #29438

    The bug still exists in 398fx3 Pro

    in reply to: Troubleshooting
    #26826

    Hello :
    I use the pd4ml in 2 domain hosted in the same server. In one domain all is Ok, but in the other I can not create correct pdf. In the server are created pdf all with 16Kb of size that can not been displayed.

    The aplication that generate this pdf works correctly and without modification in the code suddenly crash .

    In teh console of Firefox firebug I obtain

    Error: Invalid XRef stream header
    pdf.worker.js (línea 232)

    XRef_readXRef@resource://pdf.js/build/pdf.worker.js:3708:13
    XRef_parse@resource://pdf.js/build/pdf.worker.js:3296:23
    PDFDocument_setup@resource://pdf.js/build/pdf.worker.js:2469:7
    PDFDocument_parse@resource://pdf.js/build/pdf.worker.js:2350:7
    ensureHelper@resource://pdf.js/build/pdf.worker.js:1971:22
    NetworkPdfManager_ensure/<@resource://pdf.js/build/pdf.worker.js:1985:7 NetworkPdfManager_ensure@resource://pdf.js/build/pdf.worker.js:1965:1 BasePdfManager_ensureDoc@resource://pdf.js/build/pdf.worker.js:1832:14 loadDocument/
    Warning: Unsupported feature “unknown”
    pdf.worker.js (línea 224)

    Warning: Unsupported feature “unknown”
    Warning: Indexing all PDF objects
    pdf.worker.js (línea 224)

    Fichero PDF no válido o corrupto.
    PDF.js v1.1.469 (build: f06aa6a)
    Mensaje: Invalid PDF structure

    In other exewcution with no header I obtain

    java.io.IOException: Server returned HTTP response code: 403 for URL: http://xxxxxxx/certificado/certificado4.php? at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1674) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1672) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1670) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1243) at org.zefer.cache.d.getResourceAsBytes(Unknown Source) at org.zefer.html.doc.PD4MLHtmlParser.parse(Unknown Source) at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source) at org.zefer.pd4ml.PD4ML.o00000(Unknown Source) at org.zefer.pd4ml.PD4ML.render(Unknown Source) at Pd4Cmd.o00000(Unknown Source) at Pd4Cmd.main(Unknown Source) Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://campus.cursosccc.com/certificado/certificado4.php?nombre=DIANA%20CONSTANZA-HURTADO-LOPEZ&curso=50B4221&nombrecurso=MONITOR/A%20DE%20PINTURA%20DECORATIVA.%20TECNICAS%20TRADICIONALES&fi=2011&ff=&horas=&matricula=80021114&anexo=0 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625) at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.java:2730) at org.zefer.cache.CookieManager.storeCookies(Unknown Source) … 7 more Exception in thread “main” java.lang.NullPointerException at org.zefer.pd4ml.PD4ML.o00000(Unknown Source) at org.zefer.pd4ml.PD4ML.render(Unknown Source) at Pd4Cmd.o00000(Unknown Source) at Pd4Cmd.main(Unknown Source)

    Somebody can help me?
    thanks in advance.

    Alberto Mozo

    in reply to: How to define custom page size for HTML to PDF
    #29350

    @PD4ML wrote:

    pd4ml.setPageSize() API call takes page dimensions in typographic points as a parameter.

    [language=java:eh95muk4]public static final int POINTS_PER_INCH = 72;

    pd4ml.setPageSize( new java.awt.Dimension(15 * POINTS_PER_INCH, 11 * POINTS_PER_INCH) );[/language:eh95muk4]

    in reply to: could no create pdf correctly
    #29257

    In the problem case, PD4ML tries to access/load http://xxxxxxx/certificado/certificado4.php and receives back 403 error code instead of HTML content to convert.

    First I would recommend to look through the server’s log files to determine, why PD4ML is not authorized to load the page.

    in reply to: HTML/CSS rendering issues
    #26806

    Hi,
    I’m going to generate pdf which contains svg tags. when I’m going to use text tag, it contains ‘&'(ampersand) symbol as its dynamic data. Its giving exception so I’m replacing it with ‘&’. In this case there is no exception but only substring followed by ‘&'(ampersand) is printed.

    Ex: Actual:- Fidelity Management & Research
    Printed:- Research

    please give an update by any of you people.
    Thanks

    in reply to: could no create pdf correctly
    #29258

    Hello :

    Finally we have talk to our ISP. He has said that the problem is with the user-agent and we have made a change in the calll to Java

    $cmdline = “$java -Xmx512m -Djava.awt.headless=true -Dhttp.agent=certi

    It works.

    Thanks

    Alberto Mozo

Viewing 15 posts - 3,106 through 3,120 (of 4,234 total)