Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #26375

    Why if I use → I’ll see in pdf generated a cross and not a right arrow?
    Thanks
    Mk

    #27973

    No idea?

    I have found this problem using tinymce. In this WYSIWYG editor there a symbles’ table, each symble is added to the textarea like a html entities.

    We are going to buy a pro license, but we need to have full support for this editor.

    Until now we used PISA, but it’s very slow. PD4ML is surprisingly fast. 😀

    Mk

    #27974

    is substituted with code 0x2192, which is represented as a right arrow in most of popular TTF fonts. I tested with Arial and the entity is shown in PDF correctly as the arrow.

    If you got another character, I would recommend to check which font is used to render it and to make sure it has a correct glyph for the code.

    #27972

    mmm…

    Why doesn’t it work on my pc? Maybe because my is an evaluation version?

    My tinymce sets arial as default font and doesn’t permit to change it to client.

    Maybe I have to do something to use these kind of symbols?

    Thanks

    #27975

    Please create a document with the only right arrow entity using Tinymce, generate PDF and send it to support pd4ml.com by email or attach to a post in the topic. We’ll check what is wrong there.

    #27976

    Here is the files!
    I generated it using this comand:
    > java -Xmx512m -cp .pd4ml_demo.jar Pd4Cmd "file:arrow.xml" 1200 A4 -debug -out test.pdf

    #27977

    OK, now it is clear.
    In order to output special characters you need to utilize TTF embedding feature:
    pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html

    Pd4Cmd has a dedicated parameter -ttf to point to a fonts directory.

    #27978

    mmm…ok
    but I think I made orther mistakes:

    1. I create font/ directory c:ntt and copy arial.ttf.
    2. run pd4font.properties generation command
    java -jar pd4ml.jar -configure.fonts c:nttfont
    3. use this command
    C:ntt>java -Xmx512m -cp .pd4ml_demo.jar Pd4Cmd "file:arrow.xml" 1200 A4 -debug -out test.pdf -ttf "C:nttfont"

    this is the answer:
    <br /> version: PD4ML 360fx1b1 Pro (eval)<br /> not yet in cache: file:C:nttfont/pd4fonts.properties<br /> not yet in cache: font/arial.ttf<br /> resource font/arial.ttf not found.<br /> can not find 'arial' at font/arial.ttf<br /> reject TTF lookup for: 'arial'<br /> 'sans-serif' is not in pd4fonts.properties file<br /> reject TTF lookup for: 'sans-serif'<br /> 'verdana' is not in pd4fonts.properties file<br /> reject TTF lookup for: 'verdana'<br /> ...<br /> 'courier new' is not in pd4fonts.properties file<br /> reject TTF lookup for: 'courier new'<br /> done in 1109ms.<br />
    and the arrow is yet a cross… 🙁
    why?
    Thanks

    #27979

    Could you please post pd4font.properties content

    #27980

    #this is an autogenerated file. please remove manually any references to copyrighted fonts
    #Fri Apr 16 14:47:04 CEST 2010
    Arial=arial.ttf
    font.dir.location=font

    #27981

    Try to remove or comment font.dir.location=font line out.

    #27982

    great!!!
    from comand line, it works.
    Now I try in my java application trough pd4ml object.
    Thanks
    Mk

Viewing 12 posts - 1 through 12 (of 12 total)

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.