PDF-Data_Extractor / src /ports /services /html_conversion_service.py
Wasim
Sync: robust vehicle parser + full project
2e237ce
raw
history blame contribute delete
459 Bytes
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