Skip to content

Instantly share code, notes, and snippets.

@aspose-finance-gists
Last active February 21, 2024 18:00
Show Gist options
  • Select an option

  • Save aspose-finance-gists/173ec3789a9a5b2fdcd9a2365e5e7d71 to your computer and use it in GitHub Desktop.

Select an option

Save aspose-finance-gists/173ec3789a9a5b2fdcd9a2365e5e7d71 to your computer and use it in GitHub Desktop.
Convert XBRL to Excel in Python
# This code example demonstrates how to convert XBRL to XLSX.
from aspose.finance.xbrl import XbrlDocument,SaveOptions,SaveFormat
# The path to the input document
inputFile = "C:\Files\sample.xbrl"
# Load XBRL file
document = XbrlDocument(inputFile)
# Set save options
Opts = SaveOptions()
Opts.save_format = SaveFormat.XLSX
# Save file to XLSX format
document.save("C:\Files\sample_xbrl.xlsx", Opts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment