Uno Export FilterData(Macro)

How to get all FilterData using python uno?
I’m unclear about what FilterData to use.

I’m not clear what exact tool you want to use: Autofilter, Standard Filter, Advanced Filter?

basic filter , more better

See section 12.4.5 Filter names (List Filters button) of the famous book by A. Pitonyak OOME_4_1.odt.

reportFileTypes.odt (26.0 KB) (Python code with install routine in Basic)

1 Like

I finish my vocation recently, I try and adjust your code just now, it can’t get my wanted result( list all the filterdata) , looking forward your further solution

 "TypeDetection": {
"calc8": {
  "UINames": [
      "Calc 8"
  ],
  "Name": "calc8",
  "Preferred": true,
  "PreferredFilter": "calc8",
  "URLPattern": [
      "private:factory/scalc*"
  ],
  "Finalized": false,
  "DetectService": "com.sun.star.comp.filters.StorageFilterDetect",
  "Extensions": [
      "ods"
  ],
  "ClipboardFormat": "Calc 8",
  "MediaType": "application/vnd.oasis.opendocument.spreadsheet",
  "UIName": "Calc 8",
  "Mandatory": false
}
}

"FilterFactory": {
  "draw_pdf_addstream_import": {
      "TemplateName": "",
      "UserData": null,
      "Name": "draw_pdf_addstream_import",
      "Enabled": true,
      "Type": "pdf_Portable_Document_Format",
      "UIComponent": "",
      "FileFormatVersion": 0,
      "FilterService": "org.libreoffice.comp.documents.HybridPDFImport",
      "DocumentService": "com.sun.star.drawing.DrawingDocument",
      "Flags": 528449,
      "UINames": [
          "PDF - Portable Document Format"
      ],
      "UIName": "PDF - Portable Document Format",
      "Finalized": false,
      "Mandatory": false
  }
}