We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Error: pdf save to svg

i got an exception when convert pdf to svg

Method Aspose.Pdf.Document.Save(String outputFileName, SaveOptions options)
Server: ubuntu arm64
Language: .net core 3.1
Aspose.PDF: 21.9.0

An unhandled exception has occurred while executing the request.
System.NullReferenceException: Object reference not set to an instance of an object.
at #=z3ZQvZYuLvdVcKUYIa0iHLLc4PbDXLdJSYnX2VMWfHee2.#=zKTRcJeTAqzph()
at #=zlzMPUTYmzR2V7dX2i4wvksufYnxGdwbP1QJmtkgqYYMPbT4ohQ==.#=z3a8vEL4=(#=zxjk9CqWlegcdmdvu00IHh_fGRenE2HN412ifM68WA6NA #=zbTMu04I=, #=zZ6lUGLojU6wvByyTys0oP0OCnJvOIYiq9CprL5vHApEB #=zhAAIZZv7p9pX, #=zwTZEOPs8vEovppV$1XczTiOqlT3$tfo$xw== #=zCtQnYNE=)
at #=zQ1QRfnYGY_Cf6TD93PUWH1z$fZvnIK$597un$cRE3n6kpuCvkg==.#=z3a8vEL4=(#=zxjk9CqWlegcdmdvu00IHh_fGRenE2HN412ifM68WA6NA #=zbTMu04I=, #=zZ6lUGLojU6wvByyTys0oP0OCnJvOIYiq9CprL5vHApEB #=zhAAIZZv7p9pX)
at #=zL87DSJykrXP16nKod$2$iF2VCmLZCrb$xBbjHNMB9zXP.#=ziTUNWXQPYoyYpSJhBg==(#=zxjk9CqWlegcdmdvu00IHh_fGRenE2HN412ifM68WA6NA #=zbTMu04I=, List1 #=zS6Lm_ig=) at #=zL87DSJykrXP16nKod$2$iF2VCmLZCrb$xBbjHNMB9zXP.#=zopKnHC4Q36SKpHJYtg==(#=zxjk9CqWlegcdmdvu00IHh_fGRenE2HN412ifM68WA6NA #=zbTMu04I=, List1 #=zS6Lm_ig=)
at #=zL87DSJykrXP16nKod$2$iF2VCmLZCrb$xBbjHNMB9zXP.#=ziHA$WhySBNXz(#=zxjk9CqWlegcdmdvu00IHh_fGRenE2HN412ifM68WA6NA #=zbTMu04I=, List1 #=zWOmyDDdha8_I) at #=zL87DSJykrXP16nKod$2$iF2VCmLZCrb$xBbjHNMB9zXP.#=z6TtXCdI=(#=zFo_O7U1WR54g0PYhipqVWOxvRL$F #=zs1uwqws=, #=znhMAf8uoh7npBu1BPoaM4YA6aYuUcaVEuQ== #=zZIWyNnY=, #=zxjk9CqWlegcdmdvu00IHh_fGRenE2HN412ifM68WA6NA #=zbTMu04I=) at #=zjS8m7S8opsYFQzgXfhEfSgQw0vA87XmxVA==.#=zvnSc4Ts=(Int32 #=zeawsKK4=, IList1 #=zkOU5NEqtfIlkLe$Ekw==, #=zbbTNd2oDj5Fn #=zIAsTmco=)
at #=zjS8m7S8opsYFQzgXfhEfSgQw0vA87XmxVA==.#=z6TtXCdI=()
at #=zhs9d_Pq8rUNhT48dXcLIpVg3XAWd.#=zsP0OSENP$77f(Document #=zs1uwqws=, #=zxjk9CqWlegcdmdvu00IHh_fGRenE2HN412ifM68WA6NA& #=z4LuHZeXSy5OdeV8tEA==, UnifiedSaveOptions #=z73cRjeY=, Int32& #=zEHhqLfKqDyVm, Boolean #=zALRGJko=)
at #=zhs9d_Pq8rUNhT48dXcLIpVg3XAWd.#=zqRhmr4Rhi6qNFjr4mg==(Document #=zdDLPMCtShQA8, #=zxjk9CqWlegcdmdvu00IHh_fGRenE2HN412ifM68WA6NA& #=zbTMu04I=, UnifiedSaveOptions #=z73cRjeY=, Int32& #=zvJOjp6H71_8L, Boolean #=zALRGJko=)
at #=zSvbI$qsAIFS20gJbGL_UPNdcPzcY.#=zz9MbJZ6HlnSW(Document #=zdDLPMCtShQA8, String #=zsqOH6Gyb2tOq, Stream #=zt5mZWbA=, SvgSaveOptions #=z73cRjeY=)
at Aspose.Pdf.Document.#=zBEyXlbrYCs7n(String #=zsqOH6Gyb2tOq, SaveOptions #=z73cRjeY=)
at Aspose.Pdf.Document.Save(String outputFileName, SaveOptions options)

@nieys2011

Can you please share the sample application and the source file. We will be able to investigate that on our end on provision of requested information.

this is the source file,
source code

// load PDF with an instance of Document
var document = new Aspose.Pdf.Document(“template.pdf”);
// save document in SVG format
document.Save(“output.svg”, Aspose.Pdf.SaveFormat.Svg);

design_detail.pdf (1.4 MB)

@nieys2011

The issue seems related to missing fonts in the system. Would you please make sure to install the Microsoft TrueType Fonts (msttcorefonts package) and libgdiplus packages? We will further look into details of the issue and share our feedback with you.