GoFiler Legato Script Reference
Legato v 1.5b Application v 5.24b
|
Table of Contents | < < Previous | Next >> |
Chapter Twenty-one — EDGARView Integration (continued)
The EDGAR Archive object allows the loading, mapping and extraction of EDGAR data from Public Dissemination System (PDS) and return copy files.
The basic process involves opening a PDS or Return Copy file and then using the object handle to extract data.
PDS files will not contain all documents originally submitted to the SEC and may contain additional information not filed. Confidential information will be redacted, this includes the document type ‘COVER’. For filings containing XBRL, all the XBRL viewer information is included in the PDS. For a typical filing, this can significantly increase the document count.
In addition, there are Legato functions for referencing the EDGAR Archive.
21.3.2 Extended Error Information
Since the archive and return copy must be parsed from a source from the SEC and the data may be corrupt or of an incorrect format, there are sub codes returned and combined with the ERROR_SYNTAX formatted code.
1 – Syntax error in the formatting of the PDF container.
2 – Syntax error in the formatting of the container for ZIP, Excel, JPG or GIF files.
3 – Incorrect sequence (ie., expected <DOCUMENT> tag).
4 – Incorrect sequence (ie., end of document header group not found).
5 – Hit end of file before end of document.
6 – Expected document delimiter not found in return copy format.
7 – Invalid data within return copy document header.
In many cases, the extended error message may have additional details regarding the point of failure, such as the source line number and or condition.
Company:
EDGARFetchArchiveList — Enumerates all file paths for EDGAR archive files.
EDGARFetchFileNumberInfo — Looks up a company data using the file number and EDGAR Archive.
EDGARFetchFilingsByCIK — Retrieves archive index of filings by CIK.
EDGARFetchFilingsByFileNumber — Retrieves archive index of filings by SEC File Number.
Opening an Archive:
EDGARArchiveOpen — Opens an EDGAR Archive or Return Copy file.
EDGAR Archive Properties:
EDGARArchiveGetFileCount — Gets the total count of files in the archive.
EDGARArchiveGetProperty — Accesses a specific property by name or position.
EDGARArchiveGetObjectType — Returns the type of archive: PDS or Return Copy.
Documents:
EDGARArchiveGetDocDescription — Gets the EDGAR Document Description.
EDGARArchiveGetDocType — Gets the EDGAR Document Type.
EDGARArchiveGetDocFileType — Gets the underling file type.
EDGARArchiveGetDocFile — Extracts a file and writes to a specified location with default filename or with a specified filename.
EDGARArchiveGetDocName — Gets the name (filename) of the document as filed.
Page revised 2024-10-21
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.