Spaces:
Running
Running
File size: 459 Bytes
2e237ce |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from abc import ABC, abstractmethod
from typing import Optional, Union
from starlette.responses import Response
from domain.SegmentBox import SegmentBox
class HtmlConversionService(ABC):
@abstractmethod
def convert_to_html(
self,
pdf_content: bytes,
segments: list[SegmentBox],
extract_toc: bool = False,
dpi: int = 120,
output_file: Optional[str] = None,
) -> Union[str, Response]:
pass
|