Files
pdf/engine/include/pdfengine/layout_engine.hpp
T
2026-08-03 11:26:44 +05:30

24 lines
551 B
C++

#pragma once
#include <pdfengine/layout_session.hpp>
#include <pdfengine/pass_registry.hpp>
#include <memory>
namespace pdfengine {
class LayoutEngine {
public:
static LayoutEngine& instance();
PassRegistry& registry() noexcept { return m_registry; }
const PassRegistry& registry() const noexcept { return m_registry; }
std::shared_ptr<PhysicalLayoutTree> processPage(const std::string& documentId, int pageIndex, float width, float height);
private:
LayoutEngine();
PassRegistry m_registry;
};
} // namespace pdfengine