Layer preserve in output PDF files

Hi,

When converting PDF/EPS/AI image file to a SVG and then back to a PDF file, the layers and Colors in the PDF files aren’t preserved correctly.

@lukeshbhave14,

Do you have some file examples, along with the code snippet, you can share, please?

files.zip (518.6 KB)
here is the code

string spath = System.IO.Path.Combine(@"D:\RND\VectorOutput\VectorOutput\wwwroot\css\Input\PDF", "Input.pdf");
string name = "output.svg";
string destinationPath = System.IO.Path.Combine(@"D:\RND\VectorOutput\VectorOutput\wwwroot\css\Outputs\PDF-SVG", name);

var document = new Document(spath);

Aspose.Imaging.ImageOptions.SvgOptions options = new Aspose.Imaging.ImageOptions.SvgOptions();
          
document.Save(destinationPath, Aspose.Pdf.SaveFormat.Svg);

@lukeshbhave14,

Thank you for providing all this information with the screenshots. That is very useful.

I will be creating a ticket for the dev team.

@lukeshbhave14
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-54561

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Thanks Carlos.Molina

This is our primary requirement(Color and Layer preserve). Once it’s fixed, we can proceed with purchasing your product.

1 Like