Converting Embedded image from Documents #158
Open
+130
−55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
This PR introduces the following changes:
Initialization of New Attributes:
_mlm_client
and_mlm_model
attributes to thePptxConverter
class, initialized using thekwargs
dictionary.Handling of Image Shapes:
_convert_image_to_markdown
to handle the conversion of image shapes to markdown within the presentation slides processing loop.Addition of
_convert_image_to_markdown
Method:_convert_image_to_markdown
to thePptxConverter
class to convert image shapes to markdown format.Related Issue
Link to the related issue (if any).
Motivation and Context
_mlm_client
and_mlm_model
are required for additional functionality._convert_image_to_markdown
method improves the handling of image shapes by converting them to markdown format, enhancing the overall functionality of thePptxConverter
class.How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Screenshots (if appropriate):
Types of changes
Checklist:
Additional Notes
This new feature reflects over .pptx, .docx and .html (including extends classes)