yuuho.wiki

カオスの欠片を集めて知恵の泉を作る

ユーザ用ツール

サイト用ツール


tips:python:pptx:start

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
tips:python:pptx:start [2021/09/08 01:22] – [メモ] yuuhotips:python:pptx:start [2021/09/08 03:13] (現在) – [はじめに] yuuho
行 6: 行 6:
 ===== はじめに ===== ===== はじめに =====
  
-メインは Presentation クラス。   +メインは Presentation クラス。 
- +  * ''pptx.Presentation()'' -> %%<%%Presentation%%>%%
- +
-  * ''ppts.Presentation()'' -> %%<%%Presentation%%>%%+
     * ''core_properties'' -> %%<%%CorePropertiesPart%%>%%     * ''core_properties'' -> %%<%%CorePropertiesPart%%>%%
     * ''slides'' -> %%<%%Slides%%>%%     * ''slides'' -> %%<%%Slides%%>%%
行 18: 行 16:
       * ''[i]'' -> %%<%%SlideLayout%%>%%       * ''[i]'' -> %%<%%SlideLayout%%>%%
     * ''slide_master'' -> %%<%%SlideMaster%%>%% = ''slide_masters[0]''     * ''slide_master'' -> %%<%%SlideMaster%%>%% = ''slide_masters[0]''
 +
 +  * ''pptx.Presentation().slides[i]'' -> %%<%%Slide%%>%%
 +    * ''shapes'' -> %%<%%SlideShapes%%>%%
 +      * ''[i]'' -> 何らか\\ ''pptx.shapes.placeholder.SlideSPlaceholder''\\ or ''pptx.shapes.autoshape.Shape'' or etc.
 +
 +Util にはインチ/cm/pt を powerpoint内単位の長さに変換する関数などがある。
 +  * ''pptx''
 +    * ''Inches''
 +    * ''Cm''
 +    * ''Pt''
 +
 +  * 色のオブジェクト ''pptx.dml.color.RGBColor''
 +  * 形状のオブジェクト一覧 ''pptx.enum.shapes.MSO_SHAPE''
 +  * 線のスタイル一覧 ''pptx.enum.shapes.MSO_CONNECTOR_TYPE''
 +  * 色のテーマ ''pptx.enum.dml.MSO_THEME_COLOR''
 +
 +
 +===== 形状 =====
 +  * ''OVAL'' : 円/楕円形
 +  * ''RECTANGLE'' : 矩形
 +  * ''ROUNDED_RECTANGLE'' : 角丸矩形
 +
  
 ===== メモ ===== ===== メモ =====
行 130: 行 150:
     - shapes     - shapes
     - slide_layouts     - slide_layouts
 +</code>
  
  
 +<code>
 # 図形 # 図形
 Shape Shape
-    - +    - adjustments 
 +    - auto_shape_type 
 +    - click_action 
 +    - element 
 +    - fill 
 +    - get_or_add_ln 
 +    - has_chart 
 +    - has_table 
 +    - has_text_frame 
 +    - height 
 +    - is_placeholder 
 +    - left 
 +    - line 
 +    - ln 
 +    - name 
 +    - part 
 +    - placeholder_format 
 +    - rotation 
 +    - shadow 
 +    - shape_id 
 +    - shape_type 
 +    - text 
 +    - text_frame 
 +    - top 
 +    - width
 </code> </code>
  
 +
 +<code>
 +MSO_SHAPE
 +
 +    - from_xml
 +    - to_xml
 +    - validate
 +</code>
tips/python/pptx/start.1631064136.txt.gz · 最終更新: 2021/09/08 01:22 by yuuho