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:23:00 UTC

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

    [ https://issues.apache.org/jira/browse/TIKA-3731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17527786#comment-17527786 ] 

Dan Coldrick commented on TIKA-3731:
------------------------------------

related to https://issues.apache.org/jira/browse/TIKA-1735 but that looked to also try to include a parser so thought it would be good to split the two issues and get the bug fixed. 

> 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
>            Priority: Major
>
>  
> 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)