PHP Classes

File: examples/example.php

Recommend this page to a friend!
  Classes of Eric Jumba   RTF 2 PDF Converter   examples/example.php   Download  
File: examples/example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: RTF 2 PDF Converter
Convert RTF documents to PDF format using Dompdf
Author: By
Last change:
Date: 2 months ago
Size: 200 bytes
 

Contents

Class file image Download
<?php
use RTF2PDF\RTF2PDFConverter;

$rtfContent = file_get_contents('example.rtf');
$pdfFilePath = 'output.pdf';

$converter = new RTF2PDFConverter($rtfContent, $pdfFilePath);
$converter->convert();