Hello,
How can i output a converted svg file uncompressed. I just need one large file in svg format that represents the entire PDF file exactly.
Ive tried various solutions that break the files up into smaller files. how can i merge them properly? everything is a mess right now with this converter. here is my current solution that does not work:
using (var doc = new Aspose.Pdf.Document(inputStream))
{
var svgBytes = new List<byte>();
var saveOptions = new Aspose.Pdf.SvgSaveOptions()
{
CompressOutputToZipArchive = false
};
var dirPath = Path.GetTempFileName();
// save files
doc.Save(dirPath, saveOptions);
var files = Directory.GetFiles(Path.GetTempPath());
foreach(var file in files)
{
svgBytes.AddRange(File.ReadAllBytes(file));
File.Delete(file);
}
response.Content = new ByteArrayContent(svgBytes.ToArray());