Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed Jun 24, 2020 4:06 am

Code: Select all
 
PdfDocument pdf = new PdfDocument();
pdf.LoadFromStream(stream);

pdf.SaveToFile(openFile.FileName.Substring(0,openFile.FileName.LastIndexOf("."))+".svg", FileFormat.SVG);


I want to save pdf to svg version 2 to know the cmyk value.
But, it is saved as version 1.1.

Is there any way?

eun_ding
 
Posts: 2
Joined: Wed Jun 24, 2020 3:56 am

Wed Jun 24, 2020 8:06 am

Hello,

Thanks for your inquiry.
Sorry to tell you that our Spire.PDF doesn't support saving PDF to SVG version 2 at present. But we are considering adding it as a new feature to our upgrade list with the ticket SPIREPDF-3364. If it can be implemented in the future, we will let you know.
Sorry for the inconvenience caused.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Thu Jun 25, 2020 12:24 am

If you can save the PDF as SVG2.0, will you know the CMYK code value?

PDF file is AI file exported as PDF.
I would like to know the CMYK palette values ​​of this PDF file.

I wish the update was quickly if there was no other way.

Thank you.

eun_ding
 
Posts: 2
Joined: Wed Jun 24, 2020 3:56 am

Thu Jun 25, 2020 6:52 am

Hello,

Thanks for your response.
Regarding the CMYK code value of SVG file you mentioned, do you mean that the value of the fill property is similar to the following?
Code: Select all
<circle fill="#CD853F device-cmyk(0.11, 0.48, 0.83, 0.00)"/>

At present we don't support getting the CMYK code value of PDF file. As for whether saving to SVG2.0 can include the CMYK code value in the file, we will pass it to our Dev team together with the ticket SPIREPDF-3364 to further investigate if it can be supported. If there is any update, we will let you know.
Or if there is any misunderstanding, please provide more information about your requirement to help us investigate further.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.PDF