Did you find this guide helpful?
Some test text!
Xamarin / Guides / Convert from PDF
To convert PDF documents to different format types.
PDFDoc doc = new PDFDoc(filename);
// Convert PDF document to SVG
Convert.ToSvg(doc, output_filename + ".svg");
// Convert PDF document to XPS
Convert.ToXps(filename, output_filename + ".xps");
// Convert PDF document to multipage TIFF
Convert.TiffOutputOptions tiff_options = new Convert.TiffOutputOptions();
tiff_options.SetDPI(200);
tiff_options.SetDither(true);
tiff_options.SetMono(true);
Convert.ToTiff(filename, output_filename + ".tiff", tiff_options);
// Convert PDF to XOD
Convert.ToXod(filename, output_filename + ".xod");
// Convert PDF to HTML
Convert.ToHtml(filename, output_filename + ".html");
PDFDraw draw = new PDFDraw();
Page pg = doc.GetPage(1);
// Convert the first PDF page to PNG
draw.Export(pg, output_filename + ".png");
// Convert the first PDF page to JPEG
draw.Export(pg, output_filename + ".jpg", "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