package com.documents4j.conversion.msoffice;

import com.documents4j.api.DocumentType;

/**
 * An enumeration of <a href=
 * "http://msdn.microsoft.com/en-us/library/bb241279%28v=office.12%29.aspx">MS
 * Excel file format encodings</a>.
 */
enum MicrosoftPowerpointFormat implements MicrosoftOfficeFormat {

    PDF("32", "pdf", DocumentType.PDF), PPTX("24", "pptx", DocumentType.PPTX), PPT("1", "ppt", DocumentType.PPT);

    private final String value;
    private final DocumentType documentType;
    private final String fileExtension;

    MicrosoftPowerpointFormat(String value, String fileExtension, DocumentType documentType) {
        this.value = value;
        this.fileExtension = fileExtension;
        this.documentType = documentType;
    }

    public static MicrosoftPowerpointFormat of(DocumentType documentType) {
        for (MicrosoftPowerpointFormat enumeration : MicrosoftPowerpointFormat.values()) {
            if (enumeration.documentType.equals(documentType)) {
                return enumeration;
            }
        }
        throw new IllegalArgumentException("Unknown document type: " + documentType);
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String getFileExtension() {
        return fileExtension;
    }
}

@@ -127,15 +127,16 @@
 http
+s
 ://
-msdn
+docs
 .mic
@@ -156,59 +156,68 @@
 -us/
-library/bb241279%2528v=office.12%2529.aspx%22%3EMS%0A * Excel
+office/vba/api/powerpoint.ppsaveasfiletype%22%3EMS%0A * Powerpoint
  fil

fix comment for powerpoint formats