public class SaveOutputParameters
Example:
Document doc = new Document(getMyDir() + "Document.doc");
SaveOutputParameters parameters = doc.save(getArtifactsDir() + "Document.SaveOutputParameters.doc");
Assert.assertEquals(parameters.getContentType(), "application/msword");
parameters = doc.save(getArtifactsDir() + "Document.SaveOutputParameters.pdf");
Assert.assertEquals(parameters.getContentType(), "application/pdf");
Property Getters/Setters Summary | ||
---|---|---|
java.lang.String | getContentType() | |
Returns the Content-Type string (Internet Media Type) that identifies the type of the saved document.
|
public java.lang.String getContentType()
Example:
Shows how to verify Content-Type strings from save output parameters.Document doc = new Document(getMyDir() + "Document.doc"); SaveOutputParameters parameters = doc.save(getArtifactsDir() + "Document.SaveOutputParameters.doc"); Assert.assertEquals(parameters.getContentType(), "application/msword"); parameters = doc.save(getArtifactsDir() + "Document.SaveOutputParameters.pdf"); Assert.assertEquals(parameters.getContentType(), "application/pdf");