Some test text!

Search
Hamburger Icon

iOS / Guides / Convert from PDF

Convert PDF to multiple file types on iOS

To convert PDF documents to different format types.

Internet connection is not required for conversion.
Convert PDF to DOCX, DOC, HTML, SVG, TIF, PNG, JPEG, XPS, EPUB, TXT, and many other formats.
PTPDFDoc* doc = [[PTPDFDoc alloc] initWithFilepath:filename];

// Convert PDF document to SVG
[PTConvert ToSvgWithPDFDoc:doc in_filename:output_filename in_options:nil];

// Convert PDF document to XPS
[PTConvert ToXpsWithFilename:filename in_outputFilename:output_filename options:nil];

// Convert PDF document to multipage TIFF
PTTiffOutputOptions* tiff_options = [[PTTiffOutputOptions alloc] init];
[tiff_options SetDPI:200];
[tiff_options SetDither:true];
[tiff_options SetMono:true];
[PTConvert ToTiff:filename out_path:output_filename options:tiff_options];

// Convert PDF to XOD
[PTConvert ToXodWithFilename:filename out_filename:output_filename options:nil];

// Convert PDF to HTML
[PTConvert ToHtmlWithFilename:filename out_filename:output_filename options:nil];

PTPDFDraw *draw = [[PTPDFDraw alloc] init];
PTPage *pg = [doc GetPage: 1];

// Convert the first PDF page to PNG
[draw  Export:pg filename:output_filename format: @"PNG"];

// Convert the first PDF page to JPEG
[draw  Export:pg filename:output_filename format: @"JPEG"];

PDF Converter (SVG, XPS, TIFF, JPG, RTF, TXT, More)
Full sample code which shows how to use PDFNet Convert for direct, high-quality conversion between PDF, XPS, EMF, SVG, TIFF, PNG, JPEG, and other image formats.

Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales