Menu

#877 Parenteses causing corrupt text

v1.0_(example)
closed
parenthesis (1)
1
2014-01-13
2014-01-11
No

Getting junk data when attempting to print text within quotes. Tried freesans, freeserif, all seem to be affected. Times printed fine. Here's an example set of text that causes the junk to print:

"phonological disorder (ICD9: 315.39).  No known "

Attached is a snip of the PDF output.

Hoping this is enough info, but if not, please let me know what other details I can provide. I am using the latest code pulled through composer (which should be the latest).

The date stamp that I have running in production is "time": "2013-10-29 18:26:55" and that appears to be working, so some update between then and now must be causing an issue.

Thanks!

1 Attachments

Discussion

  • Nicola Asuni

    Nicola Asuni - 2014-01-12
    • status: open --> closed
     
  • Nicola Asuni

    Nicola Asuni - 2014-01-12

    I am unable to reproduce your problem.
    Please be sure you are using the latest TCPDF version and all files are updated.
    Check also the encoding of your text to b sure that all characters are properly encoded in UTF-8.
    Next time please provide a valid test case by modifying one of the existing examples.

     

    Last edit: Nicola Asuni 2014-01-12
  • Mark Pemberton

    Mark Pemberton - 2014-01-12

    Yep, sorry about that Nicola. Here's an example that should recreate the issue. I should have included this in my first post. I think justification is part of the issue.

        $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
        $pdf->AddPage();
        $pdf->SetFont('freeserif', '', 10);
    
        $text = 'Respond correctly to yes/no questions, follow one-step directions, and communicate using body language (not words). She also feels that asdf is cooperative, attentive, willing to try new activities.';
        $pdf->writeHTMLCell(180, 5, 15, 75, $text, 0, 0, false, true, 'J', false);
    
     
  • Nicola Asuni

    Nicola Asuni - 2014-01-13
    • status: closed --> open
     
  • Nicola Asuni

    Nicola Asuni - 2014-01-13

    I have verified this issue, the fix will be released soon.

     
  • Nicola Asuni

    Nicola Asuni - 2014-01-13
    • status: open --> closed
     
  • Nicola Asuni

    Nicola Asuni - 2014-01-13

    OK. Fixed in TCPDF 6.0.054.
    Thank you for reporting this issue.

     

Log in to post a comment.

MongoDB Logo MongoDB