Some test text!
PDFDocto a PDF file.
PDFTron has a powerful conversion system which allows you to convert many file formats to PDF. The
PTConvert class handles the conversion process and supports the following file types:
.doc(with the office conversion Add-On module)
The easiest way to convert a file is through the
+ToPDF:in_filename: method. The following code shows how to convert a non-PDF file using PDFTron's internal conversion:
The result of the conversion will be contained in the provided
PTPDFDoc, which can then be displayed.
In addition to the file types supported by PDFTron's internal conversion, it is also possible to convert many other file types with an iOS-specific API. The
+convertOfficeToPDF:paperSize:completion: method can convert any file type supported by
WKWebView to PDF. Some of the supported file types include:
The following code shows how to convert a file with the iOS-specific API:
The platform-specific conversion API also supports HTML to PDF conversion, either with the
+convertOfficeToPDF:paperSize:completion: method for
.html files or the
+convertHTMLStringToPDF:baseURL:paperSize:completion: for raw HTML text.
The following code shows how to convert an HTML string to PDF:
baseURL is the URL to use as the page's base URL for resolving relative links in the document.