Windows algorithms documentation¶
Conversion Windows OS core function¶
- main.windows.windows(paths: Dict[str, Union[bool, str, Path]], files: List[str], has_type_in_request: Dict[str, bool])¶
Conversion algorithm for Windows OS.
- Parameters:
has_type_in_request – flag of each type in request
paths (dict[str, Union[bool, str, Path]]) – paths
files (list of str) – files for conversion
- Returns:
Conversion Windows OS function¶
- main.windows.convert_windows(filepath: str, files: List[str], converted_file_path: str, has_type_in_request: Dict[str, bool])¶
Windows conversion core.
- Parameters:
has_type_in_request (Dict[str, bool]) – flag of each type in request
converted_file_path (str) – path to output files
filepath (str) – path to input files
files (list of str) – file names
- Returns:
path to converted files
- Return type:
str
Conversion xlsx function¶
- main.windows.windows_convert_xlsx(excel, xlsx_filepath: str, pdf_filepath: str)¶
Windows conversion xlsx part.
- Parameters:
excel – Excel application
xlsx_filepath (str) – path to xlsx file
pdf_filepath (str) – path to future pdf file
Conversion docx function¶
- main.windows.windows_convert_docx(word, docx_filepath: str, pdf_filepath: str, pdf_format: int)¶
Windows conversion docx part.
- Parameters:
word – Word application
docx_filepath (str) – path to docx file
pdf_filepath (str) – path to future pdf file
pdf_format (int) – pdf format code