API Reference
EpubImageExportExtensions
EPUB image-export entry points backed by OfficeIMO.Html.
Inheritance
- Object
- EpubImageExportExtensions
Methods
public static IReadOnlyList<OfficeImageExportResult> ExportImages(EpubDocument source, OfficeImageExportFormat format, EpubImageExportOptions? options = null, CancellationToken cancellationToken = default) #IReadOnlyList<OfficeImageExportResult>Exports selected EPUB chapters through the shared image result contract.
Parameters
- source OfficeIMO.Epub.EpubDocument
- format OfficeIMO.Drawing.OfficeImageExportFormat
- options OfficeIMO.Epub.Image.EpubImageExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public static Void ExportImages(EpubDocument source, OfficeImageExportFormat format, OfficeImageExportConsumer consumer, EpubImageExportOptions? options = null, CancellationToken cancellationToken = default) #VoidStreams selected EPUB chapter images without retaining earlier payloads.
Parameters
- source OfficeIMO.Epub.EpubDocument
- format OfficeIMO.Drawing.OfficeImageExportFormat
- consumer OfficeIMO.Drawing.OfficeImageExportConsumer
- options OfficeIMO.Epub.Image.EpubImageExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public static async Task<IReadOnlyList<OfficeImageExportResult>> ExportImagesAsync(EpubDocument source, OfficeImageExportFormat format, EpubImageExportOptions? options = null, CancellationToken cancellationToken = default) #Task<IReadOnlyList<OfficeImageExportResult>>Asynchronously exports selected EPUB chapters and resolves retained package resources.
Parameters
- source OfficeIMO.Epub.EpubDocument
- format OfficeIMO.Drawing.OfficeImageExportFormat
- options OfficeIMO.Epub.Image.EpubImageExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public static async Task ExportImagesAsync(EpubDocument source, OfficeImageExportFormat format, OfficeImageExportAsyncConsumer consumer, EpubImageExportOptions? options = null, CancellationToken cancellationToken = default) #TaskAsynchronously streams selected EPUB chapter images.
Parameters
- source OfficeIMO.Epub.EpubDocument
- format OfficeIMO.Drawing.OfficeImageExportFormat
- consumer OfficeIMO.Drawing.OfficeImageExportAsyncConsumer
- options OfficeIMO.Epub.Image.EpubImageExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public static EpubFixedLayoutInspection InspectFixedLayoutPage(EpubDocument source, Int32 chapterIndex, EpubImageExportOptions? options = null, CancellationToken cancellationToken = default) #EpubFixedLayoutInspectionRenders one retained fixed-layout XHTML chapter using its declared numeric viewport and checks rendered element rectangles against that canvas. Uses the shared HTML/Drawing engines and package resource resolver. No image is encoded. Rectangular scene clipping is reported separately. XHTML and embedded vector text ink use separate bounded contour and supported-clip checks. SVG spine inspection, individual region overflow and native-reader equivalence are not established by this check.
Parameters
- source OfficeIMO.Epub.EpubDocument
- Publication loaded with raw HTML and resource payloads retained.
- chapterIndex System.Int32
- Zero-based chapter index.
- options OfficeIMO.Epub.Image.EpubImageExportOptions? = null
- Font, resource and safety settings. Mode, viewport and margins are set from the page; chapter selection and image-output settings do not apply. External asynchronous resources remain diagnosed.
- cancellationToken System.Threading.CancellationToken = default
- Cooperative cancellation.
public static EpubFixedLayoutInspection InspectFixedLayoutRegions(EpubDocument source, Int32 chapterIndex, IReadOnlyList<String> regionElementIds, EpubImageExportOptions? options = null, CancellationToken cancellationToken = default) #EpubFixedLayoutInspectionInspects the page canvas and selected identified positioned, floating, flex or grid regions in one render pass. Region findings use local border-box coordinates, before the region's own and ancestor transforms. Descendant transforms and authored clips are retained. Ancestor clips do not redefine local containment. Positioned XHTML and vector text ink is reported separately, including rectangular and filled path clipping; unsupported paths remain unmeasured. Missing, duplicate, hidden or unsupported region targets fail explicitly.
Parameters
- source OfficeIMO.Epub.EpubDocument
- Publication loaded with raw HTML and resource payloads retained.
- chapterIndex System.Int32
- Zero-based fixed-layout XHTML chapter index.
- regionElementIds System.Collections.Generic.IReadOnlyList<System.String>
- One to 1024 distinct HTML element IDs to inspect.
- options OfficeIMO.Epub.Image.EpubImageExportOptions? = null
- Font, resource and safety settings, as for page inspection.
- cancellationToken System.Threading.CancellationToken = default
- Cooperative cancellation.
public static EpubImageExportBuilder ToImages(EpubDocument source, EpubImageExportOptions? options = null) #EpubImageExportBuilderStarts fluent image export for selected EPUB chapters.
Parameters
- source OfficeIMO.Epub.EpubDocument
- options OfficeIMO.Epub.Image.EpubImageExportOptions? = null
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?