.odmを.odtに変換

.odmを.odtに変換

複数の.odtファイルで構成されるLibreOfficeマスタードキュメントを単一の.odtファイルに変換するには?

ベストアンサー1

すべての公開文書形式のコンテンツは単純なZIPファイルなので、そのunzipコンテンツを解凍するために使用できます。

コンテンツを見る

$ unzip -l MasterDocumentTemplateDR.odm 
Archive:  MasterDocumentTemplateDR.odm
  Length      Date    Time    Name
---------  ---------- -----   ----
       46  02-04-2012 22:16   mimetype
      111  02-04-2012 22:16   Pictures/100002000000000C0000000CC1B54C41.gif
       97  02-04-2012 22:16   Pictures/100002000000000A0000000AD0B8BA86.gif
    10389  02-04-2012 22:16   Pictures/100000000000028F000001ED1B3CF428.jpg
    13036  02-04-2012 22:16   Pictures/10000201000000960000005E2C8645FE.png
      103  02-04-2012 22:16   Pictures/100002000000000A0000000A1F4FBE6C.gif
     1438  02-04-2012 22:16   meta.xml
     9005  02-04-2012 22:16   settings.xml
    48009  02-04-2012 22:16   content.xml
    10830  02-04-2012 22:16   Thumbnails/thumbnail.png
      427  02-04-2012 22:16   layout-cache
      899  02-04-2012 22:16   manifest.rdf
        0  02-04-2012 22:16   Configurations2/popupmenu/
        0  02-04-2012 22:16   Configurations2/images/Bitmaps/
        0  02-04-2012 22:16   Configurations2/toolpanel/
        0  02-04-2012 22:16   Configurations2/statusbar/
        0  02-04-2012 22:16   Configurations2/toolbar/
        0  02-04-2012 22:16   Configurations2/progressbar/
        0  02-04-2012 22:16   Configurations2/menubar/
        0  02-04-2012 22:16   Configurations2/floater/
        0  02-04-2012 22:16   Configurations2/accelerator/current.xml
   155673  02-04-2012 22:16   styles.xml
     1808  02-04-2012 22:16   META-INF/manifest.xml
---------                     -------
   251871                     23 files

コンテンツを解凍する

$ unzip MasterDocumentTemplateDR.odm

$ ls -l
total 248
drwxrwxr-x. 11 saml saml   4096 Jul 11 16:23 Configurations2
-rw-rw-r--.  1 saml saml  48009 Feb  4  2012 content.xml
-rw-rw-r--.  1 saml saml    427 Feb  4  2012 layout-cache
-rw-rw-r--.  1 saml saml    899 Feb  4  2012 manifest.rdf
drwxrwxr-x.  2 saml saml   4096 Jul 11 16:23 META-INF
-rw-rw-r--.  1 saml saml   1438 Feb  4  2012 meta.xml
-rw-rw-r--.  1 saml saml     46 Feb  4  2012 mimetype
drwxrwxr-x.  2 saml saml   4096 Jul 11 16:23 Pictures
-rw-rw-r--.  1 saml saml   9005 Feb  4  2012 settings.xml
-rw-rw-r--.  1 saml saml 155673 Feb  4  2012 styles.xml
drwxrwxr-x.  2 saml saml   4096 Jul 11 16:23 Thumbnails

ODMをODTファイルに変換

ファイルメニューに入ると、エクスポートというメニュー項目があります。このオプションを選択すると、ファイルをファイル形式.odmで「エクスポート」できる次のダイアログボックスが表示されます。.odt

                                     SS#1

    SS#2

.odtこれによりファイルが生成されます。

$ ls -l
total 136
-rw-rw-r--. 1 saml saml 59383 Feb  4  2012 MasterDocumentTemplateDR.odm
-rw-rw-r--. 1 saml saml 52176 Jul 11 16:54 MasterDocumentTemplateDR.odt

おすすめ記事