24 lines
551 B
C++
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
|