0

I am using Perl and PDFLib 9 to dynamically create a PDF document. I read some data from a DB and print a table with the data onto the PDF. One field in my DB contains RTF text. How can i print RTF text in a PDFLib table cell? I can't find any example in the PDFLib cookbook.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Sebi
  • 3,879
  • 2
  • 35
  • 62

1 Answers1

1

you can not use RTF text for PDFlib textflow/table cells. So you have to parse your RTF text and "translate" this into textflow notation. Afterwards you can format text within a multiline text by using inline options within create_textflow() or by calling multiple add_textflow() calls.

Rainer
  • 2,013
  • 1
  • 10
  • 7