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

Free Support Forum - aspose.com

Convert Save As DOCX Word Document with Chart Graphs to PDF using C# | Preserve Graphs Y axis Location

The resulting PDF when converting a DOCX file containing a graph, truncates the Ys axis.
code:
Aspose.Words.License wLic = new Aspose.Words.License();
Aspose.Pdf.License wLic1 = new Aspose.Pdf.License();
wLic1.SetLicense(“Aspose.Total.lic”);
wLic.SetLicense(“Aspose.Total.lic”);

                    Aspose.Words.Saving.PdfSaveOptions wOpts = new Aspose.Words.Saving.PdfSaveOptions();
                    if (format == "PDFA")
                        wOpts.Compliance = Aspose.Words.Saving.PdfCompliance.PdfA1a;
                        
                    wOpts.SaveFormat = Aspose.Words.SaveFormat.Pdf;

                    if (EmbedFonts.ToUpper().Equals("YES"))
                    {
                        wOpts.EmbedFullFonts = true;
                    }                  
                    Log.Writer.DebugFormat("Opening: {0}", inFile);
                    Aspose.Words.Document doc = new Aspose.Words.Document(inFile);
                    Log.Writer.DebugFormat("Saving:  {0}", outFilePDF);
                    doc.Save(outFilePDF, wOpts);

@sebastian_aldana,

Have you also tried the latest version of Aspose.Words for .NET i.e. 20.3 on your end? In case the problem still remains, please ZIP and upload your input DOCX Word document and Aspose.Words generated PDF file showing the undesired behavior here for testing. We will then investigate the issue on our end and provide you more information.

I just tested in 20.3 version and the issue still remains. Please find the zip file attached to this message. Test Word Graph.zip (2.2 MB)

@sebastian_aldana,

We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-20177. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

Just wanted to provide further information, it was discovered that the issue happens when you add an image of a graph inside of a table.

@sebastian_aldana,

We have logged these details in our issue tracking system and will inform you here when this issue will be resolved in future. We apologize for any inconvenience.