doc2pdf.m

Convert DOC or DOCX file to PDF

You are now following this Submission

Convert a doc or docx file to pdf file.
You must specify the full path for both files.
It requires MS Office 2007 or above installed, with capacity for saving to PDF and XPS.

Example:

docFile = 'C:\worddoc.doc';
pdfFile = 'C:\pdfdoc.pdf';
[status,message] = doc2pdf(docFile,pdfFile);

Tested on Win8 (64 bits) with Office 2010 and Matlab R2012b.

Cite As

Daniel Pereira (2026). doc2pdf.m (https://se.mathworks.com/matlabcentral/fileexchange/47308-doc2pdf-m), MATLAB Central File Exchange. Retrieved .

Categories

Find more on MATLAB Report Generator in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Added comments and two outputs indicating the successful completion of the process.

1.0.0.0