This commit is contained in:
saqib mir
2026-08-01 16:19:11 +05:30
parent 0ff8e8f446
commit 709e61b6a5
58 changed files with 2171 additions and 71 deletions
@@ -0,0 +1,26 @@
#pragma once
#include <pdfengine/image_object.hpp>
#include <pdfengine/image_descriptor.hpp>
#include <pdfengine/image_cache.hpp>
#include <memory>
#include <string>
namespace pdfengine {
class ImageManager {
public:
static ImageManager& instance();
std::shared_ptr<const ImageObject> processImageDescriptor(const ResolvedImageDescriptor& descriptor,
std::string* outError = nullptr);
void setCache(std::shared_ptr<IImageCache> cache);
std::shared_ptr<IImageCache> cache() const;
private:
ImageManager() = default;
std::shared_ptr<IImageCache> m_cache;
};
} // namespace pdfengine