user339824
user339824

Reputation: 11

iTextSharp: Writing RTF in a PDF document

I'm using iTextSharp (with C# and VS2008) to generate a report from a database table row. Generate PDF is not a problem... but when I try to add RTF text into the PDF I cant't find a way into iTextSharp object structure.

How can I do it?

Thanks a lot!

Upvotes: 1

Views: 12922

Answers (3)

iMatoria
iMatoria

Reputation: 1448

Try using HtmlToPdfBuilder class at www.hugoware.net from Hugo Bonacci. It shall convert HTML to PDF with external stylesheet as well.

Upvotes: 0

Rover
Rover

Reputation: 2230

Try to use iTextSharp.text.rtf.parser.RtfParser

Upvotes: 0

Jay Riggs
Jay Riggs

Reputation: 53593

Consider converting your RTF to HTML and then writing your HTML to PDF using iTextSharp.

I've never done this but here are some resources that might help:
Writing Your Own RTF Converter
Need help with creating PDF from HTML using itextsharp

Upvotes: 1

Related Questions