Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra extenstions #73

Merged
merged 1 commit into from
Feb 8, 2024
Merged

Add extra extenstions #73

merged 1 commit into from
Feb 8, 2024

Conversation

tuanngocnguyen
Copy link
Contributor

@tuanngocnguyen tuanngocnguyen commented Jan 24, 2024

Add extension variants for MS word, excel, powerpoint, and jpg (plus csv)

I have run the following command

./instdir/program/soffice.bin --headless --invisible --nodefault --nofirststartwizard \ --nolockcheck --nologo --norestore --convert-to pdf --outdir $(pwd) afile.extension

The conversion completed successfully for those extensions.

@@ -42,18 +42,26 @@ class converter implements \core_files\converter_interface {
/** @var array $imports List of supported import file formats */
private static $imports = [
'doc' => 'application/msword',
'docm' => 'application/vnd.ms-word.document.macroEnabled.12 ',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra space at the end. Is this intentional?

Copy link
Contributor Author

@tuanngocnguyen tuanngocnguyen Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @keevan,

I have missed this one, there should be no space. I have updated the MR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @keevan ,

Would you please have another review on this MR?

Thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have removed "macro enabled" extension, as there is potential security issue

@tuanngocnguyen tuanngocnguyen merged commit 99a74ec into master Feb 8, 2024
26 checks passed
@dmitriim dmitriim deleted the extra_extensions branch November 13, 2024 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants