dmester / pdftosvg.net

Fully managed .NET library for converting PDF files to SVG.
https://pdftosvg.net
Other
57 stars 12 forks source link

PDF to SVG folder structure mismatching #31

Open anbarasakumar opened 2 months ago

anbarasakumar commented 2 months ago

Before reporting an issue, please ensure:

When converting the PDF to SVG the folder structure is not matching with PDF. below is my used code

try { using (var doc = PdfDocument.Open(@"E:\PdfToSvg\Pdf\" + fileName + ".pdf")) { var pageNo = 1; var option = new SvgConversionOptions(); foreach (var page in doc.Pages) { page.SaveAsSvg(@"E:\PdfToSvg\Svg\" + fileName + "-" + pageNo.ToString() + ".svg", option); pageNo++; } } return true; }

dmester commented 1 month ago

The XML structure of the SVG is optimized for size.

Just to understand what you are trying to do, what is the use case where you need the groups? If it is for editing, can you import the PDF directly into your vector editor?