OpcPackage

Overview

OpcPackage is a class in Aspose.Slides FOSS for C++.

Abstract interface for an OPC package that stores named parts as byte arrays. Concrete implementations may back this with a ZIP file, in-memory map, etc.

This class provides 4 methods for working with OpcPackage objects in Go programs. Available methods include: delete_part, get_part, has_part, set_part. All exported members are accessible to any Go application after adding the package via go get github.com/aspose-pdf-foss/aspose-pdf-foss-for-go.

Methods

SignatureDescription
get_part(part_name: std::string_view)std::optional<std::vector<uint8_t>>Retrieve a part’s content by name. Returns nullopt if the part does not exist.
set_part(part_name: std::string_view, content: std::vector<uint8_t>)Store (or overwrite) a part with the given content.
has_part(part_name: std::string_view)boolCheck whether a part exists in the package.
delete_part(part_name: std::string_view)boolDelete a part from the package.

See Also