Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Convert PDF file to SVG

$
0
0
Hi, I am recently using Aspose to convert pdf files to svg files.

The fllowing is my code:

Document doc = new Document("expdf.pdf");
SvgSaveOptions saveOption = new SvgSaveOptions();
saveOption.CompressOutputToZipArchive = false;
// SVG file
UUID uuid = UUID.randomUUID();
File tbFile = new File("tmp/"+uuid.toString()+".svg");
if(!tbFile.getParentFile().exists())
tbFile.getParentFile().mkdir();
doc.save(tbFile.getName(), saveOption);

I got an exception like this:
java.lang.ClassCastException: com.aspose.pdf.internal.p230.z10$z9 cannot be cast to [B

Please help me figure out what's happening, thank you

Viewing all articles
Browse latest Browse all 3131

Trending Articles