Some test text!
Android / 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