Convert PDF to SVG Format in PHP
Contents
[
Hide
]
Aspose.PDF - Convert PDF to SVG
To convert PDF to SVG format using Aspose.PDF Java for PHP, simply invoke PdfToSvg module.
PHP Code
# Open the target document
$pdf = new Document($dataDir . 'input1.pdf');
# instantiate an object of SvgSaveOptions
$save_options = new SvgSaveOptions();
# do not compress SVG image to Zip archive
$save_options->CompressOutputToZipArchive = false;
# Save the output to XLS format
$pdf->save($dataDir . "Output.svg", $save_options);
print "Document has been converted successfully" . PHP_EOL;
Download Running Code
Download Convert PDF to SVG Format (Aspose.PDF) from any of the below mentioned social coding sites: