PDFDocument.AddChart() not available for Web?

I have cross-platform code (below) that adds my Xojo Chart to a PDFDocument. This works for Desktop and iOS, but it seems PDFDocument.AddChart(…) is missing on Web.

How can I add a WebChart to a PDFDocument?

#If TargetDesktop Then
  If CommonExportPopoverValues.myChartXojo IsA DesktopChart Then
    tempPDFDocument.AddChart(DesktopChart(CommonExportPopoverValues.myChartXojo), HeaderLineStartPointX, HeaderLineStartPointY, g.Width - (LeftRightBottomMargin * 2), g.Height - HeaderLineStartPointY - (g.Height - FooterLineStartPointY))
  End If
  
#ElseIf TargetWeb Then  'error with PDFDocument.AddChart()
  If CommonExportPopoverValues.myChartXojo IsA WebChart Then
    tempPDFDocument.AddChart(WebChart(CommonExportPopoverValues.myChartXojo), HeaderLineStartPointX, HeaderLineStartPointY, g.Width - (LeftRightBottomMargin * 2), g.Height - HeaderLineStartPointY - (g.Height - FooterLineStartPointY))
  End If
  
#ElseIf TargetiOS Then
  If CommonExportPopoverValues.myChartXojo IsA MobileChart Then
    tempPDFDocument.AddChart(MobileChart(CommonExportPopoverValues.myChartXojo), HeaderLineStartPointX, HeaderLineStartPointY, g.Width - (LeftRightBottomMargin * 2), g.Height - HeaderLineStartPointY - (g.Height - FooterLineStartPointY))
  End If
#EndIf

Hi @David_Cox

Because WebChart is based in the ChartJS library and all its rendering is based in a HTML Canvas, we do not have currently a way to “translate” or even catch that drawing into the needed Graphic class methods / properties, etc.

And even if that would be possible, the current Graphics implementation for Web lacks some of the required methods that are available on Desktop / iOS.

So, in brief, nope… it is not supported for Web; but we will keep an eye on it (a Feature Request about it in Issue would be good anyway :wink: so we can track it)

@Javier_Menendez I have added this as a Feature Request:

https://tracker.xojo.com/xojoinc/xojo/-/issues/77064