1pub mod core;
31pub mod elements;
32pub mod generator;
33pub mod cli;
34pub mod exc;
35pub mod opc;
36pub mod oxml;
37pub mod parts;
38pub mod api;
39pub mod prelude;
40pub mod helpers;
41pub mod templates;
42pub mod export;
43pub mod import;
44
45#[cfg(feature = "mcp")]
46pub mod mcp;
47
48#[cfg(feature = "web2ppt")]
49pub mod web2ppt;
50
51pub use api::Presentation;
52pub use core::{ToXml, escape_xml};
53pub use elements::{Color, RgbColor, SchemeColor, Position, Size, Transform};
54pub use exc::{PptxError, Result};
55pub use generator::{
56 create_pptx, create_pptx_with_content, create_pptx_with_settings,
57 create_pptx_to_writer, create_pptx_with_content_to_writer, create_pptx_lazy_to_writer,
58 LazySlideSource,
59 SlideContent, SlideLayout,
60 TextFormat, FormattedText,
61 Table, TableRow, TableCell, TableBuilder,
62 Shape, ShapeType, ShapeFill, ShapeLine,
63 Image, ImageBuilder, ImageSource,
64 Chart, ChartType, ChartSeries, ChartBuilder,
65 BulletStyle, BulletPoint,
66 TextDirection, RtlLanguage, RtlTextProps,
67 Comment, CommentAuthor, CommentAuthorList, SlideComments,
68 SlideSection, SectionManager,
69 DigitalSignature, SignerInfo, HashAlgorithm, SignatureCommitment,
70 InkAnnotations, InkStroke, InkPen, InkPoint, PenTip,
71 SlideShowSettings, ShowType, PenColor, SlideRange,
72 PrintSettings, HandoutLayout, PrintColorMode, PrintWhat, Orientation,
73 TableMergeMap, MergeRegion, CellMergeState,
74 EmbeddedFontList, EmbeddedFont, FontStyle, FontCharset,
75 PresentationSettings,
76 Connector, ConnectorType, ConnectorLine, ArrowType, ArrowSize, ConnectionSite, LineDash,
77 Hyperlink, HyperlinkAction,
78 GradientFill, GradientType, GradientDirection, GradientStop, PresetGradients,
79 Video, Audio, VideoFormat, AudioFormat, VideoOptions, AudioOptions,
80};
81pub use oxml::repair::{PptxRepair, RepairIssue, RepairResult};
82
83pub use export::md::{MarkdownOptions, export_to_markdown, export_to_markdown_with_options};
85pub use export::image_export::{
86 ImageExportOptions, ImageFormat,
87 export_to_images, export_slide_to_image, render_thumbnail
88};
89pub use opc::compress::{
90 CompressionOptions, CompressionLevel, CompressionResult,
91 compress_pptx, compress_pptx_in_memory, analyze_pptx
92};
93
94pub use parts::{
95 Part, PartType, ContentType,
96 PresentationPart, SlidePart, SlideLayoutPart, LayoutType,
97 SlideMasterPart, ThemePart, NotesSlidePart,
98 ImagePart, MediaPart, MediaFormat, ChartPart,
99 TablePart, TableRowPart, TableCellPart,
100 CorePropertiesPart, AppPropertiesPart,
101 ContentTypesPart, Relationships,
102};
103
104#[cfg(feature = "web2ppt")]
105pub use web2ppt::{
106 Web2Ppt, WebFetcher, WebParser, WebContent, ContentBlock,
107 ContentType as WebContentType,
108 Web2PptConfig, ConversionOptions, Web2PptError,
109 html_to_pptx, html_to_pptx_with_options, url_to_pptx, url_to_pptx_with_options,
110};
111
112pub const VERSION: &str = "0.2.7";