Generated PDF is "deleting" some chars (Wptools 3)

  • Hi

    In my rtf file (WPTools 3.12) i have a phrase like that:

    "My book is blue". So when i export the file, the phrase is rendered like:
    "My book is blu". The last char is not rendered.

    if i print the original rtf, the last char is there....

    what is happening ?

  • I´m using version 3 of wPDF and WPTools 3.12

    To generate PDF i´m doing this:

    if you would like to examinate, i can send you my rtf file to you and the generated pdf.

    • Offizieller Beitrag

    Hi,

    I tested it with Delphi 4, WPTools 3.12, wPDF 3 like this:

    (It is necessary to disable the code
    if (PTTextObj(p^.current_ptr)^.obj <> nil) and
    (TWPObject(PTTextObj(p^.current_ptr)^.obj).URL <> '') then

    for example so:

    But there is no problem and no characters are missing. I tried merge fields, too.

    Please try to add

    WPRichText1.InsertPointAttr.Hidden := true;
    WPRichText1.ReformatAll;

    I assume this fixes it.

    Julian

  • Hi Julian !

    Unhapply your code didn't fix. But i found out a strange solution for that.

    For example, if my phrase is short like: "This is a test", generated pdf render "This is a tes". But my solution was to add some blank spaces at phrase ending... so my phase now is "This is a test " and i got a correct pdf now.

    Very strange that! Do you wanna me to send you my rtf file to investigate that behaviour ?