You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Dan Coldrick (Jira)" <ji...@apache.org> on 2022/04/25 22:13:00 UTC

[jira] [Created] (TIKA-3731) Tika CAD DWG reader not pulling meta data from new cad files

Dan Coldrick created TIKA-3731:
----------------------------------

             Summary: Tika CAD DWG reader not pulling meta data from new cad files
                 Key: TIKA-3731
                 URL: https://issues.apache.org/jira/browse/TIKA-3731
             Project: Tika
          Issue Type: Bug
          Components: metadata
    Affects Versions: 2.3.0
            Reporter: Dan Coldrick


 

The tika DWG reader is only pulling meta data from up to drawing format AC1024  (see code snippet) where it looks to be AC1027 & AC1032 can also be read from the same get2007and2010Props meta data extractor.
{code:java}

 switch (version) {
            case "AC1015":
                metadata.set(Metadata.CONTENT_TYPE, TYPE.toString());
                if (skipTo2000PropertyInfoSection(stream, header)) {
                    get2000Props(stream, metadata, xhtml);
                }
                break;
            case "AC1018":
                metadata.set(Metadata.CONTENT_TYPE, TYPE.toString());
                if (skipToPropertyInfoSection(stream, header)) {
                    get2004Props(stream, metadata, xhtml);
                }
                break;
            case "AC1021":
            case "AC1024":
                metadata.set(Metadata.CONTENT_TYPE, TYPE.toString());
                if (skipToPropertyInfoSection(stream, header)) {
                    get2007and2010Props(stream, metadata, xhtml);
                }
                break;
            default:
                throw new TikaException("Unsupported AutoCAD drawing version: " + version);
        } {code}
Looks like the case statement just needs extending and for examples files to be created for AC1027/AC1032. 

Current versions of auto cad can be found here:

https://knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/drawing-version-codes-for-autocad.html

 



--
This message was sent by Atlassian Jira
(v8.20.7#820007)