Converting "DOC" to "JPG"

Hi There,

I am getting below error on converting DOC to JPG:
Exception in thread “main” class com.groupdocs.conversion.exceptions.GroupDocsConversionException: java.lang.IllegalStateException: This document contains macros (VBA project) and you are attempting to save it in a Macro-Free format. Such document will be invalid if created. You need to either save it in a Macro-Enabled format (.DOCM or .DOTM) or remove macros before saving using the Document.RemoveMacros method.
com.groupdocs.conversion.converting.operations.PagesLimitOperation.pageLimitWordProcessing(Unknown Source)
com.groupdocs.conversion.converting.operations.PagesLimitOperation.access$400(Unknown Source)
com.groupdocs.conversion.converting.operations.PagesLimitOperation$3.a(Unknown Source)
com.groupdocs.conversion.converting.operations.PagesLimitOperation.limitDocumentPages(Unknown Source)
com.groupdocs.conversion.converting.operations.PagesLimitOperation.execute(Unknown Source)
com.groupdocs.conversion.pipeline.e$1$1.a(Unknown Source)
com.groupdocs.conversion.converting.operations.PreProcessWordProcessingDocumentOperation.execute(Unknown Source)
com.groupdocs.conversion.pipeline.e$1$1.a(Unknown Source)
com.groupdocs.conversion.pipeline.d.execute(Unknown Source)
com.groupdocs.conversion.pipeline.g.a(Unknown Source)
com.groupdocs.conversion.pipeline.g.a(Unknown Source)
com.groupdocs.conversion.b.convert(Unknown Source)
com.groupdocs.conversion.Converter.convert(Unknown Source)
com.groupdocs.conversion.Converter.convert(Unknown Source)

JDK 1.8
groupdocs-conversion-23.10.jar

Could we have a loading option for ignoring Macro(s) ?
I think that no one expect Macro(s) to be converted.

thanks,
James

1 Like

@James.Sung

Could you please also share the problematic Word file with us? It’ll help us properly investigate the issue.

Hi Atir,
Here is the file:
sample_macro.zip (19.7 KB)

Thanks,
James

@James.Sung
Thanks for sharing the source file. This issue is reproduced at our end. Therefore, we have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CONVERSIONJAVA-2144

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.