Convierta XBRL a Excel XLSX en Python

Contents
[ ]

Aspose.Finance admite la conversión de archivos XBRL a XLSX pasando una instancia delGuardarOpciones clase a laXbrlDocument.save método. Para guardar el documento en formato XLSX, configure elSaveOptions.save_format aGuardarFormato.XLSX.

El siguiente fragmento de código Python demuestra cómo convertir XBRL a XLSX.

//Enable cache service, this service will cache schema and link base file, and use the local file directly in the next load
LocalCacheService.enable_service("D:\\xbrl\\cache")
document = XbrlDocument(sourcePath + "Id-Scope-Context-Period-Start-After-End.xml")
# Set save options
Opts = SaveOptions()
Opts.save_format = SaveFormat.XLSX
// Save file to XLSX format
document.save(outputPath + "Converted-Xbrl-To-Xlsx_out.xlsx", Opts)